UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,455 lines (1,301 loc) 110 kB
// source: google/api/expr/v1alpha1/checked.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_api_expr_v1alpha1_syntax_pb = require('../../../../google/api/expr/v1alpha1/syntax_pb.js'); goog.object.extend(proto, google_api_expr_v1alpha1_syntax_pb); var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js'); goog.object.extend(proto, google_protobuf_empty_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.v1alpha1.CheckedExpr', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Decl', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Decl.DeclKindCase', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Decl.FunctionDecl', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Decl.IdentDecl', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Reference', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Type', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.AbstractType', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.FunctionType', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.ListType', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.MapType', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.PrimitiveType', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.TypeKindCase', null, global); goog.exportSymbol('proto.google.api.expr.v1alpha1.Type.WellKnownType', 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.v1alpha1.CheckedExpr = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.expr.v1alpha1.CheckedExpr, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.CheckedExpr.displayName = 'proto.google.api.expr.v1alpha1.CheckedExpr'; } /** * 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.v1alpha1.Type = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.expr.v1alpha1.Type.oneofGroups_); }; goog.inherits(proto.google.api.expr.v1alpha1.Type, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.Type.displayName = 'proto.google.api.expr.v1alpha1.Type'; } /** * 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.v1alpha1.Type.ListType = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.expr.v1alpha1.Type.ListType, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.Type.ListType.displayName = 'proto.google.api.expr.v1alpha1.Type.ListType'; } /** * 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.v1alpha1.Type.MapType = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.expr.v1alpha1.Type.MapType, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.Type.MapType.displayName = 'proto.google.api.expr.v1alpha1.Type.MapType'; } /** * 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.v1alpha1.Type.FunctionType = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1alpha1.Type.FunctionType.repeatedFields_, null); }; goog.inherits(proto.google.api.expr.v1alpha1.Type.FunctionType, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.Type.FunctionType.displayName = 'proto.google.api.expr.v1alpha1.Type.FunctionType'; } /** * 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.v1alpha1.Type.AbstractType = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1alpha1.Type.AbstractType.repeatedFields_, null); }; goog.inherits(proto.google.api.expr.v1alpha1.Type.AbstractType, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.Type.AbstractType.displayName = 'proto.google.api.expr.v1alpha1.Type.AbstractType'; } /** * 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.v1alpha1.Decl = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.google.api.expr.v1alpha1.Decl.oneofGroups_); }; goog.inherits(proto.google.api.expr.v1alpha1.Decl, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.Decl.displayName = 'proto.google.api.expr.v1alpha1.Decl'; } /** * 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.v1alpha1.Decl.IdentDecl = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.expr.v1alpha1.Decl.IdentDecl, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.Decl.IdentDecl.displayName = 'proto.google.api.expr.v1alpha1.Decl.IdentDecl'; } /** * 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.v1alpha1.Decl.FunctionDecl = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1alpha1.Decl.FunctionDecl.repeatedFields_, null); }; goog.inherits(proto.google.api.expr.v1alpha1.Decl.FunctionDecl, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.Decl.FunctionDecl.displayName = 'proto.google.api.expr.v1alpha1.Decl.FunctionDecl'; } /** * 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.v1alpha1.Decl.FunctionDecl.Overload = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.repeatedFields_, null); }; goog.inherits(proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload.displayName = 'proto.google.api.expr.v1alpha1.Decl.FunctionDecl.Overload'; } /** * 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.v1alpha1.Reference = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.expr.v1alpha1.Reference.repeatedFields_, null); }; goog.inherits(proto.google.api.expr.v1alpha1.Reference, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.expr.v1alpha1.Reference.displayName = 'proto.google.api.expr.v1alpha1.Reference'; } 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.v1alpha1.CheckedExpr.prototype.toObject = function(opt_includeInstance) { return proto.google.api.expr.v1alpha1.CheckedExpr.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.v1alpha1.CheckedExpr} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1alpha1.CheckedExpr.toObject = function(includeInstance, msg) { var f, obj = { referenceMapMap: (f = msg.getReferenceMapMap()) ? f.toObject(includeInstance, proto.google.api.expr.v1alpha1.Reference.toObject) : [], typeMapMap: (f = msg.getTypeMapMap()) ? f.toObject(includeInstance, proto.google.api.expr.v1alpha1.Type.toObject) : [], sourceInfo: (f = msg.getSourceInfo()) && google_api_expr_v1alpha1_syntax_pb.SourceInfo.toObject(includeInstance, f), exprVersion: jspb.Message.getFieldWithDefault(msg, 6, ""), expr: (f = msg.getExpr()) && google_api_expr_v1alpha1_syntax_pb.Expr.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.v1alpha1.CheckedExpr} */ proto.google.api.expr.v1alpha1.CheckedExpr.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.expr.v1alpha1.CheckedExpr; return proto.google.api.expr.v1alpha1.CheckedExpr.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.expr.v1alpha1.CheckedExpr} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} */ proto.google.api.expr.v1alpha1.CheckedExpr.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 2: var value = msg.getReferenceMapMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt64, jspb.BinaryReader.prototype.readMessage, proto.google.api.expr.v1alpha1.Reference.deserializeBinaryFromReader, 0, new proto.google.api.expr.v1alpha1.Reference()); }); break; case 3: var value = msg.getTypeMapMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readInt64, jspb.BinaryReader.prototype.readMessage, proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader, 0, new proto.google.api.expr.v1alpha1.Type()); }); break; case 5: var value = new google_api_expr_v1alpha1_syntax_pb.SourceInfo; reader.readMessage(value,google_api_expr_v1alpha1_syntax_pb.SourceInfo.deserializeBinaryFromReader); msg.setSourceInfo(value); break; case 6: var value = /** @type {string} */ (reader.readString()); msg.setExprVersion(value); break; case 4: var value = new google_api_expr_v1alpha1_syntax_pb.Expr; reader.readMessage(value,google_api_expr_v1alpha1_syntax_pb.Expr.deserializeBinaryFromReader); msg.setExpr(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.expr.v1alpha1.CheckedExpr.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.v1alpha1.CheckedExpr} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1alpha1.CheckedExpr.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getReferenceMapMap(true); if (f && f.getLength() > 0) { f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeInt64, jspb.BinaryWriter.prototype.writeMessage, proto.google.api.expr.v1alpha1.Reference.serializeBinaryToWriter); } f = message.getTypeMapMap(true); if (f && f.getLength() > 0) { f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeInt64, jspb.BinaryWriter.prototype.writeMessage, proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter); } f = message.getSourceInfo(); if (f != null) { writer.writeMessage( 5, f, google_api_expr_v1alpha1_syntax_pb.SourceInfo.serializeBinaryToWriter ); } f = message.getExprVersion(); if (f.length > 0) { writer.writeString( 6, f ); } f = message.getExpr(); if (f != null) { writer.writeMessage( 4, f, google_api_expr_v1alpha1_syntax_pb.Expr.serializeBinaryToWriter ); } }; /** * map<int64, Reference> reference_map = 2; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<number,!proto.google.api.expr.v1alpha1.Reference>} */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.getReferenceMapMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<number,!proto.google.api.expr.v1alpha1.Reference>} */ ( jspb.Message.getMapField(this, 2, opt_noLazyCreate, proto.google.api.expr.v1alpha1.Reference)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.clearReferenceMapMap = function() { this.getReferenceMapMap().clear(); return this;}; /** * map<int64, Type> type_map = 3; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<number,!proto.google.api.expr.v1alpha1.Type>} */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.getTypeMapMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<number,!proto.google.api.expr.v1alpha1.Type>} */ ( jspb.Message.getMapField(this, 3, opt_noLazyCreate, proto.google.api.expr.v1alpha1.Type)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.clearTypeMapMap = function() { this.getTypeMapMap().clear(); return this;}; /** * optional SourceInfo source_info = 5; * @return {?proto.google.api.expr.v1alpha1.SourceInfo} */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.getSourceInfo = function() { return /** @type{?proto.google.api.expr.v1alpha1.SourceInfo} */ ( jspb.Message.getWrapperField(this, google_api_expr_v1alpha1_syntax_pb.SourceInfo, 5)); }; /** * @param {?proto.google.api.expr.v1alpha1.SourceInfo|undefined} value * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.setSourceInfo = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.clearSourceInfo = function() { return this.setSourceInfo(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.hasSourceInfo = function() { return jspb.Message.getField(this, 5) != null; }; /** * optional string expr_version = 6; * @return {string} */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.getExprVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); }; /** * @param {string} value * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.setExprVersion = function(value) { return jspb.Message.setProto3StringField(this, 6, value); }; /** * optional Expr expr = 4; * @return {?proto.google.api.expr.v1alpha1.Expr} */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.getExpr = function() { return /** @type{?proto.google.api.expr.v1alpha1.Expr} */ ( jspb.Message.getWrapperField(this, google_api_expr_v1alpha1_syntax_pb.Expr, 4)); }; /** * @param {?proto.google.api.expr.v1alpha1.Expr|undefined} value * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.setExpr = function(value) { return jspb.Message.setWrapperField(this, 4, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1alpha1.CheckedExpr} returns this */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.clearExpr = function() { return this.setExpr(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1alpha1.CheckedExpr.prototype.hasExpr = function() { return jspb.Message.getField(this, 4) != 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.google.api.expr.v1alpha1.Type.oneofGroups_ = [[1,2,3,4,5,6,7,8,9,10,11,12,14]]; /** * @enum {number} */ proto.google.api.expr.v1alpha1.Type.TypeKindCase = { TYPE_KIND_NOT_SET: 0, DYN: 1, NULL: 2, PRIMITIVE: 3, WRAPPER: 4, WELL_KNOWN: 5, LIST_TYPE: 6, MAP_TYPE: 7, FUNCTION: 8, MESSAGE_TYPE: 9, TYPE_PARAM: 10, TYPE: 11, ERROR: 12, ABSTRACT_TYPE: 14 }; /** * @return {proto.google.api.expr.v1alpha1.Type.TypeKindCase} */ proto.google.api.expr.v1alpha1.Type.prototype.getTypeKindCase = function() { return /** @type {proto.google.api.expr.v1alpha1.Type.TypeKindCase} */(jspb.Message.computeOneofCase(this, proto.google.api.expr.v1alpha1.Type.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.v1alpha1.Type.prototype.toObject = function(opt_includeInstance) { return proto.google.api.expr.v1alpha1.Type.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.v1alpha1.Type} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1alpha1.Type.toObject = function(includeInstance, msg) { var f, obj = { dyn: (f = msg.getDyn()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f), pb_null: jspb.Message.getFieldWithDefault(msg, 2, 0), primitive: jspb.Message.getFieldWithDefault(msg, 3, 0), wrapper: jspb.Message.getFieldWithDefault(msg, 4, 0), wellKnown: jspb.Message.getFieldWithDefault(msg, 5, 0), listType: (f = msg.getListType()) && proto.google.api.expr.v1alpha1.Type.ListType.toObject(includeInstance, f), mapType: (f = msg.getMapType()) && proto.google.api.expr.v1alpha1.Type.MapType.toObject(includeInstance, f), pb_function: (f = msg.getFunction()) && proto.google.api.expr.v1alpha1.Type.FunctionType.toObject(includeInstance, f), messageType: jspb.Message.getFieldWithDefault(msg, 9, ""), typeParam: jspb.Message.getFieldWithDefault(msg, 10, ""), type: (f = msg.getType()) && proto.google.api.expr.v1alpha1.Type.toObject(includeInstance, f), error: (f = msg.getError()) && google_protobuf_empty_pb.Empty.toObject(includeInstance, f), abstractType: (f = msg.getAbstractType()) && proto.google.api.expr.v1alpha1.Type.AbstractType.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.v1alpha1.Type} */ proto.google.api.expr.v1alpha1.Type.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.expr.v1alpha1.Type; return proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.expr.v1alpha1.Type} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.expr.v1alpha1.Type} */ proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_empty_pb.Empty; reader.readMessage(value,google_protobuf_empty_pb.Empty.deserializeBinaryFromReader); msg.setDyn(value); break; case 2: var value = /** @type {!proto.google.protobuf.NullValue} */ (reader.readEnum()); msg.setNull(value); break; case 3: var value = /** @type {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} */ (reader.readEnum()); msg.setPrimitive(value); break; case 4: var value = /** @type {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} */ (reader.readEnum()); msg.setWrapper(value); break; case 5: var value = /** @type {!proto.google.api.expr.v1alpha1.Type.WellKnownType} */ (reader.readEnum()); msg.setWellKnown(value); break; case 6: var value = new proto.google.api.expr.v1alpha1.Type.ListType; reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.ListType.deserializeBinaryFromReader); msg.setListType(value); break; case 7: var value = new proto.google.api.expr.v1alpha1.Type.MapType; reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.MapType.deserializeBinaryFromReader); msg.setMapType(value); break; case 8: var value = new proto.google.api.expr.v1alpha1.Type.FunctionType; reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.FunctionType.deserializeBinaryFromReader); msg.setFunction(value); break; case 9: var value = /** @type {string} */ (reader.readString()); msg.setMessageType(value); break; case 10: var value = /** @type {string} */ (reader.readString()); msg.setTypeParam(value); break; case 11: var value = new proto.google.api.expr.v1alpha1.Type; reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader); msg.setType(value); break; case 12: var value = new google_protobuf_empty_pb.Empty; reader.readMessage(value,google_protobuf_empty_pb.Empty.deserializeBinaryFromReader); msg.setError(value); break; case 14: var value = new proto.google.api.expr.v1alpha1.Type.AbstractType; reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.AbstractType.deserializeBinaryFromReader); msg.setAbstractType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.expr.v1alpha1.Type.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.expr.v1alpha1.Type.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.v1alpha1.Type} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getDyn(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_empty_pb.Empty.serializeBinaryToWriter ); } f = /** @type {!proto.google.protobuf.NullValue} */ (jspb.Message.getField(message, 2)); if (f != null) { writer.writeEnum( 2, f ); } f = /** @type {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} */ (jspb.Message.getField(message, 3)); if (f != null) { writer.writeEnum( 3, f ); } f = /** @type {!proto.google.api.expr.v1alpha1.Type.PrimitiveType} */ (jspb.Message.getField(message, 4)); if (f != null) { writer.writeEnum( 4, f ); } f = /** @type {!proto.google.api.expr.v1alpha1.Type.WellKnownType} */ (jspb.Message.getField(message, 5)); if (f != null) { writer.writeEnum( 5, f ); } f = message.getListType(); if (f != null) { writer.writeMessage( 6, f, proto.google.api.expr.v1alpha1.Type.ListType.serializeBinaryToWriter ); } f = message.getMapType(); if (f != null) { writer.writeMessage( 7, f, proto.google.api.expr.v1alpha1.Type.MapType.serializeBinaryToWriter ); } f = message.getFunction(); if (f != null) { writer.writeMessage( 8, f, proto.google.api.expr.v1alpha1.Type.FunctionType.serializeBinaryToWriter ); } f = /** @type {string} */ (jspb.Message.getField(message, 9)); if (f != null) { writer.writeString( 9, f ); } f = /** @type {string} */ (jspb.Message.getField(message, 10)); if (f != null) { writer.writeString( 10, f ); } f = message.getType(); if (f != null) { writer.writeMessage( 11, f, proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter ); } f = message.getError(); if (f != null) { writer.writeMessage( 12, f, google_protobuf_empty_pb.Empty.serializeBinaryToWriter ); } f = message.getAbstractType(); if (f != null) { writer.writeMessage( 14, f, proto.google.api.expr.v1alpha1.Type.AbstractType.serializeBinaryToWriter ); } }; /** * @enum {number} */ proto.google.api.expr.v1alpha1.Type.PrimitiveType = { PRIMITIVE_TYPE_UNSPECIFIED: 0, BOOL: 1, INT64: 2, UINT64: 3, DOUBLE: 4, STRING: 5, BYTES: 6 }; /** * @enum {number} */ proto.google.api.expr.v1alpha1.Type.WellKnownType = { WELL_KNOWN_TYPE_UNSPECIFIED: 0, ANY: 1, TIMESTAMP: 2, DURATION: 3 }; 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.v1alpha1.Type.ListType.prototype.toObject = function(opt_includeInstance) { return proto.google.api.expr.v1alpha1.Type.ListType.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.v1alpha1.Type.ListType} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1alpha1.Type.ListType.toObject = function(includeInstance, msg) { var f, obj = { elemType: (f = msg.getElemType()) && proto.google.api.expr.v1alpha1.Type.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.v1alpha1.Type.ListType} */ proto.google.api.expr.v1alpha1.Type.ListType.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.expr.v1alpha1.Type.ListType; return proto.google.api.expr.v1alpha1.Type.ListType.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.expr.v1alpha1.Type.ListType} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.expr.v1alpha1.Type.ListType} */ proto.google.api.expr.v1alpha1.Type.ListType.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.v1alpha1.Type; reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader); msg.setElemType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.expr.v1alpha1.Type.ListType.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.expr.v1alpha1.Type.ListType.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.v1alpha1.Type.ListType} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1alpha1.Type.ListType.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getElemType(); if (f != null) { writer.writeMessage( 1, f, proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter ); } }; /** * optional Type elem_type = 1; * @return {?proto.google.api.expr.v1alpha1.Type} */ proto.google.api.expr.v1alpha1.Type.ListType.prototype.getElemType = function() { return /** @type{?proto.google.api.expr.v1alpha1.Type} */ ( jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 1)); }; /** * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value * @return {!proto.google.api.expr.v1alpha1.Type.ListType} returns this */ proto.google.api.expr.v1alpha1.Type.ListType.prototype.setElemType = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1alpha1.Type.ListType} returns this */ proto.google.api.expr.v1alpha1.Type.ListType.prototype.clearElemType = function() { return this.setElemType(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1alpha1.Type.ListType.prototype.hasElemType = function() { return jspb.Message.getField(this, 1) != 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.v1alpha1.Type.MapType.prototype.toObject = function(opt_includeInstance) { return proto.google.api.expr.v1alpha1.Type.MapType.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.v1alpha1.Type.MapType} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1alpha1.Type.MapType.toObject = function(includeInstance, msg) { var f, obj = { keyType: (f = msg.getKeyType()) && proto.google.api.expr.v1alpha1.Type.toObject(includeInstance, f), valueType: (f = msg.getValueType()) && proto.google.api.expr.v1alpha1.Type.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.v1alpha1.Type.MapType} */ proto.google.api.expr.v1alpha1.Type.MapType.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.expr.v1alpha1.Type.MapType; return proto.google.api.expr.v1alpha1.Type.MapType.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.expr.v1alpha1.Type.MapType} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.expr.v1alpha1.Type.MapType} */ proto.google.api.expr.v1alpha1.Type.MapType.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.v1alpha1.Type; reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader); msg.setKeyType(value); break; case 2: var value = new proto.google.api.expr.v1alpha1.Type; reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader); msg.setValueType(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.expr.v1alpha1.Type.MapType.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.expr.v1alpha1.Type.MapType.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.v1alpha1.Type.MapType} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1alpha1.Type.MapType.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getKeyType(); if (f != null) { writer.writeMessage( 1, f, proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter ); } f = message.getValueType(); if (f != null) { writer.writeMessage( 2, f, proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter ); } }; /** * optional Type key_type = 1; * @return {?proto.google.api.expr.v1alpha1.Type} */ proto.google.api.expr.v1alpha1.Type.MapType.prototype.getKeyType = function() { return /** @type{?proto.google.api.expr.v1alpha1.Type} */ ( jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 1)); }; /** * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value * @return {!proto.google.api.expr.v1alpha1.Type.MapType} returns this */ proto.google.api.expr.v1alpha1.Type.MapType.prototype.setKeyType = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1alpha1.Type.MapType} returns this */ proto.google.api.expr.v1alpha1.Type.MapType.prototype.clearKeyType = function() { return this.setKeyType(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1alpha1.Type.MapType.prototype.hasKeyType = function() { return jspb.Message.getField(this, 1) != null; }; /** * optional Type value_type = 2; * @return {?proto.google.api.expr.v1alpha1.Type} */ proto.google.api.expr.v1alpha1.Type.MapType.prototype.getValueType = function() { return /** @type{?proto.google.api.expr.v1alpha1.Type} */ ( jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 2)); }; /** * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value * @return {!proto.google.api.expr.v1alpha1.Type.MapType} returns this */ proto.google.api.expr.v1alpha1.Type.MapType.prototype.setValueType = function(value) { return jspb.Message.setWrapperField(this, 2, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1alpha1.Type.MapType} returns this */ proto.google.api.expr.v1alpha1.Type.MapType.prototype.clearValueType = function() { return this.setValueType(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1alpha1.Type.MapType.prototype.hasValueType = function() { return jspb.Message.getField(this, 2) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.google.api.expr.v1alpha1.Type.FunctionType.repeatedFields_ = [2]; 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.v1alpha1.Type.FunctionType.prototype.toObject = function(opt_includeInstance) { return proto.google.api.expr.v1alpha1.Type.FunctionType.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.v1alpha1.Type.FunctionType} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1alpha1.Type.FunctionType.toObject = function(includeInstance, msg) { var f, obj = { resultType: (f = msg.getResultType()) && proto.google.api.expr.v1alpha1.Type.toObject(includeInstance, f), argTypesList: jspb.Message.toObjectList(msg.getArgTypesList(), proto.google.api.expr.v1alpha1.Type.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.v1alpha1.Type.FunctionType} */ proto.google.api.expr.v1alpha1.Type.FunctionType.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.expr.v1alpha1.Type.FunctionType; return proto.google.api.expr.v1alpha1.Type.FunctionType.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.expr.v1alpha1.Type.FunctionType} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.expr.v1alpha1.Type.FunctionType} */ proto.google.api.expr.v1alpha1.Type.FunctionType.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.v1alpha1.Type; reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader); msg.setResultType(value); break; case 2: var value = new proto.google.api.expr.v1alpha1.Type; reader.readMessage(value,proto.google.api.expr.v1alpha1.Type.deserializeBinaryFromReader); msg.addArgTypes(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.expr.v1alpha1.Type.FunctionType.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.v1alpha1.Type.FunctionType} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.expr.v1alpha1.Type.FunctionType.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getResultType(); if (f != null) { writer.writeMessage( 1, f, proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter ); } f = message.getArgTypesList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.google.api.expr.v1alpha1.Type.serializeBinaryToWriter ); } }; /** * optional Type result_type = 1; * @return {?proto.google.api.expr.v1alpha1.Type} */ proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.getResultType = function() { return /** @type{?proto.google.api.expr.v1alpha1.Type} */ ( jspb.Message.getWrapperField(this, proto.google.api.expr.v1alpha1.Type, 1)); }; /** * @param {?proto.google.api.expr.v1alpha1.Type|undefined} value * @return {!proto.google.api.expr.v1alpha1.Type.FunctionType} returns this */ proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.setResultType = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.expr.v1alpha1.Type.FunctionType} returns this */ proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.clearResultType = function() { return this.setResultType(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.hasResultType = function() { return jspb.Message.getField(this, 1) != null; }; /** * repeated Type arg_types = 2; * @return {!Array<!proto.google.api.expr.v1alpha1.Type>} */ proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.getArgTypesList = function() { return /** @type{!Array<!proto.google.api.expr.v1alpha1.Type>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.google.api.expr.v1alpha1.Type, 2)); }; /** * @param {!Array<!proto.google.api.expr.v1alpha1.Type>} value * @return {!proto.google.api.expr.v1alpha1.Type.FunctionType} returns this */ proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.setArgTypesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.google.api.expr.v1alpha1.Type=} opt_value * @param {number=} opt_index * @return {!proto.google.api.expr.v1alpha1.Type} */ proto.google.api.expr.v1alpha1.Type.FunctionType.prototype.addArgTypes = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.expr.v1alpha1.Type, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.