UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,478 lines (1,276 loc) 66.4 kB
// source: cosmos/orm/query/v1alpha1/query.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_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js'); goog.object.extend(proto, google_protobuf_timestamp_pb); var google_protobuf_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); goog.object.extend(proto, google_protobuf_duration_pb); var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js'); goog.object.extend(proto, google_protobuf_any_pb); var cosmos_base_query_v1beta1_pagination_pb = require('../../../../cosmos/base/query/v1beta1/pagination_pb.js'); goog.object.extend(proto, cosmos_base_query_v1beta1_pagination_pb); goog.exportSymbol('proto.cosmos.orm.query.v1alpha1.GetRequest', null, global); goog.exportSymbol('proto.cosmos.orm.query.v1alpha1.GetResponse', null, global); goog.exportSymbol('proto.cosmos.orm.query.v1alpha1.IndexValue', null, global); goog.exportSymbol('proto.cosmos.orm.query.v1alpha1.IndexValue.ValueCase', null, global); goog.exportSymbol('proto.cosmos.orm.query.v1alpha1.ListRequest', null, global); goog.exportSymbol('proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix', null, global); goog.exportSymbol('proto.cosmos.orm.query.v1alpha1.ListRequest.QueryCase', null, global); goog.exportSymbol('proto.cosmos.orm.query.v1alpha1.ListRequest.Range', null, global); goog.exportSymbol('proto.cosmos.orm.query.v1alpha1.ListResponse', 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.cosmos.orm.query.v1alpha1.GetRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.orm.query.v1alpha1.GetRequest.repeatedFields_, null); }; goog.inherits(proto.cosmos.orm.query.v1alpha1.GetRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.orm.query.v1alpha1.GetRequest.displayName = 'proto.cosmos.orm.query.v1alpha1.GetRequest'; } /** * 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.cosmos.orm.query.v1alpha1.GetResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.cosmos.orm.query.v1alpha1.GetResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.orm.query.v1alpha1.GetResponse.displayName = 'proto.cosmos.orm.query.v1alpha1.GetResponse'; } /** * 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.cosmos.orm.query.v1alpha1.ListRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.cosmos.orm.query.v1alpha1.ListRequest.oneofGroups_); }; goog.inherits(proto.cosmos.orm.query.v1alpha1.ListRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.orm.query.v1alpha1.ListRequest.displayName = 'proto.cosmos.orm.query.v1alpha1.ListRequest'; } /** * 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.cosmos.orm.query.v1alpha1.ListRequest.Prefix = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.repeatedFields_, null); }; goog.inherits(proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.displayName = 'proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix'; } /** * 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.cosmos.orm.query.v1alpha1.ListRequest.Range = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.orm.query.v1alpha1.ListRequest.Range.repeatedFields_, null); }; goog.inherits(proto.cosmos.orm.query.v1alpha1.ListRequest.Range, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.displayName = 'proto.cosmos.orm.query.v1alpha1.ListRequest.Range'; } /** * 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.cosmos.orm.query.v1alpha1.ListResponse = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.cosmos.orm.query.v1alpha1.ListResponse.repeatedFields_, null); }; goog.inherits(proto.cosmos.orm.query.v1alpha1.ListResponse, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.orm.query.v1alpha1.ListResponse.displayName = 'proto.cosmos.orm.query.v1alpha1.ListResponse'; } /** * 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.cosmos.orm.query.v1alpha1.IndexValue = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, proto.cosmos.orm.query.v1alpha1.IndexValue.oneofGroups_); }; goog.inherits(proto.cosmos.orm.query.v1alpha1.IndexValue, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.cosmos.orm.query.v1alpha1.IndexValue.displayName = 'proto.cosmos.orm.query.v1alpha1.IndexValue'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.orm.query.v1alpha1.GetRequest.repeatedFields_ = [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.cosmos.orm.query.v1alpha1.GetRequest.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.orm.query.v1alpha1.GetRequest.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.cosmos.orm.query.v1alpha1.GetRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.GetRequest.toObject = function(includeInstance, msg) { var f, obj = { messageName: jspb.Message.getFieldWithDefault(msg, 1, ""), index: jspb.Message.getFieldWithDefault(msg, 2, ""), valuesList: jspb.Message.toObjectList(msg.getValuesList(), proto.cosmos.orm.query.v1alpha1.IndexValue.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.cosmos.orm.query.v1alpha1.GetRequest} */ proto.cosmos.orm.query.v1alpha1.GetRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.orm.query.v1alpha1.GetRequest; return proto.cosmos.orm.query.v1alpha1.GetRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.orm.query.v1alpha1.GetRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.orm.query.v1alpha1.GetRequest} */ proto.cosmos.orm.query.v1alpha1.GetRequest.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.setMessageName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setIndex(value); break; case 3: var value = new proto.cosmos.orm.query.v1alpha1.IndexValue; reader.readMessage(value,proto.cosmos.orm.query.v1alpha1.IndexValue.deserializeBinaryFromReader); msg.addValues(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.orm.query.v1alpha1.GetRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.orm.query.v1alpha1.GetRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.orm.query.v1alpha1.GetRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.GetRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMessageName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getIndex(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getValuesList(); if (f.length > 0) { writer.writeRepeatedMessage( 3, f, proto.cosmos.orm.query.v1alpha1.IndexValue.serializeBinaryToWriter ); } }; /** * optional string message_name = 1; * @return {string} */ proto.cosmos.orm.query.v1alpha1.GetRequest.prototype.getMessageName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmos.orm.query.v1alpha1.GetRequest} returns this */ proto.cosmos.orm.query.v1alpha1.GetRequest.prototype.setMessageName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string index = 2; * @return {string} */ proto.cosmos.orm.query.v1alpha1.GetRequest.prototype.getIndex = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.cosmos.orm.query.v1alpha1.GetRequest} returns this */ proto.cosmos.orm.query.v1alpha1.GetRequest.prototype.setIndex = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * repeated IndexValue values = 3; * @return {!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} */ proto.cosmos.orm.query.v1alpha1.GetRequest.prototype.getValuesList = function() { return /** @type{!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.cosmos.orm.query.v1alpha1.IndexValue, 3)); }; /** * @param {!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} value * @return {!proto.cosmos.orm.query.v1alpha1.GetRequest} returns this */ proto.cosmos.orm.query.v1alpha1.GetRequest.prototype.setValuesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 3, value); }; /** * @param {!proto.cosmos.orm.query.v1alpha1.IndexValue=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.orm.query.v1alpha1.IndexValue} */ proto.cosmos.orm.query.v1alpha1.GetRequest.prototype.addValues = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cosmos.orm.query.v1alpha1.IndexValue, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.orm.query.v1alpha1.GetRequest} returns this */ proto.cosmos.orm.query.v1alpha1.GetRequest.prototype.clearValuesList = function() { return this.setValuesList([]); }; 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.cosmos.orm.query.v1alpha1.GetResponse.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.orm.query.v1alpha1.GetResponse.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.cosmos.orm.query.v1alpha1.GetResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.GetResponse.toObject = function(includeInstance, msg) { var f, obj = { result: (f = msg.getResult()) && google_protobuf_any_pb.Any.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.cosmos.orm.query.v1alpha1.GetResponse} */ proto.cosmos.orm.query.v1alpha1.GetResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.orm.query.v1alpha1.GetResponse; return proto.cosmos.orm.query.v1alpha1.GetResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.orm.query.v1alpha1.GetResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.orm.query.v1alpha1.GetResponse} */ proto.cosmos.orm.query.v1alpha1.GetResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_any_pb.Any; reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.setResult(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.orm.query.v1alpha1.GetResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.orm.query.v1alpha1.GetResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.orm.query.v1alpha1.GetResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.GetResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getResult(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_any_pb.Any.serializeBinaryToWriter ); } }; /** * optional google.protobuf.Any result = 1; * @return {?proto.google.protobuf.Any} */ proto.cosmos.orm.query.v1alpha1.GetResponse.prototype.getResult = function() { return /** @type{?proto.google.protobuf.Any} */ ( jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 1)); }; /** * @param {?proto.google.protobuf.Any|undefined} value * @return {!proto.cosmos.orm.query.v1alpha1.GetResponse} returns this */ proto.cosmos.orm.query.v1alpha1.GetResponse.prototype.setResult = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.orm.query.v1alpha1.GetResponse} returns this */ proto.cosmos.orm.query.v1alpha1.GetResponse.prototype.clearResult = function() { return this.setResult(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.orm.query.v1alpha1.GetResponse.prototype.hasResult = function() { return jspb.Message.getField(this, 1) != 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.cosmos.orm.query.v1alpha1.ListRequest.oneofGroups_ = [[3,4]]; /** * @enum {number} */ proto.cosmos.orm.query.v1alpha1.ListRequest.QueryCase = { QUERY_NOT_SET: 0, PREFIX: 3, RANGE: 4 }; /** * @return {proto.cosmos.orm.query.v1alpha1.ListRequest.QueryCase} */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.getQueryCase = function() { return /** @type {proto.cosmos.orm.query.v1alpha1.ListRequest.QueryCase} */(jspb.Message.computeOneofCase(this, proto.cosmos.orm.query.v1alpha1.ListRequest.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.cosmos.orm.query.v1alpha1.ListRequest.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.orm.query.v1alpha1.ListRequest.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.cosmos.orm.query.v1alpha1.ListRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.ListRequest.toObject = function(includeInstance, msg) { var f, obj = { messageName: jspb.Message.getFieldWithDefault(msg, 1, ""), index: jspb.Message.getFieldWithDefault(msg, 2, ""), prefix: (f = msg.getPrefix()) && proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.toObject(includeInstance, f), range: (f = msg.getRange()) && proto.cosmos.orm.query.v1alpha1.ListRequest.Range.toObject(includeInstance, f), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageRequest.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.cosmos.orm.query.v1alpha1.ListRequest} */ proto.cosmos.orm.query.v1alpha1.ListRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.orm.query.v1alpha1.ListRequest; return proto.cosmos.orm.query.v1alpha1.ListRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.orm.query.v1alpha1.ListRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest} */ proto.cosmos.orm.query.v1alpha1.ListRequest.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.setMessageName(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setIndex(value); break; case 3: var value = new proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix; reader.readMessage(value,proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.deserializeBinaryFromReader); msg.setPrefix(value); break; case 4: var value = new proto.cosmos.orm.query.v1alpha1.ListRequest.Range; reader.readMessage(value,proto.cosmos.orm.query.v1alpha1.ListRequest.Range.deserializeBinaryFromReader); msg.setRange(value); break; case 5: var value = new cosmos_base_query_v1beta1_pagination_pb.PageRequest; reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageRequest.deserializeBinaryFromReader); msg.setPagination(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.orm.query.v1alpha1.ListRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.orm.query.v1alpha1.ListRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.ListRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMessageName(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getIndex(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getPrefix(); if (f != null) { writer.writeMessage( 3, f, proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.serializeBinaryToWriter ); } f = message.getRange(); if (f != null) { writer.writeMessage( 4, f, proto.cosmos.orm.query.v1alpha1.ListRequest.Range.serializeBinaryToWriter ); } f = message.getPagination(); if (f != null) { writer.writeMessage( 5, f, cosmos_base_query_v1beta1_pagination_pb.PageRequest.serializeBinaryToWriter ); } }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.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.cosmos.orm.query.v1alpha1.ListRequest.Prefix.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.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.cosmos.orm.query.v1alpha1.ListRequest.Prefix} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.toObject = function(includeInstance, msg) { var f, obj = { valuesList: jspb.Message.toObjectList(msg.getValuesList(), proto.cosmos.orm.query.v1alpha1.IndexValue.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.cosmos.orm.query.v1alpha1.ListRequest.Prefix} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix; return proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.cosmos.orm.query.v1alpha1.IndexValue; reader.readMessage(value,proto.cosmos.orm.query.v1alpha1.IndexValue.deserializeBinaryFromReader); msg.addValues(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getValuesList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.cosmos.orm.query.v1alpha1.IndexValue.serializeBinaryToWriter ); } }; /** * repeated IndexValue values = 1; * @return {!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.prototype.getValuesList = function() { return /** @type{!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.cosmos.orm.query.v1alpha1.IndexValue, 1)); }; /** * @param {!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} value * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.prototype.setValuesList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmos.orm.query.v1alpha1.IndexValue=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.orm.query.v1alpha1.IndexValue} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.prototype.addValues = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.orm.query.v1alpha1.IndexValue, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix.prototype.clearValuesList = function() { return this.setValuesList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.repeatedFields_ = [1,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.cosmos.orm.query.v1alpha1.ListRequest.Range.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.orm.query.v1alpha1.ListRequest.Range.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.cosmos.orm.query.v1alpha1.ListRequest.Range} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.toObject = function(includeInstance, msg) { var f, obj = { startList: jspb.Message.toObjectList(msg.getStartList(), proto.cosmos.orm.query.v1alpha1.IndexValue.toObject, includeInstance), endList: jspb.Message.toObjectList(msg.getEndList(), proto.cosmos.orm.query.v1alpha1.IndexValue.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.cosmos.orm.query.v1alpha1.ListRequest.Range} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.orm.query.v1alpha1.ListRequest.Range; return proto.cosmos.orm.query.v1alpha1.ListRequest.Range.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.orm.query.v1alpha1.ListRequest.Range} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest.Range} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.cosmos.orm.query.v1alpha1.IndexValue; reader.readMessage(value,proto.cosmos.orm.query.v1alpha1.IndexValue.deserializeBinaryFromReader); msg.addStart(value); break; case 2: var value = new proto.cosmos.orm.query.v1alpha1.IndexValue; reader.readMessage(value,proto.cosmos.orm.query.v1alpha1.IndexValue.deserializeBinaryFromReader); msg.addEnd(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.orm.query.v1alpha1.ListRequest.Range.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.orm.query.v1alpha1.ListRequest.Range} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStartList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.cosmos.orm.query.v1alpha1.IndexValue.serializeBinaryToWriter ); } f = message.getEndList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.cosmos.orm.query.v1alpha1.IndexValue.serializeBinaryToWriter ); } }; /** * repeated IndexValue start = 1; * @return {!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.prototype.getStartList = function() { return /** @type{!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.cosmos.orm.query.v1alpha1.IndexValue, 1)); }; /** * @param {!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} value * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest.Range} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.prototype.setStartList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.cosmos.orm.query.v1alpha1.IndexValue=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.orm.query.v1alpha1.IndexValue} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.prototype.addStart = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cosmos.orm.query.v1alpha1.IndexValue, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest.Range} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.prototype.clearStartList = function() { return this.setStartList([]); }; /** * repeated IndexValue end = 2; * @return {!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.prototype.getEndList = function() { return /** @type{!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.cosmos.orm.query.v1alpha1.IndexValue, 2)); }; /** * @param {!Array<!proto.cosmos.orm.query.v1alpha1.IndexValue>} value * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest.Range} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.prototype.setEndList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.cosmos.orm.query.v1alpha1.IndexValue=} opt_value * @param {number=} opt_index * @return {!proto.cosmos.orm.query.v1alpha1.IndexValue} */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.prototype.addEnd = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cosmos.orm.query.v1alpha1.IndexValue, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest.Range} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.Range.prototype.clearEndList = function() { return this.setEndList([]); }; /** * optional string message_name = 1; * @return {string} */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.getMessageName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.setMessageName = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string index = 2; * @return {string} */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.getIndex = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.setIndex = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional Prefix prefix = 3; * @return {?proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix} */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.getPrefix = function() { return /** @type{?proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix} */ ( jspb.Message.getWrapperField(this, proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix, 3)); }; /** * @param {?proto.cosmos.orm.query.v1alpha1.ListRequest.Prefix|undefined} value * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.setPrefix = function(value) { return jspb.Message.setOneofWrapperField(this, 3, proto.cosmos.orm.query.v1alpha1.ListRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.clearPrefix = function() { return this.setPrefix(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.hasPrefix = function() { return jspb.Message.getField(this, 3) != null; }; /** * optional Range range = 4; * @return {?proto.cosmos.orm.query.v1alpha1.ListRequest.Range} */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.getRange = function() { return /** @type{?proto.cosmos.orm.query.v1alpha1.ListRequest.Range} */ ( jspb.Message.getWrapperField(this, proto.cosmos.orm.query.v1alpha1.ListRequest.Range, 4)); }; /** * @param {?proto.cosmos.orm.query.v1alpha1.ListRequest.Range|undefined} value * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.setRange = function(value) { return jspb.Message.setOneofWrapperField(this, 4, proto.cosmos.orm.query.v1alpha1.ListRequest.oneofGroups_[0], value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.clearRange = function() { return this.setRange(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.hasRange = function() { return jspb.Message.getField(this, 4) != null; }; /** * optional cosmos.base.query.v1beta1.PageRequest pagination = 5; * @return {?proto.cosmos.base.query.v1beta1.PageRequest} */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.getPagination = function() { return /** @type{?proto.cosmos.base.query.v1beta1.PageRequest} */ ( jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageRequest, 5)); }; /** * @param {?proto.cosmos.base.query.v1beta1.PageRequest|undefined} value * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.orm.query.v1alpha1.ListRequest} returns this */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.clearPagination = function() { return this.setPagination(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.orm.query.v1alpha1.ListRequest.prototype.hasPagination = function() { return jspb.Message.getField(this, 5) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.cosmos.orm.query.v1alpha1.ListResponse.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.cosmos.orm.query.v1alpha1.ListResponse.prototype.toObject = function(opt_includeInstance) { return proto.cosmos.orm.query.v1alpha1.ListResponse.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.cosmos.orm.query.v1alpha1.ListResponse} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.ListResponse.toObject = function(includeInstance, msg) { var f, obj = { resultsList: jspb.Message.toObjectList(msg.getResultsList(), google_protobuf_any_pb.Any.toObject, includeInstance), pagination: (f = msg.getPagination()) && cosmos_base_query_v1beta1_pagination_pb.PageResponse.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.cosmos.orm.query.v1alpha1.ListResponse} */ proto.cosmos.orm.query.v1alpha1.ListResponse.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.cosmos.orm.query.v1alpha1.ListResponse; return proto.cosmos.orm.query.v1alpha1.ListResponse.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.cosmos.orm.query.v1alpha1.ListResponse} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.cosmos.orm.query.v1alpha1.ListResponse} */ proto.cosmos.orm.query.v1alpha1.ListResponse.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_any_pb.Any; reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.addResults(value); break; case 5: var value = new cosmos_base_query_v1beta1_pagination_pb.PageResponse; reader.readMessage(value,cosmos_base_query_v1beta1_pagination_pb.PageResponse.deserializeBinaryFromReader); msg.setPagination(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.cosmos.orm.query.v1alpha1.ListResponse.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.cosmos.orm.query.v1alpha1.ListResponse.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.cosmos.orm.query.v1alpha1.ListResponse} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.cosmos.orm.query.v1alpha1.ListResponse.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getResultsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, google_protobuf_any_pb.Any.serializeBinaryToWriter ); } f = message.getPagination(); if (f != null) { writer.writeMessage( 5, f, cosmos_base_query_v1beta1_pagination_pb.PageResponse.serializeBinaryToWriter ); } }; /** * repeated google.protobuf.Any results = 1; * @return {!Array<!proto.google.protobuf.Any>} */ proto.cosmos.orm.query.v1alpha1.ListResponse.prototype.getResultsList = function() { return /** @type{!Array<!proto.google.protobuf.Any>} */ ( jspb.Message.getRepeatedWrapperField(this, google_protobuf_any_pb.Any, 1)); }; /** * @param {!Array<!proto.google.protobuf.Any>} value * @return {!proto.cosmos.orm.query.v1alpha1.ListResponse} returns this */ proto.cosmos.orm.query.v1alpha1.ListResponse.prototype.setResultsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.google.protobuf.Any=} opt_value * @param {number=} opt_index * @return {!proto.google.protobuf.Any} */ proto.cosmos.orm.query.v1alpha1.ListResponse.prototype.addResults = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.protobuf.Any, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.cosmos.orm.query.v1alpha1.ListResponse} returns this */ proto.cosmos.orm.query.v1alpha1.ListResponse.prototype.clearResultsList = function() { return this.setResultsList([]); }; /** * optional cosmos.base.query.v1beta1.PageResponse pagination = 5; * @return {?proto.cosmos.base.query.v1beta1.PageResponse} */ proto.cosmos.orm.query.v1alpha1.ListResponse.prototype.getPagination = function() { return /** @type{?proto.cosmos.base.query.v1beta1.PageResponse} */ ( jspb.Message.getWrapperField(this, cosmos_base_query_v1beta1_pagination_pb.PageResponse, 5)); }; /** * @param {?proto.cosmos.base.query.v1beta1.PageResponse|undefined} value * @return {!proto.cosmos.orm.query.v1alpha1.ListResponse} returns this */ proto.cosmos.orm.query.v1alpha1.ListResponse.prototype.setPagination = function(value) { return jspb.Message.setWrapperField(this, 5, value); }; /** * Clears the message field making it undefined. * @return {!proto.cosmos.orm.query.v1alpha1.ListResponse} returns this */ proto.cosmos.orm.query.v1alpha1.ListResponse.prototype.clearPagination = function() { return this.setPagination(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.cosmos.orm.query.v1alpha1.ListResponse.prototype.hasPagination = function() { return jspb.Message.getField(this, 5) != null; }; /** * On