UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,581 lines (1,387 loc) 82.6 kB
// source: google/rpc/error_details.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_duration_pb = require('google-protobuf/google/protobuf/duration_pb.js'); goog.object.extend(proto, google_protobuf_duration_pb); goog.exportSymbol('proto.google.rpc.BadRequest', null, global); goog.exportSymbol('proto.google.rpc.BadRequest.FieldViolation', null, global); goog.exportSymbol('proto.google.rpc.DebugInfo', null, global); goog.exportSymbol('proto.google.rpc.ErrorInfo', null, global); goog.exportSymbol('proto.google.rpc.Help', null, global); goog.exportSymbol('proto.google.rpc.Help.Link', null, global); goog.exportSymbol('proto.google.rpc.LocalizedMessage', null, global); goog.exportSymbol('proto.google.rpc.PreconditionFailure', null, global); goog.exportSymbol('proto.google.rpc.PreconditionFailure.Violation', null, global); goog.exportSymbol('proto.google.rpc.QuotaFailure', null, global); goog.exportSymbol('proto.google.rpc.QuotaFailure.Violation', null, global); goog.exportSymbol('proto.google.rpc.RequestInfo', null, global); goog.exportSymbol('proto.google.rpc.ResourceInfo', null, global); goog.exportSymbol('proto.google.rpc.RetryInfo', 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.rpc.ErrorInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.rpc.ErrorInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.ErrorInfo.displayName = 'proto.google.rpc.ErrorInfo'; } /** * 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.rpc.RetryInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.rpc.RetryInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.RetryInfo.displayName = 'proto.google.rpc.RetryInfo'; } /** * 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.rpc.DebugInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.DebugInfo.repeatedFields_, null); }; goog.inherits(proto.google.rpc.DebugInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.DebugInfo.displayName = 'proto.google.rpc.DebugInfo'; } /** * 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.rpc.QuotaFailure = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.QuotaFailure.repeatedFields_, null); }; goog.inherits(proto.google.rpc.QuotaFailure, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.QuotaFailure.displayName = 'proto.google.rpc.QuotaFailure'; } /** * 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.rpc.QuotaFailure.Violation = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.rpc.QuotaFailure.Violation, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.QuotaFailure.Violation.displayName = 'proto.google.rpc.QuotaFailure.Violation'; } /** * 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.rpc.PreconditionFailure = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.PreconditionFailure.repeatedFields_, null); }; goog.inherits(proto.google.rpc.PreconditionFailure, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.PreconditionFailure.displayName = 'proto.google.rpc.PreconditionFailure'; } /** * 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.rpc.PreconditionFailure.Violation = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.rpc.PreconditionFailure.Violation, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.PreconditionFailure.Violation.displayName = 'proto.google.rpc.PreconditionFailure.Violation'; } /** * 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.rpc.BadRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.BadRequest.repeatedFields_, null); }; goog.inherits(proto.google.rpc.BadRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.BadRequest.displayName = 'proto.google.rpc.BadRequest'; } /** * 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.rpc.BadRequest.FieldViolation = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.rpc.BadRequest.FieldViolation, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.BadRequest.FieldViolation.displayName = 'proto.google.rpc.BadRequest.FieldViolation'; } /** * 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.rpc.RequestInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.rpc.RequestInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.RequestInfo.displayName = 'proto.google.rpc.RequestInfo'; } /** * 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.rpc.ResourceInfo = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.rpc.ResourceInfo, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.ResourceInfo.displayName = 'proto.google.rpc.ResourceInfo'; } /** * 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.rpc.Help = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.rpc.Help.repeatedFields_, null); }; goog.inherits(proto.google.rpc.Help, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.Help.displayName = 'proto.google.rpc.Help'; } /** * 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.rpc.Help.Link = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.rpc.Help.Link, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.Help.Link.displayName = 'proto.google.rpc.Help.Link'; } /** * 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.rpc.LocalizedMessage = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.rpc.LocalizedMessage, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.rpc.LocalizedMessage.displayName = 'proto.google.rpc.LocalizedMessage'; } 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.rpc.ErrorInfo.prototype.toObject = function(opt_includeInstance) { return proto.google.rpc.ErrorInfo.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.rpc.ErrorInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.ErrorInfo.toObject = function(includeInstance, msg) { var f, obj = { reason: jspb.Message.getFieldWithDefault(msg, 1, ""), domain: jspb.Message.getFieldWithDefault(msg, 2, ""), metadataMap: (f = msg.getMetadataMap()) ? f.toObject(includeInstance, undefined) : [] }; 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.rpc.ErrorInfo} */ proto.google.rpc.ErrorInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.rpc.ErrorInfo; return proto.google.rpc.ErrorInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.rpc.ErrorInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.rpc.ErrorInfo} */ proto.google.rpc.ErrorInfo.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.setReason(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setDomain(value); break; case 3: var value = msg.getMetadataMap(); reader.readMessage(value, function(message, reader) { jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", ""); }); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.rpc.ErrorInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.rpc.ErrorInfo.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.rpc.ErrorInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.ErrorInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getReason(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getDomain(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getMetadataMap(true); if (f && f.getLength() > 0) { f.serializeBinary(3, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString); } }; /** * optional string reason = 1; * @return {string} */ proto.google.rpc.ErrorInfo.prototype.getReason = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.google.rpc.ErrorInfo} returns this */ proto.google.rpc.ErrorInfo.prototype.setReason = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string domain = 2; * @return {string} */ proto.google.rpc.ErrorInfo.prototype.getDomain = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.google.rpc.ErrorInfo} returns this */ proto.google.rpc.ErrorInfo.prototype.setDomain = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * map<string, string> metadata = 3; * @param {boolean=} opt_noLazyCreate Do not create the map if * empty, instead returning `undefined` * @return {!jspb.Map<string,string>} */ proto.google.rpc.ErrorInfo.prototype.getMetadataMap = function(opt_noLazyCreate) { return /** @type {!jspb.Map<string,string>} */ ( jspb.Message.getMapField(this, 3, opt_noLazyCreate, null)); }; /** * Clears values from the map. The map will be non-null. * @return {!proto.google.rpc.ErrorInfo} returns this */ proto.google.rpc.ErrorInfo.prototype.clearMetadataMap = function() { this.getMetadataMap().clear(); return this;}; 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.rpc.RetryInfo.prototype.toObject = function(opt_includeInstance) { return proto.google.rpc.RetryInfo.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.rpc.RetryInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.RetryInfo.toObject = function(includeInstance, msg) { var f, obj = { retryDelay: (f = msg.getRetryDelay()) && google_protobuf_duration_pb.Duration.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.rpc.RetryInfo} */ proto.google.rpc.RetryInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.rpc.RetryInfo; return proto.google.rpc.RetryInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.rpc.RetryInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.rpc.RetryInfo} */ proto.google.rpc.RetryInfo.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new google_protobuf_duration_pb.Duration; reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); msg.setRetryDelay(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.rpc.RetryInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.rpc.RetryInfo.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.rpc.RetryInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.RetryInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getRetryDelay(); if (f != null) { writer.writeMessage( 1, f, google_protobuf_duration_pb.Duration.serializeBinaryToWriter ); } }; /** * optional google.protobuf.Duration retry_delay = 1; * @return {?proto.google.protobuf.Duration} */ proto.google.rpc.RetryInfo.prototype.getRetryDelay = function() { return /** @type{?proto.google.protobuf.Duration} */ ( jspb.Message.getWrapperField(this, google_protobuf_duration_pb.Duration, 1)); }; /** * @param {?proto.google.protobuf.Duration|undefined} value * @return {!proto.google.rpc.RetryInfo} returns this */ proto.google.rpc.RetryInfo.prototype.setRetryDelay = function(value) { return jspb.Message.setWrapperField(this, 1, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.rpc.RetryInfo} returns this */ proto.google.rpc.RetryInfo.prototype.clearRetryDelay = function() { return this.setRetryDelay(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.rpc.RetryInfo.prototype.hasRetryDelay = function() { return jspb.Message.getField(this, 1) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.google.rpc.DebugInfo.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.rpc.DebugInfo.prototype.toObject = function(opt_includeInstance) { return proto.google.rpc.DebugInfo.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.rpc.DebugInfo} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.DebugInfo.toObject = function(includeInstance, msg) { var f, obj = { stackEntriesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, detail: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.rpc.DebugInfo} */ proto.google.rpc.DebugInfo.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.rpc.DebugInfo; return proto.google.rpc.DebugInfo.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.rpc.DebugInfo} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.rpc.DebugInfo} */ proto.google.rpc.DebugInfo.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.addStackEntries(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setDetail(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.rpc.DebugInfo.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.rpc.DebugInfo.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.rpc.DebugInfo} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.DebugInfo.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getStackEntriesList(); if (f.length > 0) { writer.writeRepeatedString( 1, f ); } f = message.getDetail(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * repeated string stack_entries = 1; * @return {!Array<string>} */ proto.google.rpc.DebugInfo.prototype.getStackEntriesList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1)); }; /** * @param {!Array<string>} value * @return {!proto.google.rpc.DebugInfo} returns this */ proto.google.rpc.DebugInfo.prototype.setStackEntriesList = function(value) { return jspb.Message.setField(this, 1, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.google.rpc.DebugInfo} returns this */ proto.google.rpc.DebugInfo.prototype.addStackEntries = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 1, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.google.rpc.DebugInfo} returns this */ proto.google.rpc.DebugInfo.prototype.clearStackEntriesList = function() { return this.setStackEntriesList([]); }; /** * optional string detail = 2; * @return {string} */ proto.google.rpc.DebugInfo.prototype.getDetail = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.google.rpc.DebugInfo} returns this */ proto.google.rpc.DebugInfo.prototype.setDetail = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.google.rpc.QuotaFailure.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.rpc.QuotaFailure.prototype.toObject = function(opt_includeInstance) { return proto.google.rpc.QuotaFailure.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.rpc.QuotaFailure} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.QuotaFailure.toObject = function(includeInstance, msg) { var f, obj = { violationsList: jspb.Message.toObjectList(msg.getViolationsList(), proto.google.rpc.QuotaFailure.Violation.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.rpc.QuotaFailure} */ proto.google.rpc.QuotaFailure.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.rpc.QuotaFailure; return proto.google.rpc.QuotaFailure.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.rpc.QuotaFailure} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.rpc.QuotaFailure} */ proto.google.rpc.QuotaFailure.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.google.rpc.QuotaFailure.Violation; reader.readMessage(value,proto.google.rpc.QuotaFailure.Violation.deserializeBinaryFromReader); msg.addViolations(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.rpc.QuotaFailure.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.rpc.QuotaFailure.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.rpc.QuotaFailure} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.QuotaFailure.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getViolationsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.google.rpc.QuotaFailure.Violation.serializeBinaryToWriter ); } }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.rpc.QuotaFailure.Violation.prototype.toObject = function(opt_includeInstance) { return proto.google.rpc.QuotaFailure.Violation.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.rpc.QuotaFailure.Violation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.QuotaFailure.Violation.toObject = function(includeInstance, msg) { var f, obj = { subject: jspb.Message.getFieldWithDefault(msg, 1, ""), description: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.rpc.QuotaFailure.Violation} */ proto.google.rpc.QuotaFailure.Violation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.rpc.QuotaFailure.Violation; return proto.google.rpc.QuotaFailure.Violation.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.rpc.QuotaFailure.Violation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.rpc.QuotaFailure.Violation} */ proto.google.rpc.QuotaFailure.Violation.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.setSubject(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setDescription(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.rpc.QuotaFailure.Violation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.rpc.QuotaFailure.Violation.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.rpc.QuotaFailure.Violation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.QuotaFailure.Violation.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getSubject(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getDescription(); if (f.length > 0) { writer.writeString( 2, f ); } }; /** * optional string subject = 1; * @return {string} */ proto.google.rpc.QuotaFailure.Violation.prototype.getSubject = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.google.rpc.QuotaFailure.Violation} returns this */ proto.google.rpc.QuotaFailure.Violation.prototype.setSubject = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string description = 2; * @return {string} */ proto.google.rpc.QuotaFailure.Violation.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.google.rpc.QuotaFailure.Violation} returns this */ proto.google.rpc.QuotaFailure.Violation.prototype.setDescription = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * repeated Violation violations = 1; * @return {!Array<!proto.google.rpc.QuotaFailure.Violation>} */ proto.google.rpc.QuotaFailure.prototype.getViolationsList = function() { return /** @type{!Array<!proto.google.rpc.QuotaFailure.Violation>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.QuotaFailure.Violation, 1)); }; /** * @param {!Array<!proto.google.rpc.QuotaFailure.Violation>} value * @return {!proto.google.rpc.QuotaFailure} returns this */ proto.google.rpc.QuotaFailure.prototype.setViolationsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.google.rpc.QuotaFailure.Violation=} opt_value * @param {number=} opt_index * @return {!proto.google.rpc.QuotaFailure.Violation} */ proto.google.rpc.QuotaFailure.prototype.addViolations = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.QuotaFailure.Violation, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.google.rpc.QuotaFailure} returns this */ proto.google.rpc.QuotaFailure.prototype.clearViolationsList = function() { return this.setViolationsList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.google.rpc.PreconditionFailure.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.rpc.PreconditionFailure.prototype.toObject = function(opt_includeInstance) { return proto.google.rpc.PreconditionFailure.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.rpc.PreconditionFailure} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.PreconditionFailure.toObject = function(includeInstance, msg) { var f, obj = { violationsList: jspb.Message.toObjectList(msg.getViolationsList(), proto.google.rpc.PreconditionFailure.Violation.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.rpc.PreconditionFailure} */ proto.google.rpc.PreconditionFailure.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.rpc.PreconditionFailure; return proto.google.rpc.PreconditionFailure.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.rpc.PreconditionFailure} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.rpc.PreconditionFailure} */ proto.google.rpc.PreconditionFailure.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = new proto.google.rpc.PreconditionFailure.Violation; reader.readMessage(value,proto.google.rpc.PreconditionFailure.Violation.deserializeBinaryFromReader); msg.addViolations(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.rpc.PreconditionFailure.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.rpc.PreconditionFailure.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.rpc.PreconditionFailure} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.PreconditionFailure.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getViolationsList(); if (f.length > 0) { writer.writeRepeatedMessage( 1, f, proto.google.rpc.PreconditionFailure.Violation.serializeBinaryToWriter ); } }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.rpc.PreconditionFailure.Violation.prototype.toObject = function(opt_includeInstance) { return proto.google.rpc.PreconditionFailure.Violation.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.rpc.PreconditionFailure.Violation} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.PreconditionFailure.Violation.toObject = function(includeInstance, msg) { var f, obj = { type: jspb.Message.getFieldWithDefault(msg, 1, ""), subject: jspb.Message.getFieldWithDefault(msg, 2, ""), description: jspb.Message.getFieldWithDefault(msg, 3, "") }; 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.rpc.PreconditionFailure.Violation} */ proto.google.rpc.PreconditionFailure.Violation.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.rpc.PreconditionFailure.Violation; return proto.google.rpc.PreconditionFailure.Violation.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.rpc.PreconditionFailure.Violation} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.rpc.PreconditionFailure.Violation} */ proto.google.rpc.PreconditionFailure.Violation.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); msg.setType(value); break; case 2: var value = /** @type {string} */ (reader.readString()); msg.setSubject(value); break; case 3: var value = /** @type {string} */ (reader.readString()); msg.setDescription(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.rpc.PreconditionFailure.Violation.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.rpc.PreconditionFailure.Violation.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.rpc.PreconditionFailure.Violation} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.PreconditionFailure.Violation.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getType(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getSubject(); if (f.length > 0) { writer.writeString( 2, f ); } f = message.getDescription(); if (f.length > 0) { writer.writeString( 3, f ); } }; /** * optional string type = 1; * @return {string} */ proto.google.rpc.PreconditionFailure.Violation.prototype.getType = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.google.rpc.PreconditionFailure.Violation} returns this */ proto.google.rpc.PreconditionFailure.Violation.prototype.setType = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional string subject = 2; * @return {string} */ proto.google.rpc.PreconditionFailure.Violation.prototype.getSubject = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value * @return {!proto.google.rpc.PreconditionFailure.Violation} returns this */ proto.google.rpc.PreconditionFailure.Violation.prototype.setSubject = function(value) { return jspb.Message.setProto3StringField(this, 2, value); }; /** * optional string description = 3; * @return {string} */ proto.google.rpc.PreconditionFailure.Violation.prototype.getDescription = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; /** * @param {string} value * @return {!proto.google.rpc.PreconditionFailure.Violation} returns this */ proto.google.rpc.PreconditionFailure.Violation.prototype.setDescription = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; /** * repeated Violation violations = 1; * @return {!Array<!proto.google.rpc.PreconditionFailure.Violation>} */ proto.google.rpc.PreconditionFailure.prototype.getViolationsList = function() { return /** @type{!Array<!proto.google.rpc.PreconditionFailure.Violation>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.google.rpc.PreconditionFailure.Violation, 1)); }; /** * @param {!Array<!proto.google.rpc.PreconditionFailure.Violation>} value * @return {!proto.google.rpc.PreconditionFailure} returns this */ proto.google.rpc.PreconditionFailure.prototype.setViolationsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 1, value); }; /** * @param {!proto.google.rpc.PreconditionFailure.Violation=} opt_value * @param {number=} opt_index * @return {!proto.google.rpc.PreconditionFailure.Violation} */ proto.google.rpc.PreconditionFailure.prototype.addViolations = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.google.rpc.PreconditionFailure.Violation, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.google.rpc.PreconditionFailure} returns this */ proto.google.rpc.PreconditionFailure.prototype.clearViolationsList = function() { return this.setViolationsList([]); }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.google.rpc.BadRequest.repeatedFields_ = [1]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.rpc.BadRequest.prototype.toObject = function(opt_includeInstance) { return proto.google.rpc.BadRequest.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.rpc.BadRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.rpc.BadRequest.toObject = function(includeInstance, msg) { var f, obj = { fieldViolationsList: jspb.Message.toObjectList(msg.getFieldViolationsList(), proto.google.rpc.BadRequest.FieldViolation.toObject, includeInstance) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes Th