Skip to content

Instantly share code, notes, and snippets.

@gunters63
Created February 2, 2021 09:03
Show Gist options
  • Save gunters63/74e376e43cffd9c4f059ee609430d740 to your computer and use it in GitHub Desktop.
Save gunters63/74e376e43cffd9c4f059ee609430d740 to your computer and use it in GitHub Desktop.
// source: processData.proto
/**
* @fileoverview
* @enhanceable
* @suppress {messageConventions} JS Compiler reports an error if a variable or
* field starts with 'MSG_' and isn't a translatable message.
* @public
*/
// GENERATED CODE -- DO NOT EDIT!
var jspb = require('google-protobuf');
var goog = jspb;
var global = Function('return this')();
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
goog.object.extend(proto, google_protobuf_empty_pb);
goog.exportSymbol('proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults', null, global);
goog.exportSymbol('proto.AtlasCopco.Enso.Contracts.ProcessData.Result', null, global);
goog.exportSymbol('proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest', null, global);
goog.exportSymbol('proto.AtlasCopco.Enso.Contracts.ProcessData.TypeCode', null, global);
goog.exportSymbol('proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest', null, global);
/**
* 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.AtlasCopco.Enso.Contracts.ProcessData.Result = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.AtlasCopco.Enso.Contracts.ProcessData.Result, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.displayName = 'proto.AtlasCopco.Enso.Contracts.ProcessData.Result';
}
/**
* 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.AtlasCopco.Enso.Contracts.ProcessData.ReadResults = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.repeatedFields_, null);
};
goog.inherits(proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.displayName = 'proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults';
}
/**
* 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.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.repeatedFields_, null);
};
goog.inherits(proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.displayName = 'proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest';
}
/**
* 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.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.displayName = 'proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest';
}
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.toObject = function(opt_includeInstance) {
return proto.AtlasCopco.Enso.Contracts.ProcessData.Result.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.toObject = function(includeInstance, msg) {
var f, obj = {
tag: jspb.Message.getFieldWithDefault(msg, 1, ""),
value: jspb.Message.getFieldWithDefault(msg, 2, ""),
typecode: jspb.Message.getFieldWithDefault(msg, 3, 0),
isreadonly: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
timestamp: jspb.Message.getFieldWithDefault(msg, 5, 0),
error: jspb.Message.getFieldWithDefault(msg, 6, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.AtlasCopco.Enso.Contracts.ProcessData.Result;
return proto.AtlasCopco.Enso.Contracts.ProcessData.Result.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.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.setTag(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setValue(value);
break;
case 3:
var value = /** @type {!proto.AtlasCopco.Enso.Contracts.ProcessData.TypeCode} */ (reader.readEnum());
msg.setTypecode(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setIsreadonly(value);
break;
case 5:
var value = /** @type {number} */ (reader.readInt64());
msg.setTimestamp(value);
break;
case 6:
var value = /** @type {string} */ (reader.readString());
msg.setError(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTag();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getValue();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
f = message.getTypecode();
if (f !== 0.0) {
writer.writeEnum(
3,
f
);
}
f = message.getIsreadonly();
if (f) {
writer.writeBool(
4,
f
);
}
f = message.getTimestamp();
if (f !== 0) {
writer.writeInt64(
5,
f
);
}
f = message.getError();
if (f.length > 0) {
writer.writeString(
6,
f
);
}
};
/**
* optional string Tag = 1;
* @return {string}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.getTag = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.setTag = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string Value = 2;
* @return {string}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.getValue = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.setValue = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* optional TypeCode TypeCode = 3;
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.TypeCode}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.getTypecode = function() {
return /** @type {!proto.AtlasCopco.Enso.Contracts.ProcessData.TypeCode} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.TypeCode} value
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.setTypecode = function(value) {
return jspb.Message.setProto3EnumField(this, 3, value);
};
/**
* optional bool isReadOnly = 4;
* @return {boolean}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.getIsreadonly = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};
/**
* @param {boolean} value
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.setIsreadonly = function(value) {
return jspb.Message.setProto3BooleanField(this, 4, value);
};
/**
* optional int64 TimeStamp = 5;
* @return {number}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.getTimestamp = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.setTimestamp = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional string Error = 6;
* @return {string}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.getError = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
};
/**
* @param {string} value
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.prototype.setError = function(value) {
return jspb.Message.setProto3StringField(this, 6, value);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.prototype.toObject = function(opt_includeInstance) {
return proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.toObject = function(includeInstance, msg) {
var f, obj = {
resultList: jspb.Message.toObjectList(msg.getResultList(),
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.toObject, includeInstance)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults;
return proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new proto.AtlasCopco.Enso.Contracts.ProcessData.Result;
reader.readMessage(value,proto.AtlasCopco.Enso.Contracts.ProcessData.Result.deserializeBinaryFromReader);
msg.addResult(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getResultList();
if (f.length > 0) {
writer.writeRepeatedMessage(
1,
f,
proto.AtlasCopco.Enso.Contracts.ProcessData.Result.serializeBinaryToWriter
);
}
};
/**
* repeated Result Result = 1;
* @return {!Array<!proto.AtlasCopco.Enso.Contracts.ProcessData.Result>}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.prototype.getResultList = function() {
return /** @type{!Array<!proto.AtlasCopco.Enso.Contracts.ProcessData.Result>} */ (
jspb.Message.getRepeatedWrapperField(this, proto.AtlasCopco.Enso.Contracts.ProcessData.Result, 1));
};
/**
* @param {!Array<!proto.AtlasCopco.Enso.Contracts.ProcessData.Result>} value
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.prototype.setResultList = function(value) {
return jspb.Message.setRepeatedWrapperField(this, 1, value);
};
/**
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result=} opt_value
* @param {number=} opt_index
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.Result}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.prototype.addResult = function(opt_value, opt_index) {
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.AtlasCopco.Enso.Contracts.ProcessData.Result, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.ReadResults.prototype.clearResultList = function() {
return this.setResultList([]);
};
/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.repeatedFields_ = [1];
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.prototype.toObject = function(opt_includeInstance) {
return proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.toObject = function(includeInstance, msg) {
var f, obj = {
tagsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest;
return proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.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.addTags(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTagsList();
if (f.length > 0) {
writer.writeRepeatedString(
1,
f
);
}
};
/**
* repeated string Tags = 1;
* @return {!Array<string>}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.prototype.getTagsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
};
/**
* @param {!Array<string>} value
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.prototype.setTagsList = function(value) {
return jspb.Message.setField(this, 1, value || []);
};
/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.prototype.addTags = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
};
/**
* Clears the list making it empty but non-null.
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.SubscribeRequest.prototype.clearTagsList = function() {
return this.setTagsList([]);
};
if (jspb.Message.GENERATE_TO_OBJECT) {
/**
* Creates an object representation of this proto.
* Field names that are reserved in JavaScript and will be renamed to pb_name.
* Optional fields that are not set will be set to undefined.
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
* For the list of reserved names please see:
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
* JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @return {!Object}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.prototype.toObject = function(opt_includeInstance) {
return proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@see toObject} method.
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
* the JSPB instance for transitional soy proto support:
* http://goto/soy-param-migration
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.toObject = function(includeInstance, msg) {
var f, obj = {
tag: jspb.Message.getFieldWithDefault(msg, 1, ""),
value: jspb.Message.getFieldWithDefault(msg, 2, "")
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest;
return proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.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.setTag(value);
break;
case 2:
var value = /** @type {string} */ (reader.readString());
msg.setValue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getTag();
if (f.length > 0) {
writer.writeString(
1,
f
);
}
f = message.getValue();
if (f.length > 0) {
writer.writeString(
2,
f
);
}
};
/**
* optional string Tag = 1;
* @return {string}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.prototype.getTag = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* @param {string} value
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.prototype.setTag = function(value) {
return jspb.Message.setProto3StringField(this, 1, value);
};
/**
* optional string Value = 2;
* @return {string}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.prototype.getValue = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
};
/**
* @param {string} value
* @return {!proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest} returns this
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.WriteRequest.prototype.setValue = function(value) {
return jspb.Message.setProto3StringField(this, 2, value);
};
/**
* @enum {number}
*/
proto.AtlasCopco.Enso.Contracts.ProcessData.TypeCode = {
EMPTY: 0,
BOOLEAN: 3,
CHAR: 4,
SBYTE: 5,
BYTE: 6,
INT16: 7,
UINT16: 8,
INT32: 9,
UINT32: 10,
INT64: 11,
UINT64: 12,
SINGLE: 13,
DOUBLE: 14,
DATETIME: 16,
STRING: 18
};
goog.object.extend(exports, proto.AtlasCopco.Enso.Contracts.ProcessData);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment