pinpoint-node-agent
Version:
Pinpoint node agent provided by NAVER
1,655 lines (1,433 loc) • 77.6 kB
JavaScript
// source: v1/Annotation.proto
/**
* @fileoverview
* @enhanceable
* @suppress {missingRequire} reports error on implicit type usages.
* @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!
/* eslint-disable */
// @ts-nocheck
var jspb = require('google-protobuf');
var goog = jspb;
var global = (function() {
if (this) { return this; }
if (typeof window !== 'undefined') { return window; }
if (typeof global !== 'undefined') { return global; }
if (typeof self !== 'undefined') { return self; }
return Function('return this')();
}.call(null));
var google_protobuf_wrappers_pb = require('google-protobuf/google/protobuf/wrappers_pb.js');
goog.object.extend(proto, google_protobuf_wrappers_pb);
goog.exportSymbol('proto.v1.PAnnotation', null, global);
goog.exportSymbol('proto.v1.PAnnotationValue', null, global);
goog.exportSymbol('proto.v1.PAnnotationValue.FieldCase', null, global);
goog.exportSymbol('proto.v1.PBytesStringStringValue', null, global);
goog.exportSymbol('proto.v1.PIntBooleanIntBooleanValue', null, global);
goog.exportSymbol('proto.v1.PIntStringStringValue', null, global);
goog.exportSymbol('proto.v1.PIntStringValue', null, global);
goog.exportSymbol('proto.v1.PLongIntIntByteByteStringValue', null, global);
goog.exportSymbol('proto.v1.PStringStringValue', 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.v1.PIntStringValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PIntStringValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PIntStringValue.displayName = 'proto.v1.PIntStringValue';
}
/**
* 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.v1.PIntStringStringValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PIntStringStringValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PIntStringStringValue.displayName = 'proto.v1.PIntStringStringValue';
}
/**
* 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.v1.PBytesStringStringValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PBytesStringStringValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PBytesStringStringValue.displayName = 'proto.v1.PBytesStringStringValue';
}
/**
* 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.v1.PLongIntIntByteByteStringValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PLongIntIntByteByteStringValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PLongIntIntByteByteStringValue.displayName = 'proto.v1.PLongIntIntByteByteStringValue';
}
/**
* 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.v1.PIntBooleanIntBooleanValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PIntBooleanIntBooleanValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PIntBooleanIntBooleanValue.displayName = 'proto.v1.PIntBooleanIntBooleanValue';
}
/**
* 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.v1.PStringStringValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PStringStringValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PStringStringValue.displayName = 'proto.v1.PStringStringValue';
}
/**
* 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.v1.PAnnotationValue = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, proto.v1.PAnnotationValue.oneofGroups_);
};
goog.inherits(proto.v1.PAnnotationValue, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PAnnotationValue.displayName = 'proto.v1.PAnnotationValue';
}
/**
* 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.v1.PAnnotation = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
};
goog.inherits(proto.v1.PAnnotation, jspb.Message);
if (goog.DEBUG && !COMPILED) {
/**
* @public
* @override
*/
proto.v1.PAnnotation.displayName = 'proto.v1.PAnnotation';
}
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.v1.PIntStringValue.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PIntStringValue.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.v1.PIntStringValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PIntStringValue.toObject = function(includeInstance, msg) {
var f, obj = {
intvalue: jspb.Message.getFieldWithDefault(msg, 1, 0),
stringvalue: (f = msg.getStringvalue()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, 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.v1.PIntStringValue}
*/
proto.v1.PIntStringValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.v1.PIntStringValue;
return proto.v1.PIntStringValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.v1.PIntStringValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.v1.PIntStringValue}
*/
proto.v1.PIntStringValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntvalue(value);
break;
case 2:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setStringvalue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.v1.PIntStringValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.v1.PIntStringValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.v1.PIntStringValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PIntStringValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getIntvalue();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getStringvalue();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
};
/**
* optional int32 intValue = 1;
* @return {number}
*/
proto.v1.PIntStringValue.prototype.getIntvalue = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PIntStringValue} returns this
*/
proto.v1.PIntStringValue.prototype.setIntvalue = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional google.protobuf.StringValue stringValue = 2;
* @return {?proto.google.protobuf.StringValue}
*/
proto.v1.PIntStringValue.prototype.getStringvalue = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
};
/**
* @param {?proto.google.protobuf.StringValue|undefined} value
* @return {!proto.v1.PIntStringValue} returns this
*/
proto.v1.PIntStringValue.prototype.setStringvalue = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PIntStringValue} returns this
*/
proto.v1.PIntStringValue.prototype.clearStringvalue = function() {
return this.setStringvalue(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PIntStringValue.prototype.hasStringvalue = function() {
return jspb.Message.getField(this, 2) != null;
};
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.v1.PIntStringStringValue.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PIntStringStringValue.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.v1.PIntStringStringValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PIntStringStringValue.toObject = function(includeInstance, msg) {
var f, obj = {
intvalue: jspb.Message.getFieldWithDefault(msg, 1, 0),
stringvalue1: (f = msg.getStringvalue1()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
stringvalue2: (f = msg.getStringvalue2()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, 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.v1.PIntStringStringValue}
*/
proto.v1.PIntStringStringValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.v1.PIntStringStringValue;
return proto.v1.PIntStringStringValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.v1.PIntStringStringValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.v1.PIntStringStringValue}
*/
proto.v1.PIntStringStringValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntvalue(value);
break;
case 2:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setStringvalue1(value);
break;
case 3:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setStringvalue2(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.v1.PIntStringStringValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.v1.PIntStringStringValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.v1.PIntStringStringValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PIntStringStringValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getIntvalue();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getStringvalue1();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getStringvalue2();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
};
/**
* optional int32 intValue = 1;
* @return {number}
*/
proto.v1.PIntStringStringValue.prototype.getIntvalue = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PIntStringStringValue} returns this
*/
proto.v1.PIntStringStringValue.prototype.setIntvalue = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional google.protobuf.StringValue stringValue1 = 2;
* @return {?proto.google.protobuf.StringValue}
*/
proto.v1.PIntStringStringValue.prototype.getStringvalue1 = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
};
/**
* @param {?proto.google.protobuf.StringValue|undefined} value
* @return {!proto.v1.PIntStringStringValue} returns this
*/
proto.v1.PIntStringStringValue.prototype.setStringvalue1 = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PIntStringStringValue} returns this
*/
proto.v1.PIntStringStringValue.prototype.clearStringvalue1 = function() {
return this.setStringvalue1(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PIntStringStringValue.prototype.hasStringvalue1 = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional google.protobuf.StringValue stringValue2 = 3;
* @return {?proto.google.protobuf.StringValue}
*/
proto.v1.PIntStringStringValue.prototype.getStringvalue2 = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
};
/**
* @param {?proto.google.protobuf.StringValue|undefined} value
* @return {!proto.v1.PIntStringStringValue} returns this
*/
proto.v1.PIntStringStringValue.prototype.setStringvalue2 = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PIntStringStringValue} returns this
*/
proto.v1.PIntStringStringValue.prototype.clearStringvalue2 = function() {
return this.setStringvalue2(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PIntStringStringValue.prototype.hasStringvalue2 = function() {
return jspb.Message.getField(this, 3) != null;
};
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.v1.PBytesStringStringValue.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PBytesStringStringValue.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.v1.PBytesStringStringValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PBytesStringStringValue.toObject = function(includeInstance, msg) {
var f, obj = {
bytesvalue: msg.getBytesvalue_asB64(),
stringvalue1: (f = msg.getStringvalue1()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
stringvalue2: (f = msg.getStringvalue2()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, 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.v1.PBytesStringStringValue}
*/
proto.v1.PBytesStringStringValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.v1.PBytesStringStringValue;
return proto.v1.PBytesStringStringValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.v1.PBytesStringStringValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.v1.PBytesStringStringValue}
*/
proto.v1.PBytesStringStringValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setBytesvalue(value);
break;
case 2:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setStringvalue1(value);
break;
case 3:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setStringvalue2(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.v1.PBytesStringStringValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.v1.PBytesStringStringValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.v1.PBytesStringStringValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PBytesStringStringValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getBytesvalue_asU8();
if (f.length > 0) {
writer.writeBytes(
1,
f
);
}
f = message.getStringvalue1();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getStringvalue2();
if (f != null) {
writer.writeMessage(
3,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
};
/**
* optional bytes bytesValue = 1;
* @return {!(string|Uint8Array)}
*/
proto.v1.PBytesStringStringValue.prototype.getBytesvalue = function() {
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
};
/**
* optional bytes bytesValue = 1;
* This is a type-conversion wrapper around `getBytesvalue()`
* @return {string}
*/
proto.v1.PBytesStringStringValue.prototype.getBytesvalue_asB64 = function() {
return /** @type {string} */ (jspb.Message.bytesAsB64(
this.getBytesvalue()));
};
/**
* optional bytes bytesValue = 1;
* Note that Uint8Array is not supported on all browsers.
* @see http://caniuse.com/Uint8Array
* This is a type-conversion wrapper around `getBytesvalue()`
* @return {!Uint8Array}
*/
proto.v1.PBytesStringStringValue.prototype.getBytesvalue_asU8 = function() {
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
this.getBytesvalue()));
};
/**
* @param {!(string|Uint8Array)} value
* @return {!proto.v1.PBytesStringStringValue} returns this
*/
proto.v1.PBytesStringStringValue.prototype.setBytesvalue = function(value) {
return jspb.Message.setProto3BytesField(this, 1, value);
};
/**
* optional google.protobuf.StringValue stringValue1 = 2;
* @return {?proto.google.protobuf.StringValue}
*/
proto.v1.PBytesStringStringValue.prototype.getStringvalue1 = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
};
/**
* @param {?proto.google.protobuf.StringValue|undefined} value
* @return {!proto.v1.PBytesStringStringValue} returns this
*/
proto.v1.PBytesStringStringValue.prototype.setStringvalue1 = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PBytesStringStringValue} returns this
*/
proto.v1.PBytesStringStringValue.prototype.clearStringvalue1 = function() {
return this.setStringvalue1(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PBytesStringStringValue.prototype.hasStringvalue1 = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* optional google.protobuf.StringValue stringValue2 = 3;
* @return {?proto.google.protobuf.StringValue}
*/
proto.v1.PBytesStringStringValue.prototype.getStringvalue2 = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 3));
};
/**
* @param {?proto.google.protobuf.StringValue|undefined} value
* @return {!proto.v1.PBytesStringStringValue} returns this
*/
proto.v1.PBytesStringStringValue.prototype.setStringvalue2 = function(value) {
return jspb.Message.setWrapperField(this, 3, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PBytesStringStringValue} returns this
*/
proto.v1.PBytesStringStringValue.prototype.clearStringvalue2 = function() {
return this.setStringvalue2(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PBytesStringStringValue.prototype.hasStringvalue2 = function() {
return jspb.Message.getField(this, 3) != null;
};
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.v1.PLongIntIntByteByteStringValue.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PLongIntIntByteByteStringValue.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.v1.PLongIntIntByteByteStringValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PLongIntIntByteByteStringValue.toObject = function(includeInstance, msg) {
var f, obj = {
longvalue: jspb.Message.getFieldWithDefault(msg, 1, 0),
intvalue1: jspb.Message.getFieldWithDefault(msg, 2, 0),
intvalue2: jspb.Message.getFieldWithDefault(msg, 3, 0),
bytevalue1: jspb.Message.getFieldWithDefault(msg, 4, 0),
bytevalue2: jspb.Message.getFieldWithDefault(msg, 5, 0),
stringvalue: (f = msg.getStringvalue()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, 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.v1.PLongIntIntByteByteStringValue}
*/
proto.v1.PLongIntIntByteByteStringValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.v1.PLongIntIntByteByteStringValue;
return proto.v1.PLongIntIntByteByteStringValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.v1.PLongIntIntByteByteStringValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.v1.PLongIntIntByteByteStringValue}
*/
proto.v1.PLongIntIntByteByteStringValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt64());
msg.setLongvalue(value);
break;
case 2:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntvalue1(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntvalue2(value);
break;
case 4:
var value = /** @type {number} */ (reader.readSint32());
msg.setBytevalue1(value);
break;
case 5:
var value = /** @type {number} */ (reader.readSint32());
msg.setBytevalue2(value);
break;
case 6:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setStringvalue(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.v1.PLongIntIntByteByteStringValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.v1.PLongIntIntByteByteStringValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PLongIntIntByteByteStringValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getLongvalue();
if (f !== 0) {
writer.writeInt64(
1,
f
);
}
f = message.getIntvalue1();
if (f !== 0) {
writer.writeInt32(
2,
f
);
}
f = message.getIntvalue2();
if (f !== 0) {
writer.writeInt32(
3,
f
);
}
f = message.getBytevalue1();
if (f !== 0) {
writer.writeSint32(
4,
f
);
}
f = message.getBytevalue2();
if (f !== 0) {
writer.writeSint32(
5,
f
);
}
f = message.getStringvalue();
if (f != null) {
writer.writeMessage(
6,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
};
/**
* optional int64 longValue = 1;
* @return {number}
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.getLongvalue = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PLongIntIntByteByteStringValue} returns this
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.setLongvalue = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional int32 intValue1 = 2;
* @return {number}
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.getIntvalue1 = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PLongIntIntByteByteStringValue} returns this
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.setIntvalue1 = function(value) {
return jspb.Message.setProto3IntField(this, 2, value);
};
/**
* optional int32 intValue2 = 3;
* @return {number}
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.getIntvalue2 = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PLongIntIntByteByteStringValue} returns this
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.setIntvalue2 = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional sint32 byteValue1 = 4;
* @return {number}
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.getBytevalue1 = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PLongIntIntByteByteStringValue} returns this
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.setBytevalue1 = function(value) {
return jspb.Message.setProto3IntField(this, 4, value);
};
/**
* optional sint32 byteValue2 = 5;
* @return {number}
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.getBytevalue2 = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PLongIntIntByteByteStringValue} returns this
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.setBytevalue2 = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};
/**
* optional google.protobuf.StringValue stringValue = 6;
* @return {?proto.google.protobuf.StringValue}
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.getStringvalue = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 6));
};
/**
* @param {?proto.google.protobuf.StringValue|undefined} value
* @return {!proto.v1.PLongIntIntByteByteStringValue} returns this
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.setStringvalue = function(value) {
return jspb.Message.setWrapperField(this, 6, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PLongIntIntByteByteStringValue} returns this
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.clearStringvalue = function() {
return this.setStringvalue(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PLongIntIntByteByteStringValue.prototype.hasStringvalue = function() {
return jspb.Message.getField(this, 6) != null;
};
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.v1.PIntBooleanIntBooleanValue.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PIntBooleanIntBooleanValue.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.v1.PIntBooleanIntBooleanValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PIntBooleanIntBooleanValue.toObject = function(includeInstance, msg) {
var f, obj = {
intvalue1: jspb.Message.getFieldWithDefault(msg, 1, 0),
boolvalue1: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
intvalue2: jspb.Message.getFieldWithDefault(msg, 3, 0),
boolvalue2: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
};
if (includeInstance) {
obj.$jspbMessageInstance = msg;
}
return obj;
};
}
/**
* Deserializes binary data (in protobuf wire format).
* @param {jspb.ByteSource} bytes The bytes to deserialize.
* @return {!proto.v1.PIntBooleanIntBooleanValue}
*/
proto.v1.PIntBooleanIntBooleanValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.v1.PIntBooleanIntBooleanValue;
return proto.v1.PIntBooleanIntBooleanValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.v1.PIntBooleanIntBooleanValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.v1.PIntBooleanIntBooleanValue}
*/
proto.v1.PIntBooleanIntBooleanValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntvalue1(value);
break;
case 2:
var value = /** @type {boolean} */ (reader.readBool());
msg.setBoolvalue1(value);
break;
case 3:
var value = /** @type {number} */ (reader.readInt32());
msg.setIntvalue2(value);
break;
case 4:
var value = /** @type {boolean} */ (reader.readBool());
msg.setBoolvalue2(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.v1.PIntBooleanIntBooleanValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.v1.PIntBooleanIntBooleanValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.v1.PIntBooleanIntBooleanValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PIntBooleanIntBooleanValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getIntvalue1();
if (f !== 0) {
writer.writeInt32(
1,
f
);
}
f = message.getBoolvalue1();
if (f) {
writer.writeBool(
2,
f
);
}
f = message.getIntvalue2();
if (f !== 0) {
writer.writeInt32(
3,
f
);
}
f = message.getBoolvalue2();
if (f) {
writer.writeBool(
4,
f
);
}
};
/**
* optional int32 intValue1 = 1;
* @return {number}
*/
proto.v1.PIntBooleanIntBooleanValue.prototype.getIntvalue1 = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PIntBooleanIntBooleanValue} returns this
*/
proto.v1.PIntBooleanIntBooleanValue.prototype.setIntvalue1 = function(value) {
return jspb.Message.setProto3IntField(this, 1, value);
};
/**
* optional bool boolValue1 = 2;
* @return {boolean}
*/
proto.v1.PIntBooleanIntBooleanValue.prototype.getBoolvalue1 = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
};
/**
* @param {boolean} value
* @return {!proto.v1.PIntBooleanIntBooleanValue} returns this
*/
proto.v1.PIntBooleanIntBooleanValue.prototype.setBoolvalue1 = function(value) {
return jspb.Message.setProto3BooleanField(this, 2, value);
};
/**
* optional int32 intValue2 = 3;
* @return {number}
*/
proto.v1.PIntBooleanIntBooleanValue.prototype.getIntvalue2 = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
};
/**
* @param {number} value
* @return {!proto.v1.PIntBooleanIntBooleanValue} returns this
*/
proto.v1.PIntBooleanIntBooleanValue.prototype.setIntvalue2 = function(value) {
return jspb.Message.setProto3IntField(this, 3, value);
};
/**
* optional bool boolValue2 = 4;
* @return {boolean}
*/
proto.v1.PIntBooleanIntBooleanValue.prototype.getBoolvalue2 = function() {
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
};
/**
* @param {boolean} value
* @return {!proto.v1.PIntBooleanIntBooleanValue} returns this
*/
proto.v1.PIntBooleanIntBooleanValue.prototype.setBoolvalue2 = function(value) {
return jspb.Message.setProto3BooleanField(this, 4, value);
};
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.v1.PStringStringValue.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PStringStringValue.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.v1.PStringStringValue} msg The msg instance to transform.
* @return {!Object}
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PStringStringValue.toObject = function(includeInstance, msg) {
var f, obj = {
stringvalue1: (f = msg.getStringvalue1()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, f),
stringvalue2: (f = msg.getStringvalue2()) && google_protobuf_wrappers_pb.StringValue.toObject(includeInstance, 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.v1.PStringStringValue}
*/
proto.v1.PStringStringValue.deserializeBinary = function(bytes) {
var reader = new jspb.BinaryReader(bytes);
var msg = new proto.v1.PStringStringValue;
return proto.v1.PStringStringValue.deserializeBinaryFromReader(msg, reader);
};
/**
* Deserializes binary data (in protobuf wire format) from the
* given reader into the given message object.
* @param {!proto.v1.PStringStringValue} msg The message object to deserialize into.
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
* @return {!proto.v1.PStringStringValue}
*/
proto.v1.PStringStringValue.deserializeBinaryFromReader = function(msg, reader) {
while (reader.nextField()) {
if (reader.isEndGroup()) {
break;
}
var field = reader.getFieldNumber();
switch (field) {
case 1:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setStringvalue1(value);
break;
case 2:
var value = new google_protobuf_wrappers_pb.StringValue;
reader.readMessage(value,google_protobuf_wrappers_pb.StringValue.deserializeBinaryFromReader);
msg.setStringvalue2(value);
break;
default:
reader.skipField();
break;
}
}
return msg;
};
/**
* Serializes the message to binary data (in protobuf wire format).
* @return {!Uint8Array}
*/
proto.v1.PStringStringValue.prototype.serializeBinary = function() {
var writer = new jspb.BinaryWriter();
proto.v1.PStringStringValue.serializeBinaryToWriter(this, writer);
return writer.getResultBuffer();
};
/**
* Serializes the given message to binary data (in protobuf wire
* format), writing to the given BinaryWriter.
* @param {!proto.v1.PStringStringValue} message
* @param {!jspb.BinaryWriter} writer
* @suppress {unusedLocalVariables} f is only used for nested messages
*/
proto.v1.PStringStringValue.serializeBinaryToWriter = function(message, writer) {
var f = undefined;
f = message.getStringvalue1();
if (f != null) {
writer.writeMessage(
1,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
f = message.getStringvalue2();
if (f != null) {
writer.writeMessage(
2,
f,
google_protobuf_wrappers_pb.StringValue.serializeBinaryToWriter
);
}
};
/**
* optional google.protobuf.StringValue stringValue1 = 1;
* @return {?proto.google.protobuf.StringValue}
*/
proto.v1.PStringStringValue.prototype.getStringvalue1 = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 1));
};
/**
* @param {?proto.google.protobuf.StringValue|undefined} value
* @return {!proto.v1.PStringStringValue} returns this
*/
proto.v1.PStringStringValue.prototype.setStringvalue1 = function(value) {
return jspb.Message.setWrapperField(this, 1, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PStringStringValue} returns this
*/
proto.v1.PStringStringValue.prototype.clearStringvalue1 = function() {
return this.setStringvalue1(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PStringStringValue.prototype.hasStringvalue1 = function() {
return jspb.Message.getField(this, 1) != null;
};
/**
* optional google.protobuf.StringValue stringValue2 = 2;
* @return {?proto.google.protobuf.StringValue}
*/
proto.v1.PStringStringValue.prototype.getStringvalue2 = function() {
return /** @type{?proto.google.protobuf.StringValue} */ (
jspb.Message.getWrapperField(this, google_protobuf_wrappers_pb.StringValue, 2));
};
/**
* @param {?proto.google.protobuf.StringValue|undefined} value
* @return {!proto.v1.PStringStringValue} returns this
*/
proto.v1.PStringStringValue.prototype.setStringvalue2 = function(value) {
return jspb.Message.setWrapperField(this, 2, value);
};
/**
* Clears the message field making it undefined.
* @return {!proto.v1.PStringStringValue} returns this
*/
proto.v1.PStringStringValue.prototype.clearStringvalue2 = function() {
return this.setStringvalue2(undefined);
};
/**
* Returns whether this field is set.
* @return {boolean}
*/
proto.v1.PStringStringValue.prototype.hasStringvalue2 = function() {
return jspb.Message.getField(this, 2) != null;
};
/**
* Oneof group definitions for this message. Each group defines the field
* numbers belonging to that group. When of these fields' value is set, all
* other fields in the group are cleared. During deserialization, if multiple
* fields are encountered for a group, only the last value seen will be kept.
* @private {!Array<!Array<number>>}
* @const
*/
proto.v1.PAnnotationValue.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10,11,12,13,14]];
/**
* @enum {number}
*/
proto.v1.PAnnotationValue.FieldCase = {
FIELD_NOT_SET: 0,
STRINGVALUE: 1,
BOOLVALUE: 2,
INTVALUE: 3,
LONGVALUE: 4,
SHORTVALUE: 5,
DOUBLEVALUE: 6,
BINARYVALUE: 7,
BYTEVALUE: 8,
INTSTRINGVALUE: 9,
STRINGSTRINGVALUE: 10,
INTSTRINGSTRINGVALUE: 11,
LONGINTINTBYTEBYTESTRINGVALUE: 12,
INTBOOLEANINTBOOLEANVALUE: 13,
BYTESSTRINGSTRINGVALUE: 14
};
/**
* @return {proto.v1.PAnnotationValue.FieldCase}
*/
proto.v1.PAnnotationValue.prototype.getFieldCase = function() {
return /** @type {proto.v1.PAnnotationValue.FieldCase} */(jspb.Message.computeOneofCase(this, proto.v1.PAnnotationValue.oneofGroups_[0]));
};
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.v1.PAnnotationValue.prototype.toObject = function(opt_includeInstance) {
return proto.v1.PAnnotationValue.toObject(opt_includeInstance, this);
};
/**
* Static version of the {@se