Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Dec 4, 2021. It is now read-only.
- Notifications
You must be signed in to change notification settings - Fork 2
Create Printer Health Check#52
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -11,8 +11,10 @@ var jspb = require('google-protobuf'); | ||
| var goog = jspb; | ||
| var global = Function('return this')(); | ||
| goog.exportSymbol('proto.HealthCheckUpRequest', null, global); | ||
| goog.exportSymbol('proto.PrintRequest', null, global); | ||
| goog.exportSymbol('proto.PrintResponse', null, global); | ||
| goog.exportSymbol('proto.PrinterHealthStatus', null, global); | ||
| /** | ||
| * Generated by JsPbCodeGenerator. | ||
| @@ -404,4 +406,288 @@ proto.PrintResponse.prototype.setMessage = function(value) { | ||
| }; | ||
| /** | ||
| * Generated by JsPbCodeGenerator. | ||
| * @param {Array=} opt_data Optional initial data array, typically from a | ||
| * server response, or constructed directly in Javascript. The array is used | ||
| * in place and becomes part of the constructed object. It is not cloned. | ||
| * If no data is provided, the constructed object will be empty, but still | ||
| * valid. | ||
| * @extends {jspb.Message} | ||
| * @constructor | ||
| */ | ||
| proto.HealthCheckUpRequest = function(opt_data) { | ||
| jspb.Message.initialize(this, opt_data, 0, -1, null, null); | ||
| }; | ||
| goog.inherits(proto.HealthCheckUpRequest, jspb.Message); | ||
| if (goog.DEBUG && !COMPILED) { | ||
| proto.HealthCheckUpRequest.displayName = 'proto.HealthCheckUpRequest'; | ||
| } | ||
| if (jspb.Message.GENERATE_TO_OBJECT) { | ||
| /** | ||
| * Creates an object representation of this proto suitable for use in Soy templates. | ||
| * Field names that are reserved in JavaScript and will be renamed to pb_name. | ||
| * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | ||
| * For the list of reserved names please see: | ||
| * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. | ||
| * @param {boolean=} opt_includeInstance Whether to include the JSPB instance | ||
| * for transitional soy proto support: http://goto/soy-param-migration | ||
| * @return {!Object} | ||
| */ | ||
| proto.HealthCheckUpRequest.prototype.toObject = function(opt_includeInstance) { | ||
| return proto.HealthCheckUpRequest.toObject(opt_includeInstance, this); | ||
| }; | ||
| /** | ||
| * Static version of the {@see toObject} method. | ||
| * @param {boolean|undefined} includeInstance Whether to include the JSPB | ||
| * instance for transitional soy proto support: | ||
| * http://goto/soy-param-migration | ||
| * @param {!proto.HealthCheckUpRequest} msg The msg instance to transform. | ||
| * @return {!Object} | ||
| * @suppress {unusedLocalVariables} f is only used for nested messages | ||
| */ | ||
| proto.HealthCheckUpRequest.toObject = function(includeInstance, msg) { | ||
| var f, obj = { | ||
| memberName: jspb.Message.getFieldWithDefault(msg, 1, "") | ||
| }; | ||
| if (includeInstance) { | ||
| obj.$jspbMessageInstance = msg; | ||
| } | ||
| return obj; | ||
| }; | ||
| } | ||
| /** | ||
| * Deserializes binary data (in protobuf wire format). | ||
| * @param {jspb.ByteSource} bytes The bytes to deserialize. | ||
| * @return {!proto.HealthCheckUpRequest} | ||
| */ | ||
| proto.HealthCheckUpRequest.deserializeBinary = function(bytes) { | ||
| var reader = new jspb.BinaryReader(bytes); | ||
| var msg = new proto.HealthCheckUpRequest; | ||
| return proto.HealthCheckUpRequest.deserializeBinaryFromReader(msg, reader); | ||
| }; | ||
| /** | ||
| * Deserializes binary data (in protobuf wire format) from the | ||
| * given reader into the given message object. | ||
| * @param {!proto.HealthCheckUpRequest} msg The message object to deserialize into. | ||
| * @param {!jspb.BinaryReader} reader The BinaryReader to use. | ||
| * @return {!proto.HealthCheckUpRequest} | ||
| */ | ||
| proto.HealthCheckUpRequest.deserializeBinaryFromReader = function(msg, reader) { | ||
| while (reader.nextField()) { | ||
| if (reader.isEndGroup()) { | ||
| break; | ||
| } | ||
| var field = reader.getFieldNumber(); | ||
| switch (field) { | ||
| case 1: | ||
| var value = /** @type {string} */ (reader.readString()); | ||
| msg.setMemberName(value); | ||
| break; | ||
| default: | ||
| reader.skipField(); | ||
| break; | ||
| } | ||
| } | ||
| return msg; | ||
| }; | ||
| /** | ||
| * Serializes the message to binary data (in protobuf wire format). | ||
| * @return {!Uint8Array} | ||
| */ | ||
| proto.HealthCheckUpRequest.prototype.serializeBinary = function() { | ||
| var writer = new jspb.BinaryWriter(); | ||
| proto.HealthCheckUpRequest.serializeBinaryToWriter(this, writer); | ||
| return writer.getResultBuffer(); | ||
| }; | ||
| /** | ||
| * Serializes the given message to binary data (in protobuf wire | ||
| * format), writing to the given BinaryWriter. | ||
| * @param {!proto.HealthCheckUpRequest} message | ||
| * @param {!jspb.BinaryWriter} writer | ||
| * @suppress {unusedLocalVariables} f is only used for nested messages | ||
| */ | ||
| proto.HealthCheckUpRequest.serializeBinaryToWriter = function(message, writer) { | ||
| var f = undefined; | ||
| f = message.getMemberName(); | ||
| if (f.length > 0) { | ||
| writer.writeString( | ||
| 1, | ||
| f | ||
| ); | ||
| } | ||
| }; | ||
| /** | ||
| * optional string member_name = 1; | ||
| * @return {string} | ||
| */ | ||
| proto.HealthCheckUpRequest.prototype.getMemberName = function() { | ||
| return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); | ||
| }; | ||
| /** @param {string} value */ | ||
| proto.HealthCheckUpRequest.prototype.setMemberName = function(value) { | ||
| jspb.Message.setProto3StringField(this, 1, value); | ||
| }; | ||
| /** | ||
| * Generated by JsPbCodeGenerator. | ||
| * @param {Array=} opt_data Optional initial data array, typically from a | ||
| * server response, or constructed directly in Javascript. The array is used | ||
| * in place and becomes part of the constructed object. It is not cloned. | ||
| * If no data is provided, the constructed object will be empty, but still | ||
| * valid. | ||
| * @extends {jspb.Message} | ||
| * @constructor | ||
| */ | ||
| proto.PrinterHealthStatus = function(opt_data) { | ||
| jspb.Message.initialize(this, opt_data, 0, -1, null, null); | ||
| }; | ||
| goog.inherits(proto.PrinterHealthStatus, jspb.Message); | ||
| if (goog.DEBUG && !COMPILED) { | ||
| proto.PrinterHealthStatus.displayName = 'proto.PrinterHealthStatus'; | ||
| } | ||
| if (jspb.Message.GENERATE_TO_OBJECT) { | ||
| /** | ||
| * Creates an object representation of this proto suitable for use in Soy templates. | ||
| * Field names that are reserved in JavaScript and will be renamed to pb_name. | ||
| * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. | ||
| * For the list of reserved names please see: | ||
| * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS. | ||
| * @param {boolean=} opt_includeInstance Whether to include the JSPB instance | ||
| * for transitional soy proto support: http://goto/soy-param-migration | ||
| * @return {!Object} | ||
| */ | ||
| proto.PrinterHealthStatus.prototype.toObject = function(opt_includeInstance) { | ||
| return proto.PrinterHealthStatus.toObject(opt_includeInstance, this); | ||
| }; | ||
| /** | ||
| * Static version of the {@see toObject} method. | ||
| * @param {boolean|undefined} includeInstance Whether to include the JSPB | ||
| * instance for transitional soy proto support: | ||
| * http://goto/soy-param-migration | ||
| * @param {!proto.PrinterHealthStatus} msg The msg instance to transform. | ||
| * @return {!Object} | ||
| * @suppress {unusedLocalVariables} f is only used for nested messages | ||
| */ | ||
| proto.PrinterHealthStatus.toObject = function(includeInstance, msg) { | ||
| var f, obj = { | ||
evanugarte marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| message: jspb.Message.getFieldWithDefault(msg, 1, "") | ||
| }; | ||
| if (includeInstance) { | ||
| obj.$jspbMessageInstance = msg; | ||
| } | ||
| return obj; | ||
| }; | ||
| } | ||
| /** | ||
| * Deserializes binary data (in protobuf wire format). | ||
| * @param {jspb.ByteSource} bytes The bytes to deserialize. | ||
| * @return {!proto.PrinterHealthStatus} | ||
| */ | ||
| proto.PrinterHealthStatus.deserializeBinary = function(bytes) { | ||
| var reader = new jspb.BinaryReader(bytes); | ||
| var msg = new proto.PrinterHealthStatus; | ||
| return proto.PrinterHealthStatus.deserializeBinaryFromReader(msg, reader); | ||
| }; | ||
| /** | ||
| * Deserializes binary data (in protobuf wire format) from the | ||
| * given reader into the given message object. | ||
| * @param {!proto.PrinterHealthStatus} msg The message object to deserialize into. | ||
| * @param {!jspb.BinaryReader} reader The BinaryReader to use. | ||
| * @return {!proto.PrinterHealthStatus} | ||
| */ | ||
| proto.PrinterHealthStatus.deserializeBinaryFromReader = function(msg, reader) { | ||
| while (reader.nextField()) { | ||
| if (reader.isEndGroup()) { | ||
| break; | ||
| } | ||
| var field = reader.getFieldNumber(); | ||
| switch (field) { | ||
| case 1: | ||
| var value = /** @type {string} */ (reader.readString()); | ||
| msg.setMessage(value); | ||
| break; | ||
| default: | ||
| reader.skipField(); | ||
| break; | ||
| } | ||
| } | ||
| return msg; | ||
| }; | ||
| /** | ||
| * Serializes the message to binary data (in protobuf wire format). | ||
| * @return {!Uint8Array} | ||
| */ | ||
| proto.PrinterHealthStatus.prototype.serializeBinary = function() { | ||
| var writer = new jspb.BinaryWriter(); | ||
| proto.PrinterHealthStatus.serializeBinaryToWriter(this, writer); | ||
| return writer.getResultBuffer(); | ||
| }; | ||
| /** | ||
| * Serializes the given message to binary data (in protobuf wire | ||
| * format), writing to the given BinaryWriter. | ||
| * @param {!proto.PrinterHealthStatus} message | ||
| * @param {!jspb.BinaryWriter} writer | ||
| * @suppress {unusedLocalVariables} f is only used for nested messages | ||
| */ | ||
| proto.PrinterHealthStatus.serializeBinaryToWriter = function(message, writer) { | ||
| var f = undefined; | ||
| f = message.getMessage(); | ||
| if (f.length > 0) { | ||
| writer.writeString( | ||
| 1, | ||
| f | ||
| ); | ||
| } | ||
| }; | ||
| /** | ||
| * optional string message = 1; | ||
| * @return {string} | ||
| */ | ||
| proto.PrinterHealthStatus.prototype.getMessage = function() { | ||
| return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); | ||
| }; | ||
| /** @param {string} value */ | ||
| proto.PrinterHealthStatus.prototype.setMessage = function(value) { | ||
| jspb.Message.setProto3StringField(this, 1, value); | ||
| }; | ||
| goog.object.extend(exports, proto); | ||
Oops, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.