UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,564 lines (1,336 loc) 48.9 kB
// source: google/api/expr/v1beta1/value.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('return this')(); var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); var google_protobuf_struct_pb = require('google-protobuf/google/protobuf/struct_pb.js'); goog.object.extend(proto, google_protobuf_struct_pb); goog.exportSymbol('proto.google.api.expr.v1beta1.EnumValue', null, global); goog.exportSymbol('proto.google.api.expr.v1beta1.ListValue', null, global); goog.exportSymbol('proto.google.api.expr.v1beta1.MapValue', null, global); goog.exportSymbol('proto.google.api.expr.v1beta1.MapValue.Entry', null, global); goog.exportSymbol('proto.google.api.expr.v1beta1.Value', null, global); goog.exportSymbol('proto.google.api.expr.v1beta1.Value.KindCase', 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.google.api.expr.v1beta1.Value = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.expr.v1beta1.Value.oneofGroups_); }; goog.inherits(proto.google.api.expr.v1beta1.Value, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1beta1.Value.displayName = 'proto.google.api.expr.v1beta1.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.google.api.expr.v1beta1.EnumValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.expr.v1beta1.EnumValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1beta1.EnumValue.displayName = 'proto.google.api.expr.v1beta1.EnumValue'; } /** * 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.google.api.expr.v1beta1.ListValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1beta1.ListValue.repeatedFields_, null); }; goog.inherits(proto.google.api.expr.v1beta1.ListValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1beta1.ListValue.displayName = 'proto.google.api.expr.v1beta1.ListValue'; } /** * 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.google.api.expr.v1beta1.MapValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1beta1.MapValue.repeatedFields_, null); }; goog.inherits(proto.google.api.expr.v1beta1.MapValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1beta1.MapValue.displayName = 'proto.google.api.expr.v1beta1.MapValue'; } /** * 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.google.api.expr.v1beta1.MapValue.Entry = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.expr.v1beta1.MapValue.Entry, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1beta1.MapValue.Entry.displayName = 'proto.google.api.expr.v1beta1.MapValue.Entry'; } /** * 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.google.api.expr.v1beta1.Value.oneofGroups_ = [[1,2,3,4,5,6,7,9,10,11,12,15]]; /** * @enum {number} */ proto.google.api.expr.v1beta1.Value.KindCase = { KIND_NOT_SET: 0, NULL_VALUE: 1, BOOL_VALUE: 2, INT64_VALUE: 3, UINT64_VALUE: 4, DOUBLE_VALUE: 5, STRING_VALUE: 6, BYTES_VALUE: 7, ENUM_VALUE: 9, OBJECT_VALUE: 10, MAP_VALUE: 11, LIST_VALUE: 12, TYPE_VALUE: 15 }; /** * @return {proto.google.api.expr.v1beta1.Value.KindCase} */ proto.google.api.expr.v1beta1.Value.prototype.getKindCase = function() { return /** @type {proto.google.api.expr.v1beta1.Value.KindCase} */(jspb.Message.computeOneofCase(this, proto.google.api.expr.v1beta1.Value.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.google.api.expr.v1beta1.Value.prototype.toObject = function(opt_includeInstance) { return proto.google.api.expr.v1beta1.Value.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.google.api.expr.v1beta1.Value} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1beta1.Value.toObject = function(includeInstance, msg) { var f, obj = { nullValue: jspb.Message.getFieldWithDefault(msg, 1, 0), boolValue: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), int64Value: jspb.Message.getFieldWithDefault(msg, 3, 0), uint64Value: jspb.Message.getFieldWithDefault(msg, 4, 0), doubleValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0), stringValue: jspb.Message.getFieldWithDefault(msg, 6, ""), bytesValue: msg.getBytesValue_asB64(), enumValue: (f = msg.getEnumValue()) && proto.google.api.expr.v1beta1.EnumValue.toObject(includeInstance, f), objectValue: (f = msg.getObjectValue()) && google_protobuf_any_pb.Any.toObject(includeInstance, f), mapValue: (f = msg.getMapValue()) && proto.google.api.expr.v1beta1.MapValue.toObject(includeInstance, f), listValue: (f = msg.getListValue()) && proto.google.api.expr.v1beta1.ListValue.toObject(includeInstance, f), typeValue: jspb.Message.getFieldWithDefault(msg, 15, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.api.expr.v1beta1.Value} */ proto.google.api.expr.v1beta1.Value.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.expr.v1beta1.Value; return proto.google.api.expr.v1beta1.Value.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.expr.v1beta1.Value} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.expr.v1beta1.Value} */ proto.google.api.expr.v1beta1.Value.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {!proto.google.protobuf.NullValue} */ (reader.readEnum()); msg.setNullValue(value); break; case 2: var value = /** @type {boolean} */ (reader.readBool()); msg.setBoolValue(value); break; case 3: var value = /** @type {number} */ (reader.readInt64()); msg.setInt64Value(value); break; case 4: var value = /** @type {number} */ (reader.readUint64()); msg.setUint64Value(value); break; case 5: var value = /** @type {number} */ (reader.readDouble()); msg.setDoubleValue(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setStringValue(value); break; case 7: var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setBytesValue(value); break; case 9: var value = new proto.google.api.expr.v1beta1.EnumValue; reader.readMessage(value,proto.google.api.expr.v1beta1.EnumValue.deserializeBinaryFromReader); msg.setEnumValue(value); break; case 10: var value = new google_protobuf_any_pb.Any; reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.setObjectValue(value); break; case 11: var value = new proto.google.api.expr.v1beta1.MapValue; reader.readMessage(value,proto.google.api.expr.v1beta1.MapValue.deserializeBinaryFromReader); msg.setMapValue(value); break; case 12: var value = new proto.google.api.expr.v1beta1.ListValue; reader.readMessage(value,proto.google.api.expr.v1beta1.ListValue.deserializeBinaryFromReader); msg.setListValue(value); break; case 15: var value = /** @type {string} */ (reader.readString()); msg.setTypeValue(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.expr.v1beta1.Value.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.expr.v1beta1.Value.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.api.expr.v1beta1.Value} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1beta1.Value.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getField(message, 1)); if (f != null) { writer.writeEnum( 1, f ); } f = /** @type {boolean} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeBool( 2, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 3)); if (f != null) { writer.writeInt64( 3, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeUint64( 4, f ); } f = /** @type {number} */ (jspb.Message.getField(message, 5)); if (f != null) { writer.writeDouble( 5, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 6)); if (f != null) { writer.writeString( 6, f ); } f = /** @type {!(string|Uint8Array)} */ (jspb.Message.getField(message, 7)); if (f != null) { writer.writeBytes( 7, f ); } f = message.getEnumValue(); if (f != null) { writer.writeMessage( 9, f, proto.google.api.expr.v1beta1.EnumValue.serializeBinaryToWriter ); } f = message.getObjectValue(); if (f != null) { writer.writeMessage( 10, f, google_protobuf_any_pb.Any.serializeBinaryToWriter ); } f = message.getMapValue(); if (f != null) { writer.writeMessage( 11, f, proto.google.api.expr.v1beta1.MapValue.serializeBinaryToWriter ); } f = message.getListValue(); if (f != null) { writer.writeMessage( 12, f, proto.google.api.expr.v1beta1.ListValue.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 15)); if (f != null) { writer.writeString( 15, f ); } }; /** * optional google.protobuf.NullValue null_value = 1; * @return {!proto.google.protobuf.NullValue} */ proto.google.api.expr.v1beta1.Value.prototype.getNullValue = function() { return /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); }; /** * @param {!proto.google.protobuf.NullValue} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setNullValue = function(value) { return jspb.Message.setOneofField(this, 1, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearNullValue = function() { return jspb.Message.setOneofField(this, 1, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasNullValue = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional bool bool_value = 2; * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.getBoolValue = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); }; /** * @param {boolean} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setBoolValue = function(value) { return jspb.Message.setOneofField(this, 2, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearBoolValue = function() { return jspb.Message.setOneofField(this, 2, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasBoolValue = function() { return jspb.Message.getField(this, 2) != null; }; /** * optional int64 int64_value = 3; * @return {number} */ proto.google.api.expr.v1beta1.Value.prototype.getInt64Value = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); }; /** * @param {number} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setInt64Value = function(value) { return jspb.Message.setOneofField(this, 3, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearInt64Value = function() { return jspb.Message.setOneofField(this, 3, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasInt64Value = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional uint64 uint64_value = 4; * @return {number} */ proto.google.api.expr.v1beta1.Value.prototype.getUint64Value = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); }; /** * @param {number} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setUint64Value = function(value) { return jspb.Message.setOneofField(this, 4, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearUint64Value = function() { return jspb.Message.setOneofField(this, 4, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasUint64Value = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional double double_value = 5; * @return {number} */ proto.google.api.expr.v1beta1.Value.prototype.getDoubleValue = function() { return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0)); }; /** * @param {number} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setDoubleValue = function(value) { return jspb.Message.setOneofField(this, 5, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearDoubleValue = function() { return jspb.Message.setOneofField(this, 5, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasDoubleValue = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional string string_value = 6; * @return {string} */ proto.google.api.expr.v1beta1.Value.prototype.getStringValue = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setStringValue = function(value) { return jspb.Message.setOneofField(this, 6, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearStringValue = function() { return jspb.Message.setOneofField(this, 6, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasStringValue = function() { return jspb.Message.getField(this, 6) != null; }; /** * optional bytes bytes_value = 7; * @return {!(string|Uint8Array)} */ proto.google.api.expr.v1beta1.Value.prototype.getBytesValue = function() { return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); }; /** * optional bytes bytes_value = 7; * This is a type-conversion wrapper around `getBytesValue()` * @return {string} */ proto.google.api.expr.v1beta1.Value.prototype.getBytesValue_asB64 = function() { return /** @type {string} */ (jspb.Message.bytesAsB64( this.getBytesValue())); }; /** * optional bytes bytes_value = 7; * 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.google.api.expr.v1beta1.Value.prototype.getBytesValue_asU8 = function() { return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( this.getBytesValue())); }; /** * @param {!(string|Uint8Array)} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setBytesValue = function(value) { return jspb.Message.setOneofField(this, 7, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearBytesValue = function() { return jspb.Message.setOneofField(this, 7, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasBytesValue = function() { return jspb.Message.getField(this, 7) != null; }; /** * optional EnumValue enum_value = 9; * @return {?proto.google.api.expr.v1beta1.EnumValue} */ proto.google.api.expr.v1beta1.Value.prototype.getEnumValue = function() { return /** @type{?proto.google.api.expr.v1beta1.EnumValue} */ ( jspb.Message.getWrapperField(this, proto.google.api.expr.v1beta1.EnumValue, 9)); }; /** * @param {?proto.google.api.expr.v1beta1.EnumValue|undefined} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setEnumValue = function(value) { return jspb.Message.setOneofWrapperField(this, 9, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearEnumValue = function() { return this.setEnumValue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasEnumValue = function() { return jspb.Message.getField(this, 9) != null; }; /** * optional google.protobuf.Any object_value = 10; * @return {?proto.google.protobuf.Any} */ proto.google.api.expr.v1beta1.Value.prototype.getObjectValue = function() { return /** @type{?proto.google.protobuf.Any} */ ( jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 10)); }; /** * @param {?proto.google.protobuf.Any|undefined} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setObjectValue = function(value) { return jspb.Message.setOneofWrapperField(this, 10, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearObjectValue = function() { return this.setObjectValue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasObjectValue = function() { return jspb.Message.getField(this, 10) != null; }; /** * optional MapValue map_value = 11; * @return {?proto.google.api.expr.v1beta1.MapValue} */ proto.google.api.expr.v1beta1.Value.prototype.getMapValue = function() { return /** @type{?proto.google.api.expr.v1beta1.MapValue} */ ( jspb.Message.getWrapperField(this, proto.google.api.expr.v1beta1.MapValue, 11)); }; /** * @param {?proto.google.api.expr.v1beta1.MapValue|undefined} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setMapValue = function(value) { return jspb.Message.setOneofWrapperField(this, 11, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearMapValue = function() { return this.setMapValue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasMapValue = function() { return jspb.Message.getField(this, 11) != null; }; /** * optional ListValue list_value = 12; * @return {?proto.google.api.expr.v1beta1.ListValue} */ proto.google.api.expr.v1beta1.Value.prototype.getListValue = function() { return /** @type{?proto.google.api.expr.v1beta1.ListValue} */ ( jspb.Message.getWrapperField(this, proto.google.api.expr.v1beta1.ListValue, 12)); }; /** * @param {?proto.google.api.expr.v1beta1.ListValue|undefined} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setListValue = function(value) { return jspb.Message.setOneofWrapperField(this, 12, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearListValue = function() { return this.setListValue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasListValue = function() { return jspb.Message.getField(this, 12) != null; }; /** * optional string type_value = 15; * @return {string} */ proto.google.api.expr.v1beta1.Value.prototype.getTypeValue = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); }; /** * @param {string} value * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.setTypeValue = function(value) { return jspb.Message.setOneofField(this, 15, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], value); }; /** * Clears the field making it undefined. * @return {!proto.google.api.expr.v1beta1.Value} returns this */ proto.google.api.expr.v1beta1.Value.prototype.clearTypeValue = function() { return jspb.Message.setOneofField(this, 15, proto.google.api.expr.v1beta1.Value.oneofGroups_[0], undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.Value.prototype.hasTypeValue = function() { return jspb.Message.getField(this, 15) != 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.google.api.expr.v1beta1.EnumValue.prototype.toObject = function(opt_includeInstance) { return proto.google.api.expr.v1beta1.EnumValue.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.google.api.expr.v1beta1.EnumValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1beta1.EnumValue.toObject = function(includeInstance, msg) { var f, obj = { type: jspb.Message.getFieldWithDefault(msg, 1, ""), value: jspb.Message.getFieldWithDefault(msg, 2, 0) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.api.expr.v1beta1.EnumValue} */ proto.google.api.expr.v1beta1.EnumValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.expr.v1beta1.EnumValue; return proto.google.api.expr.v1beta1.EnumValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.expr.v1beta1.EnumValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.expr.v1beta1.EnumValue} */ proto.google.api.expr.v1beta1.EnumValue.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.setType(value); break; case 2: var value = /** @type {number} */ (reader.readInt32()); msg.setValue(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.expr.v1beta1.EnumValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.expr.v1beta1.EnumValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.api.expr.v1beta1.EnumValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1beta1.EnumValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getType(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getValue(); if (f !== 0) { writer.writeInt32( 2, f ); } }; /** * optional string type = 1; * @return {string} */ proto.google.api.expr.v1beta1.EnumValue.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.google.api.expr.v1beta1.EnumValue} returns this */ proto.google.api.expr.v1beta1.EnumValue.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional int32 value = 2; * @return {number} */ proto.google.api.expr.v1beta1.EnumValue.prototype.getValue = function() { return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {number} value * @return {!proto.google.api.expr.v1beta1.EnumValue} returns this */ proto.google.api.expr.v1beta1.EnumValue.prototype.setValue = function(value) { return jspb.Message.setProto3IntField(this, 2, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.google.api.expr.v1beta1.ListValue.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.google.api.expr.v1beta1.ListValue.prototype.toObject = function(opt_includeInstance) { return proto.google.api.expr.v1beta1.ListValue.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.google.api.expr.v1beta1.ListValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1beta1.ListValue.toObject = function(includeInstance, msg) { var f, obj = { valuesList: jspb.Message.toObjectList(msg.getValuesList(), proto.google.api.expr.v1beta1.Value.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.google.api.expr.v1beta1.ListValue} */ proto.google.api.expr.v1beta1.ListValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.expr.v1beta1.ListValue; return proto.google.api.expr.v1beta1.ListValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.expr.v1beta1.ListValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.expr.v1beta1.ListValue} */ proto.google.api.expr.v1beta1.ListValue.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.google.api.expr.v1beta1.Value; reader.readMessage(value,proto.google.api.expr.v1beta1.Value.deserializeBinaryFromReader); msg.addValues(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.expr.v1beta1.ListValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.expr.v1beta1.ListValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.api.expr.v1beta1.ListValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1beta1.ListValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getValuesList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.google.api.expr.v1beta1.Value.serializeBinaryToWriter ); } }; /** * repeated Value values = 1; * @return {!Array<!proto.google.api.expr.v1beta1.Value>} */ proto.google.api.expr.v1beta1.ListValue.prototype.getValuesList = function() { return /** @type{!Array<!proto.google.api.expr.v1beta1.Value>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.google.api.expr.v1beta1.Value, 1)); }; /** * @param {!Array<!proto.google.api.expr.v1beta1.Value>} value * @return {!proto.google.api.expr.v1beta1.ListValue} returns this */ proto.google.api.expr.v1beta1.ListValue.prototype.setValuesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.google.api.expr.v1beta1.Value=} opt_value * @param {number=} opt_index * @return {!proto.google.api.expr.v1beta1.Value} */ proto.google.api.expr.v1beta1.ListValue.prototype.addValues = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.expr.v1beta1.Value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.google.api.expr.v1beta1.ListValue} returns this */ proto.google.api.expr.v1beta1.ListValue.prototype.clearValuesList = function() { return this.setValuesList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.google.api.expr.v1beta1.MapValue.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.google.api.expr.v1beta1.MapValue.prototype.toObject = function(opt_includeInstance) { return proto.google.api.expr.v1beta1.MapValue.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.google.api.expr.v1beta1.MapValue} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1beta1.MapValue.toObject = function(includeInstance, msg) { var f, obj = { entriesList: jspb.Message.toObjectList(msg.getEntriesList(), proto.google.api.expr.v1beta1.MapValue.Entry.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.google.api.expr.v1beta1.MapValue} */ proto.google.api.expr.v1beta1.MapValue.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.expr.v1beta1.MapValue; return proto.google.api.expr.v1beta1.MapValue.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.expr.v1beta1.MapValue} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.expr.v1beta1.MapValue} */ proto.google.api.expr.v1beta1.MapValue.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.google.api.expr.v1beta1.MapValue.Entry; reader.readMessage(value,proto.google.api.expr.v1beta1.MapValue.Entry.deserializeBinaryFromReader); msg.addEntries(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.expr.v1beta1.MapValue.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.expr.v1beta1.MapValue.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.api.expr.v1beta1.MapValue} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1beta1.MapValue.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getEntriesList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.google.api.expr.v1beta1.MapValue.Entry.serializeBinaryToWriter ); } }; 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.google.api.expr.v1beta1.MapValue.Entry.prototype.toObject = function(opt_includeInstance) { return proto.google.api.expr.v1beta1.MapValue.Entry.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.google.api.expr.v1beta1.MapValue.Entry} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1beta1.MapValue.Entry.toObject = function(includeInstance, msg) { var f, obj = { key: (f = msg.getKey()) && proto.google.api.expr.v1beta1.Value.toObject(includeInstance, f), value: (f = msg.getValue()) && proto.google.api.expr.v1beta1.Value.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.google.api.expr.v1beta1.MapValue.Entry} */ proto.google.api.expr.v1beta1.MapValue.Entry.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.expr.v1beta1.MapValue.Entry; return proto.google.api.expr.v1beta1.MapValue.Entry.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.expr.v1beta1.MapValue.Entry} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.expr.v1beta1.MapValue.Entry} */ proto.google.api.expr.v1beta1.MapValue.Entry.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.google.api.expr.v1beta1.Value; reader.readMessage(value,proto.google.api.expr.v1beta1.Value.deserializeBinaryFromReader); msg.setKey(value); break; case 2: var value = new proto.google.api.expr.v1beta1.Value; reader.readMessage(value,proto.google.api.expr.v1beta1.Value.deserializeBinaryFromReader); msg.setValue(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.expr.v1beta1.MapValue.Entry.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.expr.v1beta1.MapValue.Entry.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.api.expr.v1beta1.MapValue.Entry} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1beta1.MapValue.Entry.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getKey(); if (f != null) { writer.writeMessage( 1, f, proto.google.api.expr.v1beta1.Value.serializeBinaryToWriter ); } f = message.getValue(); if (f != null) { writer.writeMessage( 2, f, proto.google.api.expr.v1beta1.Value.serializeBinaryToWriter ); } }; /** * optional Value key = 1; * @return {?proto.google.api.expr.v1beta1.Value} */ proto.google.api.expr.v1beta1.MapValue.Entry.prototype.getKey = function() { return /** @type{?proto.google.api.expr.v1beta1.Value} */ ( jspb.Message.getWrapperField(this, proto.google.api.expr.v1beta1.Value, 1)); }; /** * @param {?proto.google.api.expr.v1beta1.Value|undefined} value * @return {!proto.google.api.expr.v1beta1.MapValue.Entry} returns this */ proto.google.api.expr.v1beta1.MapValue.Entry.prototype.setKey = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1beta1.MapValue.Entry} returns this */ proto.google.api.expr.v1beta1.MapValue.Entry.prototype.clearKey = function() { return this.setKey(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.MapValue.Entry.prototype.hasKey = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional Value value = 2; * @return {?proto.google.api.expr.v1beta1.Value} */ proto.google.api.expr.v1beta1.MapValue.Entry.prototype.getValue = function() { return /** @type{?proto.google.api.expr.v1beta1.Value} */ ( jspb.Message.getWrapperField(this, proto.google.api.expr.v1beta1.Value, 2)); }; /** * @param {?proto.google.api.expr.v1beta1.Value|undefined} value * @return {!proto.google.api.expr.v1beta1.MapValue.Entry} returns this */ proto.google.api.expr.v1beta1.MapValue.Entry.prototype.setValue = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1beta1.MapValue.Entry} returns this */ proto.google.api.expr.v1beta1.MapValue.Entry.prototype.clearValue = function() { return this.setValue(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1beta1.MapValue.Entry.prototype.hasValue = function() { return jspb.Message.getField(this, 2) != null; }; /** * repeated Entry entries = 1; * @return {!Array<!proto.google.api.expr.v1beta1.MapValue.Entry>} */ proto.google.api.expr.v1beta1.MapValue.prototype.getEntriesList = function() { return /** @type{!Array<!proto.google.api.expr.v1beta1.MapValue.Entry>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.google.api.expr.v1beta1.MapValue.Entry, 1)); }; /** * @param {!Array<!proto.google.api.expr.v1beta1.MapValue.Entry>} value * @return {!proto.google.api.expr.v1beta1.MapValue} returns this */ proto.google.api.expr.v1beta1.MapValue.prototype.setEntriesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.google.api.expr.v1beta1.MapValue.Entry=} opt_value * @param {number=} opt_index * @return {!proto.google.api.expr.v1beta1.MapValue.Entry} */ proto.google.api.expr.v1beta1.MapValue.prototype.addEntries = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.api.expr.v1beta1.MapValue.Entry, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.google.api.expr.v1beta1.MapValue} returns this */ proto.google.api.expr.v1beta1.MapValue.prototype.clearEntriesList = function() { return this.setEntriesList([]); }; goog.object.extend(exports, proto.google.api.expr.v1beta1);