UNPKG

@routerprotocol/chain-api

Version:

Router Chain API Query client with generated gRPC bindings.

1,590 lines (1,398 loc) 116 kB
// source: google/api/client.proto /** * @fileoverview * @enhanceable * @suppress {missingRequire} reports error on implicit type usages. * @suppress {messageConventions} JS Compiler reports an error if a variable or * field starts with 'MSG_' and isn't a translatable message. * @public */ // GENERATED CODE -- DO NOT EDIT! /* eslint-disable */ // @ts-nocheck var jspb = require('google-protobuf'); var goog = jspb; var global = Function('return this')(); var google_api_launch_stage_pb = require('../../google/api/launch_stage_pb.js'); goog.object.extend(proto, google_api_launch_stage_pb); var google_protobuf_descriptor_pb = require('google-protobuf/google/protobuf/descriptor_pb.js'); goog.object.extend(proto, google_protobuf_descriptor_pb); 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.api.ClientLibraryDestination', null, global); goog.exportSymbol('proto.google.api.ClientLibraryOrganization', null, global); goog.exportSymbol('proto.google.api.ClientLibrarySettings', null, global); goog.exportSymbol('proto.google.api.CommonLanguageSettings', null, global); goog.exportSymbol('proto.google.api.CppSettings', null, global); goog.exportSymbol('proto.google.api.DotnetSettings', null, global); goog.exportSymbol('proto.google.api.GoSettings', null, global); goog.exportSymbol('proto.google.api.JavaSettings', null, global); goog.exportSymbol('proto.google.api.MethodSettings', null, global); goog.exportSymbol('proto.google.api.MethodSettings.LongRunning', null, global); goog.exportSymbol('proto.google.api.NodeSettings', null, global); goog.exportSymbol('proto.google.api.PhpSettings', null, global); goog.exportSymbol('proto.google.api.Publishing', null, global); goog.exportSymbol('proto.google.api.PythonSettings', null, global); goog.exportSymbol('proto.google.api.RubySettings', null, global); goog.exportSymbol('proto.google.api.apiVersion', null, global); goog.exportSymbol('proto.google.api.defaultHost', null, global); goog.exportSymbol('proto.google.api.methodSignatureList', null, global); goog.exportSymbol('proto.google.api.oauthScopes', null, global); /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.CommonLanguageSettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.CommonLanguageSettings.repeatedFields_, null); }; goog.inherits(proto.google.api.CommonLanguageSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.CommonLanguageSettings.displayName = 'proto.google.api.CommonLanguageSettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.ClientLibrarySettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.ClientLibrarySettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.ClientLibrarySettings.displayName = 'proto.google.api.ClientLibrarySettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.Publishing = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.Publishing.repeatedFields_, null); }; goog.inherits(proto.google.api.Publishing, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.Publishing.displayName = 'proto.google.api.Publishing'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.JavaSettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.JavaSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.JavaSettings.displayName = 'proto.google.api.JavaSettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.CppSettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.CppSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.CppSettings.displayName = 'proto.google.api.CppSettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.PhpSettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.PhpSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.PhpSettings.displayName = 'proto.google.api.PhpSettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.PythonSettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.PythonSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.PythonSettings.displayName = 'proto.google.api.PythonSettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.NodeSettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.NodeSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.NodeSettings.displayName = 'proto.google.api.NodeSettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.DotnetSettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.DotnetSettings.repeatedFields_, null); }; goog.inherits(proto.google.api.DotnetSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.DotnetSettings.displayName = 'proto.google.api.DotnetSettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.RubySettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.RubySettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.RubySettings.displayName = 'proto.google.api.RubySettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.GoSettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.GoSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.GoSettings.displayName = 'proto.google.api.GoSettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.MethodSettings = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MethodSettings.repeatedFields_, null); }; goog.inherits(proto.google.api.MethodSettings, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.MethodSettings.displayName = 'proto.google.api.MethodSettings'; } /** * Generated by JsPbCodeGenerator. * @param {Array=} opt_data Optional initial data array, typically from a * server response, or constructed directly in Javascript. The array is used * in place and becomes part of the constructed object. It is not cloned. * If no data is provided, the constructed object will be empty, but still * valid. * @extends {jspb.Message} * @constructor */ proto.google.api.MethodSettings.LongRunning = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; goog.inherits(proto.google.api.MethodSettings.LongRunning, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ proto.google.api.MethodSettings.LongRunning.displayName = 'proto.google.api.MethodSettings.LongRunning'; } /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.google.api.CommonLanguageSettings.repeatedFields_ = [2]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.api.CommonLanguageSettings.prototype.toObject = function(opt_includeInstance) { return proto.google.api.CommonLanguageSettings.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.google.api.CommonLanguageSettings} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.CommonLanguageSettings.toObject = function(includeInstance, msg) { var f, obj = { referenceDocsUri: jspb.Message.getFieldWithDefault(msg, 1, ""), destinationsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.api.CommonLanguageSettings} */ proto.google.api.CommonLanguageSettings.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.CommonLanguageSettings; return proto.google.api.CommonLanguageSettings.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.CommonLanguageSettings} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.CommonLanguageSettings} */ proto.google.api.CommonLanguageSettings.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.setReferenceDocsUri(value); break; case 2: var values = /** @type {!Array<!proto.google.api.ClientLibraryDestination>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]); for (var i = 0; i < values.length; i++) { msg.addDestinations(values[i]); } break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.CommonLanguageSettings.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.CommonLanguageSettings.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.api.CommonLanguageSettings} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.CommonLanguageSettings.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getReferenceDocsUri(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getDestinationsList(); if (f.length > 0) { writer.writePackedEnum( 2, f ); } }; /** * optional string reference_docs_uri = 1; * @return {string} */ proto.google.api.CommonLanguageSettings.prototype.getReferenceDocsUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.google.api.CommonLanguageSettings} returns this */ proto.google.api.CommonLanguageSettings.prototype.setReferenceDocsUri = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * repeated ClientLibraryDestination destinations = 2; * @return {!Array<!proto.google.api.ClientLibraryDestination>} */ proto.google.api.CommonLanguageSettings.prototype.getDestinationsList = function() { return /** @type {!Array<!proto.google.api.ClientLibraryDestination>} */ (jspb.Message.getRepeatedField(this, 2)); }; /** * @param {!Array<!proto.google.api.ClientLibraryDestination>} value * @return {!proto.google.api.CommonLanguageSettings} returns this */ proto.google.api.CommonLanguageSettings.prototype.setDestinationsList = function(value) { return jspb.Message.setField(this, 2, value || []); }; /** * @param {!proto.google.api.ClientLibraryDestination} value * @param {number=} opt_index * @return {!proto.google.api.CommonLanguageSettings} returns this */ proto.google.api.CommonLanguageSettings.prototype.addDestinations = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 2, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.google.api.CommonLanguageSettings} returns this */ proto.google.api.CommonLanguageSettings.prototype.clearDestinationsList = function() { return this.setDestinationsList([]); }; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.api.ClientLibrarySettings.prototype.toObject = function(opt_includeInstance) { return proto.google.api.ClientLibrarySettings.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.google.api.ClientLibrarySettings} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.ClientLibrarySettings.toObject = function(includeInstance, msg) { var f, obj = { version: jspb.Message.getFieldWithDefault(msg, 1, ""), launchStage: jspb.Message.getFieldWithDefault(msg, 2, 0), restNumericEnums: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), javaSettings: (f = msg.getJavaSettings()) && proto.google.api.JavaSettings.toObject(includeInstance, f), cppSettings: (f = msg.getCppSettings()) && proto.google.api.CppSettings.toObject(includeInstance, f), phpSettings: (f = msg.getPhpSettings()) && proto.google.api.PhpSettings.toObject(includeInstance, f), pythonSettings: (f = msg.getPythonSettings()) && proto.google.api.PythonSettings.toObject(includeInstance, f), nodeSettings: (f = msg.getNodeSettings()) && proto.google.api.NodeSettings.toObject(includeInstance, f), dotnetSettings: (f = msg.getDotnetSettings()) && proto.google.api.DotnetSettings.toObject(includeInstance, f), rubySettings: (f = msg.getRubySettings()) && proto.google.api.RubySettings.toObject(includeInstance, f), goSettings: (f = msg.getGoSettings()) && proto.google.api.GoSettings.toObject(includeInstance, f) }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.api.ClientLibrarySettings} */ proto.google.api.ClientLibrarySettings.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.ClientLibrarySettings; return proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.ClientLibrarySettings} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.ClientLibrarySettings} */ proto.google.api.ClientLibrarySettings.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.setVersion(value); break; case 2: var value = /** @type {!proto.google.api.LaunchStage} */ (reader.readEnum()); msg.setLaunchStage(value); break; case 3: var value = /** @type {boolean} */ (reader.readBool()); msg.setRestNumericEnums(value); break; case 21: var value = new proto.google.api.JavaSettings; reader.readMessage(value,proto.google.api.JavaSettings.deserializeBinaryFromReader); msg.setJavaSettings(value); break; case 22: var value = new proto.google.api.CppSettings; reader.readMessage(value,proto.google.api.CppSettings.deserializeBinaryFromReader); msg.setCppSettings(value); break; case 23: var value = new proto.google.api.PhpSettings; reader.readMessage(value,proto.google.api.PhpSettings.deserializeBinaryFromReader); msg.setPhpSettings(value); break; case 24: var value = new proto.google.api.PythonSettings; reader.readMessage(value,proto.google.api.PythonSettings.deserializeBinaryFromReader); msg.setPythonSettings(value); break; case 25: var value = new proto.google.api.NodeSettings; reader.readMessage(value,proto.google.api.NodeSettings.deserializeBinaryFromReader); msg.setNodeSettings(value); break; case 26: var value = new proto.google.api.DotnetSettings; reader.readMessage(value,proto.google.api.DotnetSettings.deserializeBinaryFromReader); msg.setDotnetSettings(value); break; case 27: var value = new proto.google.api.RubySettings; reader.readMessage(value,proto.google.api.RubySettings.deserializeBinaryFromReader); msg.setRubySettings(value); break; case 28: var value = new proto.google.api.GoSettings; reader.readMessage(value,proto.google.api.GoSettings.deserializeBinaryFromReader); msg.setGoSettings(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.ClientLibrarySettings.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.ClientLibrarySettings.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.api.ClientLibrarySettings} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.ClientLibrarySettings.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getVersion(); if (f.length > 0) { writer.writeString( 1, f ); } f = message.getLaunchStage(); if (f !== 0.0) { writer.writeEnum( 2, f ); } f = message.getRestNumericEnums(); if (f) { writer.writeBool( 3, f ); } f = message.getJavaSettings(); if (f != null) { writer.writeMessage( 21, f, proto.google.api.JavaSettings.serializeBinaryToWriter ); } f = message.getCppSettings(); if (f != null) { writer.writeMessage( 22, f, proto.google.api.CppSettings.serializeBinaryToWriter ); } f = message.getPhpSettings(); if (f != null) { writer.writeMessage( 23, f, proto.google.api.PhpSettings.serializeBinaryToWriter ); } f = message.getPythonSettings(); if (f != null) { writer.writeMessage( 24, f, proto.google.api.PythonSettings.serializeBinaryToWriter ); } f = message.getNodeSettings(); if (f != null) { writer.writeMessage( 25, f, proto.google.api.NodeSettings.serializeBinaryToWriter ); } f = message.getDotnetSettings(); if (f != null) { writer.writeMessage( 26, f, proto.google.api.DotnetSettings.serializeBinaryToWriter ); } f = message.getRubySettings(); if (f != null) { writer.writeMessage( 27, f, proto.google.api.RubySettings.serializeBinaryToWriter ); } f = message.getGoSettings(); if (f != null) { writer.writeMessage( 28, f, proto.google.api.GoSettings.serializeBinaryToWriter ); } }; /** * optional string version = 1; * @return {string} */ proto.google.api.ClientLibrarySettings.prototype.getVersion = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** * @param {string} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setVersion = function(value) { return jspb.Message.setProto3StringField(this, 1, value); }; /** * optional LaunchStage launch_stage = 2; * @return {!proto.google.api.LaunchStage} */ proto.google.api.ClientLibrarySettings.prototype.getLaunchStage = function() { return /** @type {!proto.google.api.LaunchStage} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); }; /** * @param {!proto.google.api.LaunchStage} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setLaunchStage = function(value) { return jspb.Message.setProto3EnumField(this, 2, value); }; /** * optional bool rest_numeric_enums = 3; * @return {boolean} */ proto.google.api.ClientLibrarySettings.prototype.getRestNumericEnums = function() { return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); }; /** * @param {boolean} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setRestNumericEnums = function(value) { return jspb.Message.setProto3BooleanField(this, 3, value); }; /** * optional JavaSettings java_settings = 21; * @return {?proto.google.api.JavaSettings} */ proto.google.api.ClientLibrarySettings.prototype.getJavaSettings = function() { return /** @type{?proto.google.api.JavaSettings} */ ( jspb.Message.getWrapperField(this, proto.google.api.JavaSettings, 21)); }; /** * @param {?proto.google.api.JavaSettings|undefined} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setJavaSettings = function(value) { return jspb.Message.setWrapperField(this, 21, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.clearJavaSettings = function() { return this.setJavaSettings(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.ClientLibrarySettings.prototype.hasJavaSettings = function() { return jspb.Message.getField(this, 21) != null; }; /** * optional CppSettings cpp_settings = 22; * @return {?proto.google.api.CppSettings} */ proto.google.api.ClientLibrarySettings.prototype.getCppSettings = function() { return /** @type{?proto.google.api.CppSettings} */ ( jspb.Message.getWrapperField(this, proto.google.api.CppSettings, 22)); }; /** * @param {?proto.google.api.CppSettings|undefined} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setCppSettings = function(value) { return jspb.Message.setWrapperField(this, 22, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.clearCppSettings = function() { return this.setCppSettings(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.ClientLibrarySettings.prototype.hasCppSettings = function() { return jspb.Message.getField(this, 22) != null; }; /** * optional PhpSettings php_settings = 23; * @return {?proto.google.api.PhpSettings} */ proto.google.api.ClientLibrarySettings.prototype.getPhpSettings = function() { return /** @type{?proto.google.api.PhpSettings} */ ( jspb.Message.getWrapperField(this, proto.google.api.PhpSettings, 23)); }; /** * @param {?proto.google.api.PhpSettings|undefined} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setPhpSettings = function(value) { return jspb.Message.setWrapperField(this, 23, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.clearPhpSettings = function() { return this.setPhpSettings(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.ClientLibrarySettings.prototype.hasPhpSettings = function() { return jspb.Message.getField(this, 23) != null; }; /** * optional PythonSettings python_settings = 24; * @return {?proto.google.api.PythonSettings} */ proto.google.api.ClientLibrarySettings.prototype.getPythonSettings = function() { return /** @type{?proto.google.api.PythonSettings} */ ( jspb.Message.getWrapperField(this, proto.google.api.PythonSettings, 24)); }; /** * @param {?proto.google.api.PythonSettings|undefined} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setPythonSettings = function(value) { return jspb.Message.setWrapperField(this, 24, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.clearPythonSettings = function() { return this.setPythonSettings(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.ClientLibrarySettings.prototype.hasPythonSettings = function() { return jspb.Message.getField(this, 24) != null; }; /** * optional NodeSettings node_settings = 25; * @return {?proto.google.api.NodeSettings} */ proto.google.api.ClientLibrarySettings.prototype.getNodeSettings = function() { return /** @type{?proto.google.api.NodeSettings} */ ( jspb.Message.getWrapperField(this, proto.google.api.NodeSettings, 25)); }; /** * @param {?proto.google.api.NodeSettings|undefined} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setNodeSettings = function(value) { return jspb.Message.setWrapperField(this, 25, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.clearNodeSettings = function() { return this.setNodeSettings(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.ClientLibrarySettings.prototype.hasNodeSettings = function() { return jspb.Message.getField(this, 25) != null; }; /** * optional DotnetSettings dotnet_settings = 26; * @return {?proto.google.api.DotnetSettings} */ proto.google.api.ClientLibrarySettings.prototype.getDotnetSettings = function() { return /** @type{?proto.google.api.DotnetSettings} */ ( jspb.Message.getWrapperField(this, proto.google.api.DotnetSettings, 26)); }; /** * @param {?proto.google.api.DotnetSettings|undefined} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setDotnetSettings = function(value) { return jspb.Message.setWrapperField(this, 26, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.clearDotnetSettings = function() { return this.setDotnetSettings(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.ClientLibrarySettings.prototype.hasDotnetSettings = function() { return jspb.Message.getField(this, 26) != null; }; /** * optional RubySettings ruby_settings = 27; * @return {?proto.google.api.RubySettings} */ proto.google.api.ClientLibrarySettings.prototype.getRubySettings = function() { return /** @type{?proto.google.api.RubySettings} */ ( jspb.Message.getWrapperField(this, proto.google.api.RubySettings, 27)); }; /** * @param {?proto.google.api.RubySettings|undefined} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setRubySettings = function(value) { return jspb.Message.setWrapperField(this, 27, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.clearRubySettings = function() { return this.setRubySettings(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.ClientLibrarySettings.prototype.hasRubySettings = function() { return jspb.Message.getField(this, 27) != null; }; /** * optional GoSettings go_settings = 28; * @return {?proto.google.api.GoSettings} */ proto.google.api.ClientLibrarySettings.prototype.getGoSettings = function() { return /** @type{?proto.google.api.GoSettings} */ ( jspb.Message.getWrapperField(this, proto.google.api.GoSettings, 28)); }; /** * @param {?proto.google.api.GoSettings|undefined} value * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.setGoSettings = function(value) { return jspb.Message.setWrapperField(this, 28, value); }; /** * Clears the message field making it undefined. * @return {!proto.google.api.ClientLibrarySettings} returns this */ proto.google.api.ClientLibrarySettings.prototype.clearGoSettings = function() { return this.setGoSettings(undefined); }; /** * Returns whether this field is set. * @return {boolean} */ proto.google.api.ClientLibrarySettings.prototype.hasGoSettings = function() { return jspb.Message.getField(this, 28) != null; }; /** * List of repeated fields within this message type. * @private {!Array<number>} * @const */ proto.google.api.Publishing.repeatedFields_ = [2,105,109]; if (jspb.Message.GENERATE_TO_OBJECT) { /** * Creates an object representation of this proto. * Field names that are reserved in JavaScript and will be renamed to pb_name. * Optional fields that are not set will be set to undefined. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default. * For the list of reserved names please see: * net/proto2/compiler/js/internal/generator.cc#kKeyword. * @param {boolean=} opt_includeInstance Deprecated. whether to include the * JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @return {!Object} */ proto.google.api.Publishing.prototype.toObject = function(opt_includeInstance) { return proto.google.api.Publishing.toObject(opt_includeInstance, this); }; /** * Static version of the {@see toObject} method. * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration * @param {!proto.google.api.Publishing} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.Publishing.toObject = function(includeInstance, msg) { var f, obj = { methodSettingsList: jspb.Message.toObjectList(msg.getMethodSettingsList(), proto.google.api.MethodSettings.toObject, includeInstance), newIssueUri: jspb.Message.getFieldWithDefault(msg, 101, ""), documentationUri: jspb.Message.getFieldWithDefault(msg, 102, ""), apiShortName: jspb.Message.getFieldWithDefault(msg, 103, ""), githubLabel: jspb.Message.getFieldWithDefault(msg, 104, ""), codeownerGithubTeamsList: (f = jspb.Message.getRepeatedField(msg, 105)) == null ? undefined : f, docTagPrefix: jspb.Message.getFieldWithDefault(msg, 106, ""), organization: jspb.Message.getFieldWithDefault(msg, 107, 0), librarySettingsList: jspb.Message.toObjectList(msg.getLibrarySettingsList(), proto.google.api.ClientLibrarySettings.toObject, includeInstance), protoReferenceDocumentationUri: jspb.Message.getFieldWithDefault(msg, 110, ""), restReferenceDocumentationUri: jspb.Message.getFieldWithDefault(msg, 111, "") }; if (includeInstance) { obj.$jspbMessageInstance = msg; } return obj; }; } /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. * @return {!proto.google.api.Publishing} */ proto.google.api.Publishing.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); var msg = new proto.google.api.Publishing; return proto.google.api.Publishing.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. * @param {!proto.google.api.Publishing} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. * @return {!proto.google.api.Publishing} */ proto.google.api.Publishing.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { case 2: var value = new proto.google.api.MethodSettings; reader.readMessage(value,proto.google.api.MethodSettings.deserializeBinaryFromReader); msg.addMethodSettings(value); break; case 101: var value = /** @type {string} */ (reader.readString()); msg.setNewIssueUri(value); break; case 102: var value = /** @type {string} */ (reader.readString()); msg.setDocumentationUri(value); break; case 103: var value = /** @type {string} */ (reader.readString()); msg.setApiShortName(value); break; case 104: var value = /** @type {string} */ (reader.readString()); msg.setGithubLabel(value); break; case 105: var value = /** @type {string} */ (reader.readString()); msg.addCodeownerGithubTeams(value); break; case 106: var value = /** @type {string} */ (reader.readString()); msg.setDocTagPrefix(value); break; case 107: var value = /** @type {!proto.google.api.ClientLibraryOrganization} */ (reader.readEnum()); msg.setOrganization(value); break; case 109: var value = new proto.google.api.ClientLibrarySettings; reader.readMessage(value,proto.google.api.ClientLibrarySettings.deserializeBinaryFromReader); msg.addLibrarySettings(value); break; case 110: var value = /** @type {string} */ (reader.readString()); msg.setProtoReferenceDocumentationUri(value); break; case 111: var value = /** @type {string} */ (reader.readString()); msg.setRestReferenceDocumentationUri(value); break; default: reader.skipField(); break; } } return msg; }; /** * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ proto.google.api.Publishing.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); proto.google.api.Publishing.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. * @param {!proto.google.api.Publishing} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ proto.google.api.Publishing.serializeBinaryToWriter = function(message, writer) { var f = undefined; f = message.getMethodSettingsList(); if (f.length > 0) { writer.writeRepeatedMessage( 2, f, proto.google.api.MethodSettings.serializeBinaryToWriter ); } f = message.getNewIssueUri(); if (f.length > 0) { writer.writeString( 101, f ); } f = message.getDocumentationUri(); if (f.length > 0) { writer.writeString( 102, f ); } f = message.getApiShortName(); if (f.length > 0) { writer.writeString( 103, f ); } f = message.getGithubLabel(); if (f.length > 0) { writer.writeString( 104, f ); } f = message.getCodeownerGithubTeamsList(); if (f.length > 0) { writer.writeRepeatedString( 105, f ); } f = message.getDocTagPrefix(); if (f.length > 0) { writer.writeString( 106, f ); } f = message.getOrganization(); if (f !== 0.0) { writer.writeEnum( 107, f ); } f = message.getLibrarySettingsList(); if (f.length > 0) { writer.writeRepeatedMessage( 109, f, proto.google.api.ClientLibrarySettings.serializeBinaryToWriter ); } f = message.getProtoReferenceDocumentationUri(); if (f.length > 0) { writer.writeString( 110, f ); } f = message.getRestReferenceDocumentationUri(); if (f.length > 0) { writer.writeString( 111, f ); } }; /** * repeated MethodSettings method_settings = 2; * @return {!Array<!proto.google.api.MethodSettings>} */ proto.google.api.Publishing.prototype.getMethodSettingsList = function() { return /** @type{!Array<!proto.google.api.MethodSettings>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.google.api.MethodSettings, 2)); }; /** * @param {!Array<!proto.google.api.MethodSettings>} value * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.setMethodSettingsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 2, value); }; /** * @param {!proto.google.api.MethodSettings=} opt_value * @param {number=} opt_index * @return {!proto.google.api.MethodSettings} */ proto.google.api.Publishing.prototype.addMethodSettings = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.google.api.MethodSettings, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.clearMethodSettingsList = function() { return this.setMethodSettingsList([]); }; /** * optional string new_issue_uri = 101; * @return {string} */ proto.google.api.Publishing.prototype.getNewIssueUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 101, "")); }; /** * @param {string} value * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.setNewIssueUri = function(value) { return jspb.Message.setProto3StringField(this, 101, value); }; /** * optional string documentation_uri = 102; * @return {string} */ proto.google.api.Publishing.prototype.getDocumentationUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, "")); }; /** * @param {string} value * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.setDocumentationUri = function(value) { return jspb.Message.setProto3StringField(this, 102, value); }; /** * optional string api_short_name = 103; * @return {string} */ proto.google.api.Publishing.prototype.getApiShortName = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 103, "")); }; /** * @param {string} value * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.setApiShortName = function(value) { return jspb.Message.setProto3StringField(this, 103, value); }; /** * optional string github_label = 104; * @return {string} */ proto.google.api.Publishing.prototype.getGithubLabel = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 104, "")); }; /** * @param {string} value * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.setGithubLabel = function(value) { return jspb.Message.setProto3StringField(this, 104, value); }; /** * repeated string codeowner_github_teams = 105; * @return {!Array<string>} */ proto.google.api.Publishing.prototype.getCodeownerGithubTeamsList = function() { return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 105)); }; /** * @param {!Array<string>} value * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.setCodeownerGithubTeamsList = function(value) { return jspb.Message.setField(this, 105, value || []); }; /** * @param {string} value * @param {number=} opt_index * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.addCodeownerGithubTeams = function(value, opt_index) { return jspb.Message.addToRepeatedField(this, 105, value, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.clearCodeownerGithubTeamsList = function() { return this.setCodeownerGithubTeamsList([]); }; /** * optional string doc_tag_prefix = 106; * @return {string} */ proto.google.api.Publishing.prototype.getDocTagPrefix = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 106, "")); }; /** * @param {string} value * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.setDocTagPrefix = function(value) { return jspb.Message.setProto3StringField(this, 106, value); }; /** * optional ClientLibraryOrganization organization = 107; * @return {!proto.google.api.ClientLibraryOrganization} */ proto.google.api.Publishing.prototype.getOrganization = function() { return /** @type {!proto.google.api.ClientLibraryOrganization} */ (jspb.Message.getFieldWithDefault(this, 107, 0)); }; /** * @param {!proto.google.api.ClientLibraryOrganization} value * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.setOrganization = function(value) { return jspb.Message.setProto3EnumField(this, 107, value); }; /** * repeated ClientLibrarySettings library_settings = 109; * @return {!Array<!proto.google.api.ClientLibrarySettings>} */ proto.google.api.Publishing.prototype.getLibrarySettingsList = function() { return /** @type{!Array<!proto.google.api.ClientLibrarySettings>} */ ( jspb.Message.getRepeatedWrapperField(this, proto.google.api.ClientLibrarySettings, 109)); }; /** * @param {!Array<!proto.google.api.ClientLibrarySettings>} value * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.setLibrarySettingsList = function(value) { return jspb.Message.setRepeatedWrapperField(this, 109, value); }; /** * @param {!proto.google.api.ClientLibrarySettings=} opt_value * @param {number=} opt_index * @return {!proto.google.api.ClientLibrarySettings} */ proto.google.api.Publishing.prototype.addLibrarySettings = function(opt_value, opt_index) { return jspb.Message.addToRepeatedWrapperField(this, 109, opt_value, proto.google.api.ClientLibrarySettings, opt_index); }; /** * Clears the list making it empty but non-null. * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.clearLibrarySettingsList = function() { return this.setLibrarySettingsList([]); }; /** * optional string proto_reference_documentation_uri = 110; * @return {string} */ proto.google.api.Publishing.prototype.getProtoReferenceDocumentationUri = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 110, "")); }; /** * @param {string} value * @return {!proto.google.api.Publishing} returns this */ proto.google.api.Publishing.prototype.setProtoReferenceDocumentationUri = function(value) { return jspb.Message.setProto3StringField(this, 110, value); }; /** * optional string rest_reference_documentation_uri = 111; * @return {string} */ proto.google.api.Publishing.prototype.getRestReferenceDocumentationU