@google-cloud/apikeys 0.1.3 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- // Copyright 2022 Google LLC
1
+ // Copyright 2023 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -6721,6 +6721,3615 @@
6721
6721
  return ResourceReference;
6722
6722
  })();
6723
6723
 
6724
+ api.CommonLanguageSettings = (function() {
6725
+
6726
+ /**
6727
+ * Properties of a CommonLanguageSettings.
6728
+ * @memberof google.api
6729
+ * @interface ICommonLanguageSettings
6730
+ * @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
6731
+ * @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
6732
+ */
6733
+
6734
+ /**
6735
+ * Constructs a new CommonLanguageSettings.
6736
+ * @memberof google.api
6737
+ * @classdesc Represents a CommonLanguageSettings.
6738
+ * @implements ICommonLanguageSettings
6739
+ * @constructor
6740
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
6741
+ */
6742
+ function CommonLanguageSettings(properties) {
6743
+ this.destinations = [];
6744
+ if (properties)
6745
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
6746
+ if (properties[keys[i]] != null)
6747
+ this[keys[i]] = properties[keys[i]];
6748
+ }
6749
+
6750
+ /**
6751
+ * CommonLanguageSettings referenceDocsUri.
6752
+ * @member {string} referenceDocsUri
6753
+ * @memberof google.api.CommonLanguageSettings
6754
+ * @instance
6755
+ */
6756
+ CommonLanguageSettings.prototype.referenceDocsUri = "";
6757
+
6758
+ /**
6759
+ * CommonLanguageSettings destinations.
6760
+ * @member {Array.<google.api.ClientLibraryDestination>} destinations
6761
+ * @memberof google.api.CommonLanguageSettings
6762
+ * @instance
6763
+ */
6764
+ CommonLanguageSettings.prototype.destinations = $util.emptyArray;
6765
+
6766
+ /**
6767
+ * Creates a new CommonLanguageSettings instance using the specified properties.
6768
+ * @function create
6769
+ * @memberof google.api.CommonLanguageSettings
6770
+ * @static
6771
+ * @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
6772
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
6773
+ */
6774
+ CommonLanguageSettings.create = function create(properties) {
6775
+ return new CommonLanguageSettings(properties);
6776
+ };
6777
+
6778
+ /**
6779
+ * Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
6780
+ * @function encode
6781
+ * @memberof google.api.CommonLanguageSettings
6782
+ * @static
6783
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
6784
+ * @param {$protobuf.Writer} [writer] Writer to encode to
6785
+ * @returns {$protobuf.Writer} Writer
6786
+ */
6787
+ CommonLanguageSettings.encode = function encode(message, writer) {
6788
+ if (!writer)
6789
+ writer = $Writer.create();
6790
+ if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
6791
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
6792
+ if (message.destinations != null && message.destinations.length) {
6793
+ writer.uint32(/* id 2, wireType 2 =*/18).fork();
6794
+ for (var i = 0; i < message.destinations.length; ++i)
6795
+ writer.int32(message.destinations[i]);
6796
+ writer.ldelim();
6797
+ }
6798
+ return writer;
6799
+ };
6800
+
6801
+ /**
6802
+ * Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
6803
+ * @function encodeDelimited
6804
+ * @memberof google.api.CommonLanguageSettings
6805
+ * @static
6806
+ * @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
6807
+ * @param {$protobuf.Writer} [writer] Writer to encode to
6808
+ * @returns {$protobuf.Writer} Writer
6809
+ */
6810
+ CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
6811
+ return this.encode(message, writer).ldelim();
6812
+ };
6813
+
6814
+ /**
6815
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer.
6816
+ * @function decode
6817
+ * @memberof google.api.CommonLanguageSettings
6818
+ * @static
6819
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6820
+ * @param {number} [length] Message length if known beforehand
6821
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
6822
+ * @throws {Error} If the payload is not a reader or valid buffer
6823
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6824
+ */
6825
+ CommonLanguageSettings.decode = function decode(reader, length) {
6826
+ if (!(reader instanceof $Reader))
6827
+ reader = $Reader.create(reader);
6828
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
6829
+ while (reader.pos < end) {
6830
+ var tag = reader.uint32();
6831
+ switch (tag >>> 3) {
6832
+ case 1: {
6833
+ message.referenceDocsUri = reader.string();
6834
+ break;
6835
+ }
6836
+ case 2: {
6837
+ if (!(message.destinations && message.destinations.length))
6838
+ message.destinations = [];
6839
+ if ((tag & 7) === 2) {
6840
+ var end2 = reader.uint32() + reader.pos;
6841
+ while (reader.pos < end2)
6842
+ message.destinations.push(reader.int32());
6843
+ } else
6844
+ message.destinations.push(reader.int32());
6845
+ break;
6846
+ }
6847
+ default:
6848
+ reader.skipType(tag & 7);
6849
+ break;
6850
+ }
6851
+ }
6852
+ return message;
6853
+ };
6854
+
6855
+ /**
6856
+ * Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
6857
+ * @function decodeDelimited
6858
+ * @memberof google.api.CommonLanguageSettings
6859
+ * @static
6860
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
6861
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
6862
+ * @throws {Error} If the payload is not a reader or valid buffer
6863
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6864
+ */
6865
+ CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
6866
+ if (!(reader instanceof $Reader))
6867
+ reader = new $Reader(reader);
6868
+ return this.decode(reader, reader.uint32());
6869
+ };
6870
+
6871
+ /**
6872
+ * Verifies a CommonLanguageSettings message.
6873
+ * @function verify
6874
+ * @memberof google.api.CommonLanguageSettings
6875
+ * @static
6876
+ * @param {Object.<string,*>} message Plain object to verify
6877
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
6878
+ */
6879
+ CommonLanguageSettings.verify = function verify(message) {
6880
+ if (typeof message !== "object" || message === null)
6881
+ return "object expected";
6882
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
6883
+ if (!$util.isString(message.referenceDocsUri))
6884
+ return "referenceDocsUri: string expected";
6885
+ if (message.destinations != null && message.hasOwnProperty("destinations")) {
6886
+ if (!Array.isArray(message.destinations))
6887
+ return "destinations: array expected";
6888
+ for (var i = 0; i < message.destinations.length; ++i)
6889
+ switch (message.destinations[i]) {
6890
+ default:
6891
+ return "destinations: enum value[] expected";
6892
+ case 0:
6893
+ case 10:
6894
+ case 20:
6895
+ break;
6896
+ }
6897
+ }
6898
+ return null;
6899
+ };
6900
+
6901
+ /**
6902
+ * Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
6903
+ * @function fromObject
6904
+ * @memberof google.api.CommonLanguageSettings
6905
+ * @static
6906
+ * @param {Object.<string,*>} object Plain object
6907
+ * @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
6908
+ */
6909
+ CommonLanguageSettings.fromObject = function fromObject(object) {
6910
+ if (object instanceof $root.google.api.CommonLanguageSettings)
6911
+ return object;
6912
+ var message = new $root.google.api.CommonLanguageSettings();
6913
+ if (object.referenceDocsUri != null)
6914
+ message.referenceDocsUri = String(object.referenceDocsUri);
6915
+ if (object.destinations) {
6916
+ if (!Array.isArray(object.destinations))
6917
+ throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
6918
+ message.destinations = [];
6919
+ for (var i = 0; i < object.destinations.length; ++i)
6920
+ switch (object.destinations[i]) {
6921
+ default:
6922
+ if (typeof object.destinations[i] === "number") {
6923
+ message.destinations[i] = object.destinations[i];
6924
+ break;
6925
+ }
6926
+ case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
6927
+ case 0:
6928
+ message.destinations[i] = 0;
6929
+ break;
6930
+ case "GITHUB":
6931
+ case 10:
6932
+ message.destinations[i] = 10;
6933
+ break;
6934
+ case "PACKAGE_MANAGER":
6935
+ case 20:
6936
+ message.destinations[i] = 20;
6937
+ break;
6938
+ }
6939
+ }
6940
+ return message;
6941
+ };
6942
+
6943
+ /**
6944
+ * Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
6945
+ * @function toObject
6946
+ * @memberof google.api.CommonLanguageSettings
6947
+ * @static
6948
+ * @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
6949
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
6950
+ * @returns {Object.<string,*>} Plain object
6951
+ */
6952
+ CommonLanguageSettings.toObject = function toObject(message, options) {
6953
+ if (!options)
6954
+ options = {};
6955
+ var object = {};
6956
+ if (options.arrays || options.defaults)
6957
+ object.destinations = [];
6958
+ if (options.defaults)
6959
+ object.referenceDocsUri = "";
6960
+ if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
6961
+ object.referenceDocsUri = message.referenceDocsUri;
6962
+ if (message.destinations && message.destinations.length) {
6963
+ object.destinations = [];
6964
+ for (var j = 0; j < message.destinations.length; ++j)
6965
+ object.destinations[j] = options.enums === String ? $root.google.api.ClientLibraryDestination[message.destinations[j]] === undefined ? message.destinations[j] : $root.google.api.ClientLibraryDestination[message.destinations[j]] : message.destinations[j];
6966
+ }
6967
+ return object;
6968
+ };
6969
+
6970
+ /**
6971
+ * Converts this CommonLanguageSettings to JSON.
6972
+ * @function toJSON
6973
+ * @memberof google.api.CommonLanguageSettings
6974
+ * @instance
6975
+ * @returns {Object.<string,*>} JSON object
6976
+ */
6977
+ CommonLanguageSettings.prototype.toJSON = function toJSON() {
6978
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
6979
+ };
6980
+
6981
+ /**
6982
+ * Gets the default type url for CommonLanguageSettings
6983
+ * @function getTypeUrl
6984
+ * @memberof google.api.CommonLanguageSettings
6985
+ * @static
6986
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6987
+ * @returns {string} The default type url
6988
+ */
6989
+ CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
6990
+ if (typeUrlPrefix === undefined) {
6991
+ typeUrlPrefix = "type.googleapis.com";
6992
+ }
6993
+ return typeUrlPrefix + "/google.api.CommonLanguageSettings";
6994
+ };
6995
+
6996
+ return CommonLanguageSettings;
6997
+ })();
6998
+
6999
+ api.ClientLibrarySettings = (function() {
7000
+
7001
+ /**
7002
+ * Properties of a ClientLibrarySettings.
7003
+ * @memberof google.api
7004
+ * @interface IClientLibrarySettings
7005
+ * @property {string|null} [version] ClientLibrarySettings version
7006
+ * @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
7007
+ * @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
7008
+ * @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
7009
+ * @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
7010
+ * @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
7011
+ * @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
7012
+ * @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
7013
+ * @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
7014
+ * @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
7015
+ * @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
7016
+ */
7017
+
7018
+ /**
7019
+ * Constructs a new ClientLibrarySettings.
7020
+ * @memberof google.api
7021
+ * @classdesc Represents a ClientLibrarySettings.
7022
+ * @implements IClientLibrarySettings
7023
+ * @constructor
7024
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
7025
+ */
7026
+ function ClientLibrarySettings(properties) {
7027
+ if (properties)
7028
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7029
+ if (properties[keys[i]] != null)
7030
+ this[keys[i]] = properties[keys[i]];
7031
+ }
7032
+
7033
+ /**
7034
+ * ClientLibrarySettings version.
7035
+ * @member {string} version
7036
+ * @memberof google.api.ClientLibrarySettings
7037
+ * @instance
7038
+ */
7039
+ ClientLibrarySettings.prototype.version = "";
7040
+
7041
+ /**
7042
+ * ClientLibrarySettings launchStage.
7043
+ * @member {google.api.LaunchStage} launchStage
7044
+ * @memberof google.api.ClientLibrarySettings
7045
+ * @instance
7046
+ */
7047
+ ClientLibrarySettings.prototype.launchStage = 0;
7048
+
7049
+ /**
7050
+ * ClientLibrarySettings restNumericEnums.
7051
+ * @member {boolean} restNumericEnums
7052
+ * @memberof google.api.ClientLibrarySettings
7053
+ * @instance
7054
+ */
7055
+ ClientLibrarySettings.prototype.restNumericEnums = false;
7056
+
7057
+ /**
7058
+ * ClientLibrarySettings javaSettings.
7059
+ * @member {google.api.IJavaSettings|null|undefined} javaSettings
7060
+ * @memberof google.api.ClientLibrarySettings
7061
+ * @instance
7062
+ */
7063
+ ClientLibrarySettings.prototype.javaSettings = null;
7064
+
7065
+ /**
7066
+ * ClientLibrarySettings cppSettings.
7067
+ * @member {google.api.ICppSettings|null|undefined} cppSettings
7068
+ * @memberof google.api.ClientLibrarySettings
7069
+ * @instance
7070
+ */
7071
+ ClientLibrarySettings.prototype.cppSettings = null;
7072
+
7073
+ /**
7074
+ * ClientLibrarySettings phpSettings.
7075
+ * @member {google.api.IPhpSettings|null|undefined} phpSettings
7076
+ * @memberof google.api.ClientLibrarySettings
7077
+ * @instance
7078
+ */
7079
+ ClientLibrarySettings.prototype.phpSettings = null;
7080
+
7081
+ /**
7082
+ * ClientLibrarySettings pythonSettings.
7083
+ * @member {google.api.IPythonSettings|null|undefined} pythonSettings
7084
+ * @memberof google.api.ClientLibrarySettings
7085
+ * @instance
7086
+ */
7087
+ ClientLibrarySettings.prototype.pythonSettings = null;
7088
+
7089
+ /**
7090
+ * ClientLibrarySettings nodeSettings.
7091
+ * @member {google.api.INodeSettings|null|undefined} nodeSettings
7092
+ * @memberof google.api.ClientLibrarySettings
7093
+ * @instance
7094
+ */
7095
+ ClientLibrarySettings.prototype.nodeSettings = null;
7096
+
7097
+ /**
7098
+ * ClientLibrarySettings dotnetSettings.
7099
+ * @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
7100
+ * @memberof google.api.ClientLibrarySettings
7101
+ * @instance
7102
+ */
7103
+ ClientLibrarySettings.prototype.dotnetSettings = null;
7104
+
7105
+ /**
7106
+ * ClientLibrarySettings rubySettings.
7107
+ * @member {google.api.IRubySettings|null|undefined} rubySettings
7108
+ * @memberof google.api.ClientLibrarySettings
7109
+ * @instance
7110
+ */
7111
+ ClientLibrarySettings.prototype.rubySettings = null;
7112
+
7113
+ /**
7114
+ * ClientLibrarySettings goSettings.
7115
+ * @member {google.api.IGoSettings|null|undefined} goSettings
7116
+ * @memberof google.api.ClientLibrarySettings
7117
+ * @instance
7118
+ */
7119
+ ClientLibrarySettings.prototype.goSettings = null;
7120
+
7121
+ /**
7122
+ * Creates a new ClientLibrarySettings instance using the specified properties.
7123
+ * @function create
7124
+ * @memberof google.api.ClientLibrarySettings
7125
+ * @static
7126
+ * @param {google.api.IClientLibrarySettings=} [properties] Properties to set
7127
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
7128
+ */
7129
+ ClientLibrarySettings.create = function create(properties) {
7130
+ return new ClientLibrarySettings(properties);
7131
+ };
7132
+
7133
+ /**
7134
+ * Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
7135
+ * @function encode
7136
+ * @memberof google.api.ClientLibrarySettings
7137
+ * @static
7138
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
7139
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7140
+ * @returns {$protobuf.Writer} Writer
7141
+ */
7142
+ ClientLibrarySettings.encode = function encode(message, writer) {
7143
+ if (!writer)
7144
+ writer = $Writer.create();
7145
+ if (message.version != null && Object.hasOwnProperty.call(message, "version"))
7146
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
7147
+ if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
7148
+ writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
7149
+ if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
7150
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
7151
+ if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
7152
+ $root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
7153
+ if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
7154
+ $root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
7155
+ if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
7156
+ $root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
7157
+ if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
7158
+ $root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
7159
+ if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
7160
+ $root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
7161
+ if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
7162
+ $root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
7163
+ if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
7164
+ $root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
7165
+ if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
7166
+ $root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
7167
+ return writer;
7168
+ };
7169
+
7170
+ /**
7171
+ * Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
7172
+ * @function encodeDelimited
7173
+ * @memberof google.api.ClientLibrarySettings
7174
+ * @static
7175
+ * @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
7176
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7177
+ * @returns {$protobuf.Writer} Writer
7178
+ */
7179
+ ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
7180
+ return this.encode(message, writer).ldelim();
7181
+ };
7182
+
7183
+ /**
7184
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer.
7185
+ * @function decode
7186
+ * @memberof google.api.ClientLibrarySettings
7187
+ * @static
7188
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7189
+ * @param {number} [length] Message length if known beforehand
7190
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
7191
+ * @throws {Error} If the payload is not a reader or valid buffer
7192
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7193
+ */
7194
+ ClientLibrarySettings.decode = function decode(reader, length) {
7195
+ if (!(reader instanceof $Reader))
7196
+ reader = $Reader.create(reader);
7197
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
7198
+ while (reader.pos < end) {
7199
+ var tag = reader.uint32();
7200
+ switch (tag >>> 3) {
7201
+ case 1: {
7202
+ message.version = reader.string();
7203
+ break;
7204
+ }
7205
+ case 2: {
7206
+ message.launchStage = reader.int32();
7207
+ break;
7208
+ }
7209
+ case 3: {
7210
+ message.restNumericEnums = reader.bool();
7211
+ break;
7212
+ }
7213
+ case 21: {
7214
+ message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
7215
+ break;
7216
+ }
7217
+ case 22: {
7218
+ message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
7219
+ break;
7220
+ }
7221
+ case 23: {
7222
+ message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
7223
+ break;
7224
+ }
7225
+ case 24: {
7226
+ message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
7227
+ break;
7228
+ }
7229
+ case 25: {
7230
+ message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
7231
+ break;
7232
+ }
7233
+ case 26: {
7234
+ message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
7235
+ break;
7236
+ }
7237
+ case 27: {
7238
+ message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
7239
+ break;
7240
+ }
7241
+ case 28: {
7242
+ message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
7243
+ break;
7244
+ }
7245
+ default:
7246
+ reader.skipType(tag & 7);
7247
+ break;
7248
+ }
7249
+ }
7250
+ return message;
7251
+ };
7252
+
7253
+ /**
7254
+ * Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
7255
+ * @function decodeDelimited
7256
+ * @memberof google.api.ClientLibrarySettings
7257
+ * @static
7258
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7259
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
7260
+ * @throws {Error} If the payload is not a reader or valid buffer
7261
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7262
+ */
7263
+ ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
7264
+ if (!(reader instanceof $Reader))
7265
+ reader = new $Reader(reader);
7266
+ return this.decode(reader, reader.uint32());
7267
+ };
7268
+
7269
+ /**
7270
+ * Verifies a ClientLibrarySettings message.
7271
+ * @function verify
7272
+ * @memberof google.api.ClientLibrarySettings
7273
+ * @static
7274
+ * @param {Object.<string,*>} message Plain object to verify
7275
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
7276
+ */
7277
+ ClientLibrarySettings.verify = function verify(message) {
7278
+ if (typeof message !== "object" || message === null)
7279
+ return "object expected";
7280
+ if (message.version != null && message.hasOwnProperty("version"))
7281
+ if (!$util.isString(message.version))
7282
+ return "version: string expected";
7283
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
7284
+ switch (message.launchStage) {
7285
+ default:
7286
+ return "launchStage: enum value expected";
7287
+ case 0:
7288
+ case 6:
7289
+ case 7:
7290
+ case 1:
7291
+ case 2:
7292
+ case 3:
7293
+ case 4:
7294
+ case 5:
7295
+ break;
7296
+ }
7297
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
7298
+ if (typeof message.restNumericEnums !== "boolean")
7299
+ return "restNumericEnums: boolean expected";
7300
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
7301
+ var error = $root.google.api.JavaSettings.verify(message.javaSettings);
7302
+ if (error)
7303
+ return "javaSettings." + error;
7304
+ }
7305
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
7306
+ var error = $root.google.api.CppSettings.verify(message.cppSettings);
7307
+ if (error)
7308
+ return "cppSettings." + error;
7309
+ }
7310
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
7311
+ var error = $root.google.api.PhpSettings.verify(message.phpSettings);
7312
+ if (error)
7313
+ return "phpSettings." + error;
7314
+ }
7315
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
7316
+ var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
7317
+ if (error)
7318
+ return "pythonSettings." + error;
7319
+ }
7320
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
7321
+ var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
7322
+ if (error)
7323
+ return "nodeSettings." + error;
7324
+ }
7325
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
7326
+ var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
7327
+ if (error)
7328
+ return "dotnetSettings." + error;
7329
+ }
7330
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
7331
+ var error = $root.google.api.RubySettings.verify(message.rubySettings);
7332
+ if (error)
7333
+ return "rubySettings." + error;
7334
+ }
7335
+ if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
7336
+ var error = $root.google.api.GoSettings.verify(message.goSettings);
7337
+ if (error)
7338
+ return "goSettings." + error;
7339
+ }
7340
+ return null;
7341
+ };
7342
+
7343
+ /**
7344
+ * Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
7345
+ * @function fromObject
7346
+ * @memberof google.api.ClientLibrarySettings
7347
+ * @static
7348
+ * @param {Object.<string,*>} object Plain object
7349
+ * @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
7350
+ */
7351
+ ClientLibrarySettings.fromObject = function fromObject(object) {
7352
+ if (object instanceof $root.google.api.ClientLibrarySettings)
7353
+ return object;
7354
+ var message = new $root.google.api.ClientLibrarySettings();
7355
+ if (object.version != null)
7356
+ message.version = String(object.version);
7357
+ switch (object.launchStage) {
7358
+ default:
7359
+ if (typeof object.launchStage === "number") {
7360
+ message.launchStage = object.launchStage;
7361
+ break;
7362
+ }
7363
+ break;
7364
+ case "LAUNCH_STAGE_UNSPECIFIED":
7365
+ case 0:
7366
+ message.launchStage = 0;
7367
+ break;
7368
+ case "UNIMPLEMENTED":
7369
+ case 6:
7370
+ message.launchStage = 6;
7371
+ break;
7372
+ case "PRELAUNCH":
7373
+ case 7:
7374
+ message.launchStage = 7;
7375
+ break;
7376
+ case "EARLY_ACCESS":
7377
+ case 1:
7378
+ message.launchStage = 1;
7379
+ break;
7380
+ case "ALPHA":
7381
+ case 2:
7382
+ message.launchStage = 2;
7383
+ break;
7384
+ case "BETA":
7385
+ case 3:
7386
+ message.launchStage = 3;
7387
+ break;
7388
+ case "GA":
7389
+ case 4:
7390
+ message.launchStage = 4;
7391
+ break;
7392
+ case "DEPRECATED":
7393
+ case 5:
7394
+ message.launchStage = 5;
7395
+ break;
7396
+ }
7397
+ if (object.restNumericEnums != null)
7398
+ message.restNumericEnums = Boolean(object.restNumericEnums);
7399
+ if (object.javaSettings != null) {
7400
+ if (typeof object.javaSettings !== "object")
7401
+ throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
7402
+ message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
7403
+ }
7404
+ if (object.cppSettings != null) {
7405
+ if (typeof object.cppSettings !== "object")
7406
+ throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
7407
+ message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
7408
+ }
7409
+ if (object.phpSettings != null) {
7410
+ if (typeof object.phpSettings !== "object")
7411
+ throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
7412
+ message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
7413
+ }
7414
+ if (object.pythonSettings != null) {
7415
+ if (typeof object.pythonSettings !== "object")
7416
+ throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
7417
+ message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
7418
+ }
7419
+ if (object.nodeSettings != null) {
7420
+ if (typeof object.nodeSettings !== "object")
7421
+ throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
7422
+ message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
7423
+ }
7424
+ if (object.dotnetSettings != null) {
7425
+ if (typeof object.dotnetSettings !== "object")
7426
+ throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
7427
+ message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
7428
+ }
7429
+ if (object.rubySettings != null) {
7430
+ if (typeof object.rubySettings !== "object")
7431
+ throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
7432
+ message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
7433
+ }
7434
+ if (object.goSettings != null) {
7435
+ if (typeof object.goSettings !== "object")
7436
+ throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
7437
+ message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
7438
+ }
7439
+ return message;
7440
+ };
7441
+
7442
+ /**
7443
+ * Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
7444
+ * @function toObject
7445
+ * @memberof google.api.ClientLibrarySettings
7446
+ * @static
7447
+ * @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
7448
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
7449
+ * @returns {Object.<string,*>} Plain object
7450
+ */
7451
+ ClientLibrarySettings.toObject = function toObject(message, options) {
7452
+ if (!options)
7453
+ options = {};
7454
+ var object = {};
7455
+ if (options.defaults) {
7456
+ object.version = "";
7457
+ object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
7458
+ object.restNumericEnums = false;
7459
+ object.javaSettings = null;
7460
+ object.cppSettings = null;
7461
+ object.phpSettings = null;
7462
+ object.pythonSettings = null;
7463
+ object.nodeSettings = null;
7464
+ object.dotnetSettings = null;
7465
+ object.rubySettings = null;
7466
+ object.goSettings = null;
7467
+ }
7468
+ if (message.version != null && message.hasOwnProperty("version"))
7469
+ object.version = message.version;
7470
+ if (message.launchStage != null && message.hasOwnProperty("launchStage"))
7471
+ object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
7472
+ if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
7473
+ object.restNumericEnums = message.restNumericEnums;
7474
+ if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
7475
+ object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
7476
+ if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
7477
+ object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
7478
+ if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
7479
+ object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
7480
+ if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
7481
+ object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
7482
+ if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
7483
+ object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
7484
+ if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
7485
+ object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
7486
+ if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
7487
+ object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
7488
+ if (message.goSettings != null && message.hasOwnProperty("goSettings"))
7489
+ object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
7490
+ return object;
7491
+ };
7492
+
7493
+ /**
7494
+ * Converts this ClientLibrarySettings to JSON.
7495
+ * @function toJSON
7496
+ * @memberof google.api.ClientLibrarySettings
7497
+ * @instance
7498
+ * @returns {Object.<string,*>} JSON object
7499
+ */
7500
+ ClientLibrarySettings.prototype.toJSON = function toJSON() {
7501
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7502
+ };
7503
+
7504
+ /**
7505
+ * Gets the default type url for ClientLibrarySettings
7506
+ * @function getTypeUrl
7507
+ * @memberof google.api.ClientLibrarySettings
7508
+ * @static
7509
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7510
+ * @returns {string} The default type url
7511
+ */
7512
+ ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7513
+ if (typeUrlPrefix === undefined) {
7514
+ typeUrlPrefix = "type.googleapis.com";
7515
+ }
7516
+ return typeUrlPrefix + "/google.api.ClientLibrarySettings";
7517
+ };
7518
+
7519
+ return ClientLibrarySettings;
7520
+ })();
7521
+
7522
+ api.Publishing = (function() {
7523
+
7524
+ /**
7525
+ * Properties of a Publishing.
7526
+ * @memberof google.api
7527
+ * @interface IPublishing
7528
+ * @property {Array.<google.api.IMethodSettings>|null} [methodSettings] Publishing methodSettings
7529
+ * @property {string|null} [newIssueUri] Publishing newIssueUri
7530
+ * @property {string|null} [documentationUri] Publishing documentationUri
7531
+ * @property {string|null} [apiShortName] Publishing apiShortName
7532
+ * @property {string|null} [githubLabel] Publishing githubLabel
7533
+ * @property {Array.<string>|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
7534
+ * @property {string|null} [docTagPrefix] Publishing docTagPrefix
7535
+ * @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
7536
+ * @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
7537
+ */
7538
+
7539
+ /**
7540
+ * Constructs a new Publishing.
7541
+ * @memberof google.api
7542
+ * @classdesc Represents a Publishing.
7543
+ * @implements IPublishing
7544
+ * @constructor
7545
+ * @param {google.api.IPublishing=} [properties] Properties to set
7546
+ */
7547
+ function Publishing(properties) {
7548
+ this.methodSettings = [];
7549
+ this.codeownerGithubTeams = [];
7550
+ this.librarySettings = [];
7551
+ if (properties)
7552
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
7553
+ if (properties[keys[i]] != null)
7554
+ this[keys[i]] = properties[keys[i]];
7555
+ }
7556
+
7557
+ /**
7558
+ * Publishing methodSettings.
7559
+ * @member {Array.<google.api.IMethodSettings>} methodSettings
7560
+ * @memberof google.api.Publishing
7561
+ * @instance
7562
+ */
7563
+ Publishing.prototype.methodSettings = $util.emptyArray;
7564
+
7565
+ /**
7566
+ * Publishing newIssueUri.
7567
+ * @member {string} newIssueUri
7568
+ * @memberof google.api.Publishing
7569
+ * @instance
7570
+ */
7571
+ Publishing.prototype.newIssueUri = "";
7572
+
7573
+ /**
7574
+ * Publishing documentationUri.
7575
+ * @member {string} documentationUri
7576
+ * @memberof google.api.Publishing
7577
+ * @instance
7578
+ */
7579
+ Publishing.prototype.documentationUri = "";
7580
+
7581
+ /**
7582
+ * Publishing apiShortName.
7583
+ * @member {string} apiShortName
7584
+ * @memberof google.api.Publishing
7585
+ * @instance
7586
+ */
7587
+ Publishing.prototype.apiShortName = "";
7588
+
7589
+ /**
7590
+ * Publishing githubLabel.
7591
+ * @member {string} githubLabel
7592
+ * @memberof google.api.Publishing
7593
+ * @instance
7594
+ */
7595
+ Publishing.prototype.githubLabel = "";
7596
+
7597
+ /**
7598
+ * Publishing codeownerGithubTeams.
7599
+ * @member {Array.<string>} codeownerGithubTeams
7600
+ * @memberof google.api.Publishing
7601
+ * @instance
7602
+ */
7603
+ Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
7604
+
7605
+ /**
7606
+ * Publishing docTagPrefix.
7607
+ * @member {string} docTagPrefix
7608
+ * @memberof google.api.Publishing
7609
+ * @instance
7610
+ */
7611
+ Publishing.prototype.docTagPrefix = "";
7612
+
7613
+ /**
7614
+ * Publishing organization.
7615
+ * @member {google.api.ClientLibraryOrganization} organization
7616
+ * @memberof google.api.Publishing
7617
+ * @instance
7618
+ */
7619
+ Publishing.prototype.organization = 0;
7620
+
7621
+ /**
7622
+ * Publishing librarySettings.
7623
+ * @member {Array.<google.api.IClientLibrarySettings>} librarySettings
7624
+ * @memberof google.api.Publishing
7625
+ * @instance
7626
+ */
7627
+ Publishing.prototype.librarySettings = $util.emptyArray;
7628
+
7629
+ /**
7630
+ * Creates a new Publishing instance using the specified properties.
7631
+ * @function create
7632
+ * @memberof google.api.Publishing
7633
+ * @static
7634
+ * @param {google.api.IPublishing=} [properties] Properties to set
7635
+ * @returns {google.api.Publishing} Publishing instance
7636
+ */
7637
+ Publishing.create = function create(properties) {
7638
+ return new Publishing(properties);
7639
+ };
7640
+
7641
+ /**
7642
+ * Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
7643
+ * @function encode
7644
+ * @memberof google.api.Publishing
7645
+ * @static
7646
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
7647
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7648
+ * @returns {$protobuf.Writer} Writer
7649
+ */
7650
+ Publishing.encode = function encode(message, writer) {
7651
+ if (!writer)
7652
+ writer = $Writer.create();
7653
+ if (message.methodSettings != null && message.methodSettings.length)
7654
+ for (var i = 0; i < message.methodSettings.length; ++i)
7655
+ $root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
7656
+ if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
7657
+ writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
7658
+ if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
7659
+ writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
7660
+ if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
7661
+ writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
7662
+ if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
7663
+ writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
7664
+ if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
7665
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
7666
+ writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
7667
+ if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
7668
+ writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
7669
+ if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
7670
+ writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
7671
+ if (message.librarySettings != null && message.librarySettings.length)
7672
+ for (var i = 0; i < message.librarySettings.length; ++i)
7673
+ $root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
7674
+ return writer;
7675
+ };
7676
+
7677
+ /**
7678
+ * Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
7679
+ * @function encodeDelimited
7680
+ * @memberof google.api.Publishing
7681
+ * @static
7682
+ * @param {google.api.IPublishing} message Publishing message or plain object to encode
7683
+ * @param {$protobuf.Writer} [writer] Writer to encode to
7684
+ * @returns {$protobuf.Writer} Writer
7685
+ */
7686
+ Publishing.encodeDelimited = function encodeDelimited(message, writer) {
7687
+ return this.encode(message, writer).ldelim();
7688
+ };
7689
+
7690
+ /**
7691
+ * Decodes a Publishing message from the specified reader or buffer.
7692
+ * @function decode
7693
+ * @memberof google.api.Publishing
7694
+ * @static
7695
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7696
+ * @param {number} [length] Message length if known beforehand
7697
+ * @returns {google.api.Publishing} Publishing
7698
+ * @throws {Error} If the payload is not a reader or valid buffer
7699
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7700
+ */
7701
+ Publishing.decode = function decode(reader, length) {
7702
+ if (!(reader instanceof $Reader))
7703
+ reader = $Reader.create(reader);
7704
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
7705
+ while (reader.pos < end) {
7706
+ var tag = reader.uint32();
7707
+ switch (tag >>> 3) {
7708
+ case 2: {
7709
+ if (!(message.methodSettings && message.methodSettings.length))
7710
+ message.methodSettings = [];
7711
+ message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
7712
+ break;
7713
+ }
7714
+ case 101: {
7715
+ message.newIssueUri = reader.string();
7716
+ break;
7717
+ }
7718
+ case 102: {
7719
+ message.documentationUri = reader.string();
7720
+ break;
7721
+ }
7722
+ case 103: {
7723
+ message.apiShortName = reader.string();
7724
+ break;
7725
+ }
7726
+ case 104: {
7727
+ message.githubLabel = reader.string();
7728
+ break;
7729
+ }
7730
+ case 105: {
7731
+ if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
7732
+ message.codeownerGithubTeams = [];
7733
+ message.codeownerGithubTeams.push(reader.string());
7734
+ break;
7735
+ }
7736
+ case 106: {
7737
+ message.docTagPrefix = reader.string();
7738
+ break;
7739
+ }
7740
+ case 107: {
7741
+ message.organization = reader.int32();
7742
+ break;
7743
+ }
7744
+ case 109: {
7745
+ if (!(message.librarySettings && message.librarySettings.length))
7746
+ message.librarySettings = [];
7747
+ message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
7748
+ break;
7749
+ }
7750
+ default:
7751
+ reader.skipType(tag & 7);
7752
+ break;
7753
+ }
7754
+ }
7755
+ return message;
7756
+ };
7757
+
7758
+ /**
7759
+ * Decodes a Publishing message from the specified reader or buffer, length delimited.
7760
+ * @function decodeDelimited
7761
+ * @memberof google.api.Publishing
7762
+ * @static
7763
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
7764
+ * @returns {google.api.Publishing} Publishing
7765
+ * @throws {Error} If the payload is not a reader or valid buffer
7766
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7767
+ */
7768
+ Publishing.decodeDelimited = function decodeDelimited(reader) {
7769
+ if (!(reader instanceof $Reader))
7770
+ reader = new $Reader(reader);
7771
+ return this.decode(reader, reader.uint32());
7772
+ };
7773
+
7774
+ /**
7775
+ * Verifies a Publishing message.
7776
+ * @function verify
7777
+ * @memberof google.api.Publishing
7778
+ * @static
7779
+ * @param {Object.<string,*>} message Plain object to verify
7780
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
7781
+ */
7782
+ Publishing.verify = function verify(message) {
7783
+ if (typeof message !== "object" || message === null)
7784
+ return "object expected";
7785
+ if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
7786
+ if (!Array.isArray(message.methodSettings))
7787
+ return "methodSettings: array expected";
7788
+ for (var i = 0; i < message.methodSettings.length; ++i) {
7789
+ var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
7790
+ if (error)
7791
+ return "methodSettings." + error;
7792
+ }
7793
+ }
7794
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
7795
+ if (!$util.isString(message.newIssueUri))
7796
+ return "newIssueUri: string expected";
7797
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
7798
+ if (!$util.isString(message.documentationUri))
7799
+ return "documentationUri: string expected";
7800
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
7801
+ if (!$util.isString(message.apiShortName))
7802
+ return "apiShortName: string expected";
7803
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
7804
+ if (!$util.isString(message.githubLabel))
7805
+ return "githubLabel: string expected";
7806
+ if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
7807
+ if (!Array.isArray(message.codeownerGithubTeams))
7808
+ return "codeownerGithubTeams: array expected";
7809
+ for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
7810
+ if (!$util.isString(message.codeownerGithubTeams[i]))
7811
+ return "codeownerGithubTeams: string[] expected";
7812
+ }
7813
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
7814
+ if (!$util.isString(message.docTagPrefix))
7815
+ return "docTagPrefix: string expected";
7816
+ if (message.organization != null && message.hasOwnProperty("organization"))
7817
+ switch (message.organization) {
7818
+ default:
7819
+ return "organization: enum value expected";
7820
+ case 0:
7821
+ case 1:
7822
+ case 2:
7823
+ case 3:
7824
+ case 4:
7825
+ break;
7826
+ }
7827
+ if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
7828
+ if (!Array.isArray(message.librarySettings))
7829
+ return "librarySettings: array expected";
7830
+ for (var i = 0; i < message.librarySettings.length; ++i) {
7831
+ var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
7832
+ if (error)
7833
+ return "librarySettings." + error;
7834
+ }
7835
+ }
7836
+ return null;
7837
+ };
7838
+
7839
+ /**
7840
+ * Creates a Publishing message from a plain object. Also converts values to their respective internal types.
7841
+ * @function fromObject
7842
+ * @memberof google.api.Publishing
7843
+ * @static
7844
+ * @param {Object.<string,*>} object Plain object
7845
+ * @returns {google.api.Publishing} Publishing
7846
+ */
7847
+ Publishing.fromObject = function fromObject(object) {
7848
+ if (object instanceof $root.google.api.Publishing)
7849
+ return object;
7850
+ var message = new $root.google.api.Publishing();
7851
+ if (object.methodSettings) {
7852
+ if (!Array.isArray(object.methodSettings))
7853
+ throw TypeError(".google.api.Publishing.methodSettings: array expected");
7854
+ message.methodSettings = [];
7855
+ for (var i = 0; i < object.methodSettings.length; ++i) {
7856
+ if (typeof object.methodSettings[i] !== "object")
7857
+ throw TypeError(".google.api.Publishing.methodSettings: object expected");
7858
+ message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
7859
+ }
7860
+ }
7861
+ if (object.newIssueUri != null)
7862
+ message.newIssueUri = String(object.newIssueUri);
7863
+ if (object.documentationUri != null)
7864
+ message.documentationUri = String(object.documentationUri);
7865
+ if (object.apiShortName != null)
7866
+ message.apiShortName = String(object.apiShortName);
7867
+ if (object.githubLabel != null)
7868
+ message.githubLabel = String(object.githubLabel);
7869
+ if (object.codeownerGithubTeams) {
7870
+ if (!Array.isArray(object.codeownerGithubTeams))
7871
+ throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
7872
+ message.codeownerGithubTeams = [];
7873
+ for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
7874
+ message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
7875
+ }
7876
+ if (object.docTagPrefix != null)
7877
+ message.docTagPrefix = String(object.docTagPrefix);
7878
+ switch (object.organization) {
7879
+ default:
7880
+ if (typeof object.organization === "number") {
7881
+ message.organization = object.organization;
7882
+ break;
7883
+ }
7884
+ break;
7885
+ case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
7886
+ case 0:
7887
+ message.organization = 0;
7888
+ break;
7889
+ case "CLOUD":
7890
+ case 1:
7891
+ message.organization = 1;
7892
+ break;
7893
+ case "ADS":
7894
+ case 2:
7895
+ message.organization = 2;
7896
+ break;
7897
+ case "PHOTOS":
7898
+ case 3:
7899
+ message.organization = 3;
7900
+ break;
7901
+ case "STREET_VIEW":
7902
+ case 4:
7903
+ message.organization = 4;
7904
+ break;
7905
+ }
7906
+ if (object.librarySettings) {
7907
+ if (!Array.isArray(object.librarySettings))
7908
+ throw TypeError(".google.api.Publishing.librarySettings: array expected");
7909
+ message.librarySettings = [];
7910
+ for (var i = 0; i < object.librarySettings.length; ++i) {
7911
+ if (typeof object.librarySettings[i] !== "object")
7912
+ throw TypeError(".google.api.Publishing.librarySettings: object expected");
7913
+ message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
7914
+ }
7915
+ }
7916
+ return message;
7917
+ };
7918
+
7919
+ /**
7920
+ * Creates a plain object from a Publishing message. Also converts values to other types if specified.
7921
+ * @function toObject
7922
+ * @memberof google.api.Publishing
7923
+ * @static
7924
+ * @param {google.api.Publishing} message Publishing
7925
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
7926
+ * @returns {Object.<string,*>} Plain object
7927
+ */
7928
+ Publishing.toObject = function toObject(message, options) {
7929
+ if (!options)
7930
+ options = {};
7931
+ var object = {};
7932
+ if (options.arrays || options.defaults) {
7933
+ object.methodSettings = [];
7934
+ object.codeownerGithubTeams = [];
7935
+ object.librarySettings = [];
7936
+ }
7937
+ if (options.defaults) {
7938
+ object.newIssueUri = "";
7939
+ object.documentationUri = "";
7940
+ object.apiShortName = "";
7941
+ object.githubLabel = "";
7942
+ object.docTagPrefix = "";
7943
+ object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
7944
+ }
7945
+ if (message.methodSettings && message.methodSettings.length) {
7946
+ object.methodSettings = [];
7947
+ for (var j = 0; j < message.methodSettings.length; ++j)
7948
+ object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
7949
+ }
7950
+ if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
7951
+ object.newIssueUri = message.newIssueUri;
7952
+ if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
7953
+ object.documentationUri = message.documentationUri;
7954
+ if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
7955
+ object.apiShortName = message.apiShortName;
7956
+ if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
7957
+ object.githubLabel = message.githubLabel;
7958
+ if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
7959
+ object.codeownerGithubTeams = [];
7960
+ for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
7961
+ object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
7962
+ }
7963
+ if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
7964
+ object.docTagPrefix = message.docTagPrefix;
7965
+ if (message.organization != null && message.hasOwnProperty("organization"))
7966
+ object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
7967
+ if (message.librarySettings && message.librarySettings.length) {
7968
+ object.librarySettings = [];
7969
+ for (var j = 0; j < message.librarySettings.length; ++j)
7970
+ object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
7971
+ }
7972
+ return object;
7973
+ };
7974
+
7975
+ /**
7976
+ * Converts this Publishing to JSON.
7977
+ * @function toJSON
7978
+ * @memberof google.api.Publishing
7979
+ * @instance
7980
+ * @returns {Object.<string,*>} JSON object
7981
+ */
7982
+ Publishing.prototype.toJSON = function toJSON() {
7983
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
7984
+ };
7985
+
7986
+ /**
7987
+ * Gets the default type url for Publishing
7988
+ * @function getTypeUrl
7989
+ * @memberof google.api.Publishing
7990
+ * @static
7991
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7992
+ * @returns {string} The default type url
7993
+ */
7994
+ Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
7995
+ if (typeUrlPrefix === undefined) {
7996
+ typeUrlPrefix = "type.googleapis.com";
7997
+ }
7998
+ return typeUrlPrefix + "/google.api.Publishing";
7999
+ };
8000
+
8001
+ return Publishing;
8002
+ })();
8003
+
8004
+ api.JavaSettings = (function() {
8005
+
8006
+ /**
8007
+ * Properties of a JavaSettings.
8008
+ * @memberof google.api
8009
+ * @interface IJavaSettings
8010
+ * @property {string|null} [libraryPackage] JavaSettings libraryPackage
8011
+ * @property {Object.<string,string>|null} [serviceClassNames] JavaSettings serviceClassNames
8012
+ * @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
8013
+ */
8014
+
8015
+ /**
8016
+ * Constructs a new JavaSettings.
8017
+ * @memberof google.api
8018
+ * @classdesc Represents a JavaSettings.
8019
+ * @implements IJavaSettings
8020
+ * @constructor
8021
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
8022
+ */
8023
+ function JavaSettings(properties) {
8024
+ this.serviceClassNames = {};
8025
+ if (properties)
8026
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8027
+ if (properties[keys[i]] != null)
8028
+ this[keys[i]] = properties[keys[i]];
8029
+ }
8030
+
8031
+ /**
8032
+ * JavaSettings libraryPackage.
8033
+ * @member {string} libraryPackage
8034
+ * @memberof google.api.JavaSettings
8035
+ * @instance
8036
+ */
8037
+ JavaSettings.prototype.libraryPackage = "";
8038
+
8039
+ /**
8040
+ * JavaSettings serviceClassNames.
8041
+ * @member {Object.<string,string>} serviceClassNames
8042
+ * @memberof google.api.JavaSettings
8043
+ * @instance
8044
+ */
8045
+ JavaSettings.prototype.serviceClassNames = $util.emptyObject;
8046
+
8047
+ /**
8048
+ * JavaSettings common.
8049
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
8050
+ * @memberof google.api.JavaSettings
8051
+ * @instance
8052
+ */
8053
+ JavaSettings.prototype.common = null;
8054
+
8055
+ /**
8056
+ * Creates a new JavaSettings instance using the specified properties.
8057
+ * @function create
8058
+ * @memberof google.api.JavaSettings
8059
+ * @static
8060
+ * @param {google.api.IJavaSettings=} [properties] Properties to set
8061
+ * @returns {google.api.JavaSettings} JavaSettings instance
8062
+ */
8063
+ JavaSettings.create = function create(properties) {
8064
+ return new JavaSettings(properties);
8065
+ };
8066
+
8067
+ /**
8068
+ * Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
8069
+ * @function encode
8070
+ * @memberof google.api.JavaSettings
8071
+ * @static
8072
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
8073
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8074
+ * @returns {$protobuf.Writer} Writer
8075
+ */
8076
+ JavaSettings.encode = function encode(message, writer) {
8077
+ if (!writer)
8078
+ writer = $Writer.create();
8079
+ if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
8080
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
8081
+ if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
8082
+ for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
8083
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.serviceClassNames[keys[i]]).ldelim();
8084
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
8085
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
8086
+ return writer;
8087
+ };
8088
+
8089
+ /**
8090
+ * Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
8091
+ * @function encodeDelimited
8092
+ * @memberof google.api.JavaSettings
8093
+ * @static
8094
+ * @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
8095
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8096
+ * @returns {$protobuf.Writer} Writer
8097
+ */
8098
+ JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
8099
+ return this.encode(message, writer).ldelim();
8100
+ };
8101
+
8102
+ /**
8103
+ * Decodes a JavaSettings message from the specified reader or buffer.
8104
+ * @function decode
8105
+ * @memberof google.api.JavaSettings
8106
+ * @static
8107
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8108
+ * @param {number} [length] Message length if known beforehand
8109
+ * @returns {google.api.JavaSettings} JavaSettings
8110
+ * @throws {Error} If the payload is not a reader or valid buffer
8111
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8112
+ */
8113
+ JavaSettings.decode = function decode(reader, length) {
8114
+ if (!(reader instanceof $Reader))
8115
+ reader = $Reader.create(reader);
8116
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
8117
+ while (reader.pos < end) {
8118
+ var tag = reader.uint32();
8119
+ switch (tag >>> 3) {
8120
+ case 1: {
8121
+ message.libraryPackage = reader.string();
8122
+ break;
8123
+ }
8124
+ case 2: {
8125
+ if (message.serviceClassNames === $util.emptyObject)
8126
+ message.serviceClassNames = {};
8127
+ var end2 = reader.uint32() + reader.pos;
8128
+ key = "";
8129
+ value = "";
8130
+ while (reader.pos < end2) {
8131
+ var tag2 = reader.uint32();
8132
+ switch (tag2 >>> 3) {
8133
+ case 1:
8134
+ key = reader.string();
8135
+ break;
8136
+ case 2:
8137
+ value = reader.string();
8138
+ break;
8139
+ default:
8140
+ reader.skipType(tag2 & 7);
8141
+ break;
8142
+ }
8143
+ }
8144
+ message.serviceClassNames[key] = value;
8145
+ break;
8146
+ }
8147
+ case 3: {
8148
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
8149
+ break;
8150
+ }
8151
+ default:
8152
+ reader.skipType(tag & 7);
8153
+ break;
8154
+ }
8155
+ }
8156
+ return message;
8157
+ };
8158
+
8159
+ /**
8160
+ * Decodes a JavaSettings message from the specified reader or buffer, length delimited.
8161
+ * @function decodeDelimited
8162
+ * @memberof google.api.JavaSettings
8163
+ * @static
8164
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8165
+ * @returns {google.api.JavaSettings} JavaSettings
8166
+ * @throws {Error} If the payload is not a reader or valid buffer
8167
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8168
+ */
8169
+ JavaSettings.decodeDelimited = function decodeDelimited(reader) {
8170
+ if (!(reader instanceof $Reader))
8171
+ reader = new $Reader(reader);
8172
+ return this.decode(reader, reader.uint32());
8173
+ };
8174
+
8175
+ /**
8176
+ * Verifies a JavaSettings message.
8177
+ * @function verify
8178
+ * @memberof google.api.JavaSettings
8179
+ * @static
8180
+ * @param {Object.<string,*>} message Plain object to verify
8181
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8182
+ */
8183
+ JavaSettings.verify = function verify(message) {
8184
+ if (typeof message !== "object" || message === null)
8185
+ return "object expected";
8186
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
8187
+ if (!$util.isString(message.libraryPackage))
8188
+ return "libraryPackage: string expected";
8189
+ if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
8190
+ if (!$util.isObject(message.serviceClassNames))
8191
+ return "serviceClassNames: object expected";
8192
+ var key = Object.keys(message.serviceClassNames);
8193
+ for (var i = 0; i < key.length; ++i)
8194
+ if (!$util.isString(message.serviceClassNames[key[i]]))
8195
+ return "serviceClassNames: string{k:string} expected";
8196
+ }
8197
+ if (message.common != null && message.hasOwnProperty("common")) {
8198
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
8199
+ if (error)
8200
+ return "common." + error;
8201
+ }
8202
+ return null;
8203
+ };
8204
+
8205
+ /**
8206
+ * Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
8207
+ * @function fromObject
8208
+ * @memberof google.api.JavaSettings
8209
+ * @static
8210
+ * @param {Object.<string,*>} object Plain object
8211
+ * @returns {google.api.JavaSettings} JavaSettings
8212
+ */
8213
+ JavaSettings.fromObject = function fromObject(object) {
8214
+ if (object instanceof $root.google.api.JavaSettings)
8215
+ return object;
8216
+ var message = new $root.google.api.JavaSettings();
8217
+ if (object.libraryPackage != null)
8218
+ message.libraryPackage = String(object.libraryPackage);
8219
+ if (object.serviceClassNames) {
8220
+ if (typeof object.serviceClassNames !== "object")
8221
+ throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
8222
+ message.serviceClassNames = {};
8223
+ for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
8224
+ message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
8225
+ }
8226
+ if (object.common != null) {
8227
+ if (typeof object.common !== "object")
8228
+ throw TypeError(".google.api.JavaSettings.common: object expected");
8229
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
8230
+ }
8231
+ return message;
8232
+ };
8233
+
8234
+ /**
8235
+ * Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
8236
+ * @function toObject
8237
+ * @memberof google.api.JavaSettings
8238
+ * @static
8239
+ * @param {google.api.JavaSettings} message JavaSettings
8240
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8241
+ * @returns {Object.<string,*>} Plain object
8242
+ */
8243
+ JavaSettings.toObject = function toObject(message, options) {
8244
+ if (!options)
8245
+ options = {};
8246
+ var object = {};
8247
+ if (options.objects || options.defaults)
8248
+ object.serviceClassNames = {};
8249
+ if (options.defaults) {
8250
+ object.libraryPackage = "";
8251
+ object.common = null;
8252
+ }
8253
+ if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
8254
+ object.libraryPackage = message.libraryPackage;
8255
+ var keys2;
8256
+ if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
8257
+ object.serviceClassNames = {};
8258
+ for (var j = 0; j < keys2.length; ++j)
8259
+ object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
8260
+ }
8261
+ if (message.common != null && message.hasOwnProperty("common"))
8262
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
8263
+ return object;
8264
+ };
8265
+
8266
+ /**
8267
+ * Converts this JavaSettings to JSON.
8268
+ * @function toJSON
8269
+ * @memberof google.api.JavaSettings
8270
+ * @instance
8271
+ * @returns {Object.<string,*>} JSON object
8272
+ */
8273
+ JavaSettings.prototype.toJSON = function toJSON() {
8274
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8275
+ };
8276
+
8277
+ /**
8278
+ * Gets the default type url for JavaSettings
8279
+ * @function getTypeUrl
8280
+ * @memberof google.api.JavaSettings
8281
+ * @static
8282
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8283
+ * @returns {string} The default type url
8284
+ */
8285
+ JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8286
+ if (typeUrlPrefix === undefined) {
8287
+ typeUrlPrefix = "type.googleapis.com";
8288
+ }
8289
+ return typeUrlPrefix + "/google.api.JavaSettings";
8290
+ };
8291
+
8292
+ return JavaSettings;
8293
+ })();
8294
+
8295
+ api.CppSettings = (function() {
8296
+
8297
+ /**
8298
+ * Properties of a CppSettings.
8299
+ * @memberof google.api
8300
+ * @interface ICppSettings
8301
+ * @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
8302
+ */
8303
+
8304
+ /**
8305
+ * Constructs a new CppSettings.
8306
+ * @memberof google.api
8307
+ * @classdesc Represents a CppSettings.
8308
+ * @implements ICppSettings
8309
+ * @constructor
8310
+ * @param {google.api.ICppSettings=} [properties] Properties to set
8311
+ */
8312
+ function CppSettings(properties) {
8313
+ if (properties)
8314
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8315
+ if (properties[keys[i]] != null)
8316
+ this[keys[i]] = properties[keys[i]];
8317
+ }
8318
+
8319
+ /**
8320
+ * CppSettings common.
8321
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
8322
+ * @memberof google.api.CppSettings
8323
+ * @instance
8324
+ */
8325
+ CppSettings.prototype.common = null;
8326
+
8327
+ /**
8328
+ * Creates a new CppSettings instance using the specified properties.
8329
+ * @function create
8330
+ * @memberof google.api.CppSettings
8331
+ * @static
8332
+ * @param {google.api.ICppSettings=} [properties] Properties to set
8333
+ * @returns {google.api.CppSettings} CppSettings instance
8334
+ */
8335
+ CppSettings.create = function create(properties) {
8336
+ return new CppSettings(properties);
8337
+ };
8338
+
8339
+ /**
8340
+ * Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
8341
+ * @function encode
8342
+ * @memberof google.api.CppSettings
8343
+ * @static
8344
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
8345
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8346
+ * @returns {$protobuf.Writer} Writer
8347
+ */
8348
+ CppSettings.encode = function encode(message, writer) {
8349
+ if (!writer)
8350
+ writer = $Writer.create();
8351
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
8352
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
8353
+ return writer;
8354
+ };
8355
+
8356
+ /**
8357
+ * Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
8358
+ * @function encodeDelimited
8359
+ * @memberof google.api.CppSettings
8360
+ * @static
8361
+ * @param {google.api.ICppSettings} message CppSettings message or plain object to encode
8362
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8363
+ * @returns {$protobuf.Writer} Writer
8364
+ */
8365
+ CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
8366
+ return this.encode(message, writer).ldelim();
8367
+ };
8368
+
8369
+ /**
8370
+ * Decodes a CppSettings message from the specified reader or buffer.
8371
+ * @function decode
8372
+ * @memberof google.api.CppSettings
8373
+ * @static
8374
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8375
+ * @param {number} [length] Message length if known beforehand
8376
+ * @returns {google.api.CppSettings} CppSettings
8377
+ * @throws {Error} If the payload is not a reader or valid buffer
8378
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8379
+ */
8380
+ CppSettings.decode = function decode(reader, length) {
8381
+ if (!(reader instanceof $Reader))
8382
+ reader = $Reader.create(reader);
8383
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
8384
+ while (reader.pos < end) {
8385
+ var tag = reader.uint32();
8386
+ switch (tag >>> 3) {
8387
+ case 1: {
8388
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
8389
+ break;
8390
+ }
8391
+ default:
8392
+ reader.skipType(tag & 7);
8393
+ break;
8394
+ }
8395
+ }
8396
+ return message;
8397
+ };
8398
+
8399
+ /**
8400
+ * Decodes a CppSettings message from the specified reader or buffer, length delimited.
8401
+ * @function decodeDelimited
8402
+ * @memberof google.api.CppSettings
8403
+ * @static
8404
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8405
+ * @returns {google.api.CppSettings} CppSettings
8406
+ * @throws {Error} If the payload is not a reader or valid buffer
8407
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8408
+ */
8409
+ CppSettings.decodeDelimited = function decodeDelimited(reader) {
8410
+ if (!(reader instanceof $Reader))
8411
+ reader = new $Reader(reader);
8412
+ return this.decode(reader, reader.uint32());
8413
+ };
8414
+
8415
+ /**
8416
+ * Verifies a CppSettings message.
8417
+ * @function verify
8418
+ * @memberof google.api.CppSettings
8419
+ * @static
8420
+ * @param {Object.<string,*>} message Plain object to verify
8421
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8422
+ */
8423
+ CppSettings.verify = function verify(message) {
8424
+ if (typeof message !== "object" || message === null)
8425
+ return "object expected";
8426
+ if (message.common != null && message.hasOwnProperty("common")) {
8427
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
8428
+ if (error)
8429
+ return "common." + error;
8430
+ }
8431
+ return null;
8432
+ };
8433
+
8434
+ /**
8435
+ * Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
8436
+ * @function fromObject
8437
+ * @memberof google.api.CppSettings
8438
+ * @static
8439
+ * @param {Object.<string,*>} object Plain object
8440
+ * @returns {google.api.CppSettings} CppSettings
8441
+ */
8442
+ CppSettings.fromObject = function fromObject(object) {
8443
+ if (object instanceof $root.google.api.CppSettings)
8444
+ return object;
8445
+ var message = new $root.google.api.CppSettings();
8446
+ if (object.common != null) {
8447
+ if (typeof object.common !== "object")
8448
+ throw TypeError(".google.api.CppSettings.common: object expected");
8449
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
8450
+ }
8451
+ return message;
8452
+ };
8453
+
8454
+ /**
8455
+ * Creates a plain object from a CppSettings message. Also converts values to other types if specified.
8456
+ * @function toObject
8457
+ * @memberof google.api.CppSettings
8458
+ * @static
8459
+ * @param {google.api.CppSettings} message CppSettings
8460
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8461
+ * @returns {Object.<string,*>} Plain object
8462
+ */
8463
+ CppSettings.toObject = function toObject(message, options) {
8464
+ if (!options)
8465
+ options = {};
8466
+ var object = {};
8467
+ if (options.defaults)
8468
+ object.common = null;
8469
+ if (message.common != null && message.hasOwnProperty("common"))
8470
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
8471
+ return object;
8472
+ };
8473
+
8474
+ /**
8475
+ * Converts this CppSettings to JSON.
8476
+ * @function toJSON
8477
+ * @memberof google.api.CppSettings
8478
+ * @instance
8479
+ * @returns {Object.<string,*>} JSON object
8480
+ */
8481
+ CppSettings.prototype.toJSON = function toJSON() {
8482
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8483
+ };
8484
+
8485
+ /**
8486
+ * Gets the default type url for CppSettings
8487
+ * @function getTypeUrl
8488
+ * @memberof google.api.CppSettings
8489
+ * @static
8490
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8491
+ * @returns {string} The default type url
8492
+ */
8493
+ CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8494
+ if (typeUrlPrefix === undefined) {
8495
+ typeUrlPrefix = "type.googleapis.com";
8496
+ }
8497
+ return typeUrlPrefix + "/google.api.CppSettings";
8498
+ };
8499
+
8500
+ return CppSettings;
8501
+ })();
8502
+
8503
+ api.PhpSettings = (function() {
8504
+
8505
+ /**
8506
+ * Properties of a PhpSettings.
8507
+ * @memberof google.api
8508
+ * @interface IPhpSettings
8509
+ * @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
8510
+ */
8511
+
8512
+ /**
8513
+ * Constructs a new PhpSettings.
8514
+ * @memberof google.api
8515
+ * @classdesc Represents a PhpSettings.
8516
+ * @implements IPhpSettings
8517
+ * @constructor
8518
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
8519
+ */
8520
+ function PhpSettings(properties) {
8521
+ if (properties)
8522
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8523
+ if (properties[keys[i]] != null)
8524
+ this[keys[i]] = properties[keys[i]];
8525
+ }
8526
+
8527
+ /**
8528
+ * PhpSettings common.
8529
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
8530
+ * @memberof google.api.PhpSettings
8531
+ * @instance
8532
+ */
8533
+ PhpSettings.prototype.common = null;
8534
+
8535
+ /**
8536
+ * Creates a new PhpSettings instance using the specified properties.
8537
+ * @function create
8538
+ * @memberof google.api.PhpSettings
8539
+ * @static
8540
+ * @param {google.api.IPhpSettings=} [properties] Properties to set
8541
+ * @returns {google.api.PhpSettings} PhpSettings instance
8542
+ */
8543
+ PhpSettings.create = function create(properties) {
8544
+ return new PhpSettings(properties);
8545
+ };
8546
+
8547
+ /**
8548
+ * Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
8549
+ * @function encode
8550
+ * @memberof google.api.PhpSettings
8551
+ * @static
8552
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
8553
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8554
+ * @returns {$protobuf.Writer} Writer
8555
+ */
8556
+ PhpSettings.encode = function encode(message, writer) {
8557
+ if (!writer)
8558
+ writer = $Writer.create();
8559
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
8560
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
8561
+ return writer;
8562
+ };
8563
+
8564
+ /**
8565
+ * Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
8566
+ * @function encodeDelimited
8567
+ * @memberof google.api.PhpSettings
8568
+ * @static
8569
+ * @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
8570
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8571
+ * @returns {$protobuf.Writer} Writer
8572
+ */
8573
+ PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
8574
+ return this.encode(message, writer).ldelim();
8575
+ };
8576
+
8577
+ /**
8578
+ * Decodes a PhpSettings message from the specified reader or buffer.
8579
+ * @function decode
8580
+ * @memberof google.api.PhpSettings
8581
+ * @static
8582
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8583
+ * @param {number} [length] Message length if known beforehand
8584
+ * @returns {google.api.PhpSettings} PhpSettings
8585
+ * @throws {Error} If the payload is not a reader or valid buffer
8586
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8587
+ */
8588
+ PhpSettings.decode = function decode(reader, length) {
8589
+ if (!(reader instanceof $Reader))
8590
+ reader = $Reader.create(reader);
8591
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
8592
+ while (reader.pos < end) {
8593
+ var tag = reader.uint32();
8594
+ switch (tag >>> 3) {
8595
+ case 1: {
8596
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
8597
+ break;
8598
+ }
8599
+ default:
8600
+ reader.skipType(tag & 7);
8601
+ break;
8602
+ }
8603
+ }
8604
+ return message;
8605
+ };
8606
+
8607
+ /**
8608
+ * Decodes a PhpSettings message from the specified reader or buffer, length delimited.
8609
+ * @function decodeDelimited
8610
+ * @memberof google.api.PhpSettings
8611
+ * @static
8612
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8613
+ * @returns {google.api.PhpSettings} PhpSettings
8614
+ * @throws {Error} If the payload is not a reader or valid buffer
8615
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8616
+ */
8617
+ PhpSettings.decodeDelimited = function decodeDelimited(reader) {
8618
+ if (!(reader instanceof $Reader))
8619
+ reader = new $Reader(reader);
8620
+ return this.decode(reader, reader.uint32());
8621
+ };
8622
+
8623
+ /**
8624
+ * Verifies a PhpSettings message.
8625
+ * @function verify
8626
+ * @memberof google.api.PhpSettings
8627
+ * @static
8628
+ * @param {Object.<string,*>} message Plain object to verify
8629
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8630
+ */
8631
+ PhpSettings.verify = function verify(message) {
8632
+ if (typeof message !== "object" || message === null)
8633
+ return "object expected";
8634
+ if (message.common != null && message.hasOwnProperty("common")) {
8635
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
8636
+ if (error)
8637
+ return "common." + error;
8638
+ }
8639
+ return null;
8640
+ };
8641
+
8642
+ /**
8643
+ * Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
8644
+ * @function fromObject
8645
+ * @memberof google.api.PhpSettings
8646
+ * @static
8647
+ * @param {Object.<string,*>} object Plain object
8648
+ * @returns {google.api.PhpSettings} PhpSettings
8649
+ */
8650
+ PhpSettings.fromObject = function fromObject(object) {
8651
+ if (object instanceof $root.google.api.PhpSettings)
8652
+ return object;
8653
+ var message = new $root.google.api.PhpSettings();
8654
+ if (object.common != null) {
8655
+ if (typeof object.common !== "object")
8656
+ throw TypeError(".google.api.PhpSettings.common: object expected");
8657
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
8658
+ }
8659
+ return message;
8660
+ };
8661
+
8662
+ /**
8663
+ * Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
8664
+ * @function toObject
8665
+ * @memberof google.api.PhpSettings
8666
+ * @static
8667
+ * @param {google.api.PhpSettings} message PhpSettings
8668
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8669
+ * @returns {Object.<string,*>} Plain object
8670
+ */
8671
+ PhpSettings.toObject = function toObject(message, options) {
8672
+ if (!options)
8673
+ options = {};
8674
+ var object = {};
8675
+ if (options.defaults)
8676
+ object.common = null;
8677
+ if (message.common != null && message.hasOwnProperty("common"))
8678
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
8679
+ return object;
8680
+ };
8681
+
8682
+ /**
8683
+ * Converts this PhpSettings to JSON.
8684
+ * @function toJSON
8685
+ * @memberof google.api.PhpSettings
8686
+ * @instance
8687
+ * @returns {Object.<string,*>} JSON object
8688
+ */
8689
+ PhpSettings.prototype.toJSON = function toJSON() {
8690
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8691
+ };
8692
+
8693
+ /**
8694
+ * Gets the default type url for PhpSettings
8695
+ * @function getTypeUrl
8696
+ * @memberof google.api.PhpSettings
8697
+ * @static
8698
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8699
+ * @returns {string} The default type url
8700
+ */
8701
+ PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8702
+ if (typeUrlPrefix === undefined) {
8703
+ typeUrlPrefix = "type.googleapis.com";
8704
+ }
8705
+ return typeUrlPrefix + "/google.api.PhpSettings";
8706
+ };
8707
+
8708
+ return PhpSettings;
8709
+ })();
8710
+
8711
+ api.PythonSettings = (function() {
8712
+
8713
+ /**
8714
+ * Properties of a PythonSettings.
8715
+ * @memberof google.api
8716
+ * @interface IPythonSettings
8717
+ * @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
8718
+ */
8719
+
8720
+ /**
8721
+ * Constructs a new PythonSettings.
8722
+ * @memberof google.api
8723
+ * @classdesc Represents a PythonSettings.
8724
+ * @implements IPythonSettings
8725
+ * @constructor
8726
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
8727
+ */
8728
+ function PythonSettings(properties) {
8729
+ if (properties)
8730
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8731
+ if (properties[keys[i]] != null)
8732
+ this[keys[i]] = properties[keys[i]];
8733
+ }
8734
+
8735
+ /**
8736
+ * PythonSettings common.
8737
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
8738
+ * @memberof google.api.PythonSettings
8739
+ * @instance
8740
+ */
8741
+ PythonSettings.prototype.common = null;
8742
+
8743
+ /**
8744
+ * Creates a new PythonSettings instance using the specified properties.
8745
+ * @function create
8746
+ * @memberof google.api.PythonSettings
8747
+ * @static
8748
+ * @param {google.api.IPythonSettings=} [properties] Properties to set
8749
+ * @returns {google.api.PythonSettings} PythonSettings instance
8750
+ */
8751
+ PythonSettings.create = function create(properties) {
8752
+ return new PythonSettings(properties);
8753
+ };
8754
+
8755
+ /**
8756
+ * Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
8757
+ * @function encode
8758
+ * @memberof google.api.PythonSettings
8759
+ * @static
8760
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
8761
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8762
+ * @returns {$protobuf.Writer} Writer
8763
+ */
8764
+ PythonSettings.encode = function encode(message, writer) {
8765
+ if (!writer)
8766
+ writer = $Writer.create();
8767
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
8768
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
8769
+ return writer;
8770
+ };
8771
+
8772
+ /**
8773
+ * Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
8774
+ * @function encodeDelimited
8775
+ * @memberof google.api.PythonSettings
8776
+ * @static
8777
+ * @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
8778
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8779
+ * @returns {$protobuf.Writer} Writer
8780
+ */
8781
+ PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
8782
+ return this.encode(message, writer).ldelim();
8783
+ };
8784
+
8785
+ /**
8786
+ * Decodes a PythonSettings message from the specified reader or buffer.
8787
+ * @function decode
8788
+ * @memberof google.api.PythonSettings
8789
+ * @static
8790
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8791
+ * @param {number} [length] Message length if known beforehand
8792
+ * @returns {google.api.PythonSettings} PythonSettings
8793
+ * @throws {Error} If the payload is not a reader or valid buffer
8794
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8795
+ */
8796
+ PythonSettings.decode = function decode(reader, length) {
8797
+ if (!(reader instanceof $Reader))
8798
+ reader = $Reader.create(reader);
8799
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
8800
+ while (reader.pos < end) {
8801
+ var tag = reader.uint32();
8802
+ switch (tag >>> 3) {
8803
+ case 1: {
8804
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
8805
+ break;
8806
+ }
8807
+ default:
8808
+ reader.skipType(tag & 7);
8809
+ break;
8810
+ }
8811
+ }
8812
+ return message;
8813
+ };
8814
+
8815
+ /**
8816
+ * Decodes a PythonSettings message from the specified reader or buffer, length delimited.
8817
+ * @function decodeDelimited
8818
+ * @memberof google.api.PythonSettings
8819
+ * @static
8820
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8821
+ * @returns {google.api.PythonSettings} PythonSettings
8822
+ * @throws {Error} If the payload is not a reader or valid buffer
8823
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
8824
+ */
8825
+ PythonSettings.decodeDelimited = function decodeDelimited(reader) {
8826
+ if (!(reader instanceof $Reader))
8827
+ reader = new $Reader(reader);
8828
+ return this.decode(reader, reader.uint32());
8829
+ };
8830
+
8831
+ /**
8832
+ * Verifies a PythonSettings message.
8833
+ * @function verify
8834
+ * @memberof google.api.PythonSettings
8835
+ * @static
8836
+ * @param {Object.<string,*>} message Plain object to verify
8837
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
8838
+ */
8839
+ PythonSettings.verify = function verify(message) {
8840
+ if (typeof message !== "object" || message === null)
8841
+ return "object expected";
8842
+ if (message.common != null && message.hasOwnProperty("common")) {
8843
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
8844
+ if (error)
8845
+ return "common." + error;
8846
+ }
8847
+ return null;
8848
+ };
8849
+
8850
+ /**
8851
+ * Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
8852
+ * @function fromObject
8853
+ * @memberof google.api.PythonSettings
8854
+ * @static
8855
+ * @param {Object.<string,*>} object Plain object
8856
+ * @returns {google.api.PythonSettings} PythonSettings
8857
+ */
8858
+ PythonSettings.fromObject = function fromObject(object) {
8859
+ if (object instanceof $root.google.api.PythonSettings)
8860
+ return object;
8861
+ var message = new $root.google.api.PythonSettings();
8862
+ if (object.common != null) {
8863
+ if (typeof object.common !== "object")
8864
+ throw TypeError(".google.api.PythonSettings.common: object expected");
8865
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
8866
+ }
8867
+ return message;
8868
+ };
8869
+
8870
+ /**
8871
+ * Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
8872
+ * @function toObject
8873
+ * @memberof google.api.PythonSettings
8874
+ * @static
8875
+ * @param {google.api.PythonSettings} message PythonSettings
8876
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
8877
+ * @returns {Object.<string,*>} Plain object
8878
+ */
8879
+ PythonSettings.toObject = function toObject(message, options) {
8880
+ if (!options)
8881
+ options = {};
8882
+ var object = {};
8883
+ if (options.defaults)
8884
+ object.common = null;
8885
+ if (message.common != null && message.hasOwnProperty("common"))
8886
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
8887
+ return object;
8888
+ };
8889
+
8890
+ /**
8891
+ * Converts this PythonSettings to JSON.
8892
+ * @function toJSON
8893
+ * @memberof google.api.PythonSettings
8894
+ * @instance
8895
+ * @returns {Object.<string,*>} JSON object
8896
+ */
8897
+ PythonSettings.prototype.toJSON = function toJSON() {
8898
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
8899
+ };
8900
+
8901
+ /**
8902
+ * Gets the default type url for PythonSettings
8903
+ * @function getTypeUrl
8904
+ * @memberof google.api.PythonSettings
8905
+ * @static
8906
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
8907
+ * @returns {string} The default type url
8908
+ */
8909
+ PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
8910
+ if (typeUrlPrefix === undefined) {
8911
+ typeUrlPrefix = "type.googleapis.com";
8912
+ }
8913
+ return typeUrlPrefix + "/google.api.PythonSettings";
8914
+ };
8915
+
8916
+ return PythonSettings;
8917
+ })();
8918
+
8919
+ api.NodeSettings = (function() {
8920
+
8921
+ /**
8922
+ * Properties of a NodeSettings.
8923
+ * @memberof google.api
8924
+ * @interface INodeSettings
8925
+ * @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
8926
+ */
8927
+
8928
+ /**
8929
+ * Constructs a new NodeSettings.
8930
+ * @memberof google.api
8931
+ * @classdesc Represents a NodeSettings.
8932
+ * @implements INodeSettings
8933
+ * @constructor
8934
+ * @param {google.api.INodeSettings=} [properties] Properties to set
8935
+ */
8936
+ function NodeSettings(properties) {
8937
+ if (properties)
8938
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
8939
+ if (properties[keys[i]] != null)
8940
+ this[keys[i]] = properties[keys[i]];
8941
+ }
8942
+
8943
+ /**
8944
+ * NodeSettings common.
8945
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
8946
+ * @memberof google.api.NodeSettings
8947
+ * @instance
8948
+ */
8949
+ NodeSettings.prototype.common = null;
8950
+
8951
+ /**
8952
+ * Creates a new NodeSettings instance using the specified properties.
8953
+ * @function create
8954
+ * @memberof google.api.NodeSettings
8955
+ * @static
8956
+ * @param {google.api.INodeSettings=} [properties] Properties to set
8957
+ * @returns {google.api.NodeSettings} NodeSettings instance
8958
+ */
8959
+ NodeSettings.create = function create(properties) {
8960
+ return new NodeSettings(properties);
8961
+ };
8962
+
8963
+ /**
8964
+ * Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
8965
+ * @function encode
8966
+ * @memberof google.api.NodeSettings
8967
+ * @static
8968
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
8969
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8970
+ * @returns {$protobuf.Writer} Writer
8971
+ */
8972
+ NodeSettings.encode = function encode(message, writer) {
8973
+ if (!writer)
8974
+ writer = $Writer.create();
8975
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
8976
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
8977
+ return writer;
8978
+ };
8979
+
8980
+ /**
8981
+ * Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
8982
+ * @function encodeDelimited
8983
+ * @memberof google.api.NodeSettings
8984
+ * @static
8985
+ * @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
8986
+ * @param {$protobuf.Writer} [writer] Writer to encode to
8987
+ * @returns {$protobuf.Writer} Writer
8988
+ */
8989
+ NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
8990
+ return this.encode(message, writer).ldelim();
8991
+ };
8992
+
8993
+ /**
8994
+ * Decodes a NodeSettings message from the specified reader or buffer.
8995
+ * @function decode
8996
+ * @memberof google.api.NodeSettings
8997
+ * @static
8998
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
8999
+ * @param {number} [length] Message length if known beforehand
9000
+ * @returns {google.api.NodeSettings} NodeSettings
9001
+ * @throws {Error} If the payload is not a reader or valid buffer
9002
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9003
+ */
9004
+ NodeSettings.decode = function decode(reader, length) {
9005
+ if (!(reader instanceof $Reader))
9006
+ reader = $Reader.create(reader);
9007
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
9008
+ while (reader.pos < end) {
9009
+ var tag = reader.uint32();
9010
+ switch (tag >>> 3) {
9011
+ case 1: {
9012
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
9013
+ break;
9014
+ }
9015
+ default:
9016
+ reader.skipType(tag & 7);
9017
+ break;
9018
+ }
9019
+ }
9020
+ return message;
9021
+ };
9022
+
9023
+ /**
9024
+ * Decodes a NodeSettings message from the specified reader or buffer, length delimited.
9025
+ * @function decodeDelimited
9026
+ * @memberof google.api.NodeSettings
9027
+ * @static
9028
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9029
+ * @returns {google.api.NodeSettings} NodeSettings
9030
+ * @throws {Error} If the payload is not a reader or valid buffer
9031
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9032
+ */
9033
+ NodeSettings.decodeDelimited = function decodeDelimited(reader) {
9034
+ if (!(reader instanceof $Reader))
9035
+ reader = new $Reader(reader);
9036
+ return this.decode(reader, reader.uint32());
9037
+ };
9038
+
9039
+ /**
9040
+ * Verifies a NodeSettings message.
9041
+ * @function verify
9042
+ * @memberof google.api.NodeSettings
9043
+ * @static
9044
+ * @param {Object.<string,*>} message Plain object to verify
9045
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9046
+ */
9047
+ NodeSettings.verify = function verify(message) {
9048
+ if (typeof message !== "object" || message === null)
9049
+ return "object expected";
9050
+ if (message.common != null && message.hasOwnProperty("common")) {
9051
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
9052
+ if (error)
9053
+ return "common." + error;
9054
+ }
9055
+ return null;
9056
+ };
9057
+
9058
+ /**
9059
+ * Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
9060
+ * @function fromObject
9061
+ * @memberof google.api.NodeSettings
9062
+ * @static
9063
+ * @param {Object.<string,*>} object Plain object
9064
+ * @returns {google.api.NodeSettings} NodeSettings
9065
+ */
9066
+ NodeSettings.fromObject = function fromObject(object) {
9067
+ if (object instanceof $root.google.api.NodeSettings)
9068
+ return object;
9069
+ var message = new $root.google.api.NodeSettings();
9070
+ if (object.common != null) {
9071
+ if (typeof object.common !== "object")
9072
+ throw TypeError(".google.api.NodeSettings.common: object expected");
9073
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
9074
+ }
9075
+ return message;
9076
+ };
9077
+
9078
+ /**
9079
+ * Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
9080
+ * @function toObject
9081
+ * @memberof google.api.NodeSettings
9082
+ * @static
9083
+ * @param {google.api.NodeSettings} message NodeSettings
9084
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9085
+ * @returns {Object.<string,*>} Plain object
9086
+ */
9087
+ NodeSettings.toObject = function toObject(message, options) {
9088
+ if (!options)
9089
+ options = {};
9090
+ var object = {};
9091
+ if (options.defaults)
9092
+ object.common = null;
9093
+ if (message.common != null && message.hasOwnProperty("common"))
9094
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
9095
+ return object;
9096
+ };
9097
+
9098
+ /**
9099
+ * Converts this NodeSettings to JSON.
9100
+ * @function toJSON
9101
+ * @memberof google.api.NodeSettings
9102
+ * @instance
9103
+ * @returns {Object.<string,*>} JSON object
9104
+ */
9105
+ NodeSettings.prototype.toJSON = function toJSON() {
9106
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9107
+ };
9108
+
9109
+ /**
9110
+ * Gets the default type url for NodeSettings
9111
+ * @function getTypeUrl
9112
+ * @memberof google.api.NodeSettings
9113
+ * @static
9114
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9115
+ * @returns {string} The default type url
9116
+ */
9117
+ NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9118
+ if (typeUrlPrefix === undefined) {
9119
+ typeUrlPrefix = "type.googleapis.com";
9120
+ }
9121
+ return typeUrlPrefix + "/google.api.NodeSettings";
9122
+ };
9123
+
9124
+ return NodeSettings;
9125
+ })();
9126
+
9127
+ api.DotnetSettings = (function() {
9128
+
9129
+ /**
9130
+ * Properties of a DotnetSettings.
9131
+ * @memberof google.api
9132
+ * @interface IDotnetSettings
9133
+ * @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
9134
+ */
9135
+
9136
+ /**
9137
+ * Constructs a new DotnetSettings.
9138
+ * @memberof google.api
9139
+ * @classdesc Represents a DotnetSettings.
9140
+ * @implements IDotnetSettings
9141
+ * @constructor
9142
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
9143
+ */
9144
+ function DotnetSettings(properties) {
9145
+ if (properties)
9146
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9147
+ if (properties[keys[i]] != null)
9148
+ this[keys[i]] = properties[keys[i]];
9149
+ }
9150
+
9151
+ /**
9152
+ * DotnetSettings common.
9153
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
9154
+ * @memberof google.api.DotnetSettings
9155
+ * @instance
9156
+ */
9157
+ DotnetSettings.prototype.common = null;
9158
+
9159
+ /**
9160
+ * Creates a new DotnetSettings instance using the specified properties.
9161
+ * @function create
9162
+ * @memberof google.api.DotnetSettings
9163
+ * @static
9164
+ * @param {google.api.IDotnetSettings=} [properties] Properties to set
9165
+ * @returns {google.api.DotnetSettings} DotnetSettings instance
9166
+ */
9167
+ DotnetSettings.create = function create(properties) {
9168
+ return new DotnetSettings(properties);
9169
+ };
9170
+
9171
+ /**
9172
+ * Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
9173
+ * @function encode
9174
+ * @memberof google.api.DotnetSettings
9175
+ * @static
9176
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
9177
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9178
+ * @returns {$protobuf.Writer} Writer
9179
+ */
9180
+ DotnetSettings.encode = function encode(message, writer) {
9181
+ if (!writer)
9182
+ writer = $Writer.create();
9183
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
9184
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9185
+ return writer;
9186
+ };
9187
+
9188
+ /**
9189
+ * Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
9190
+ * @function encodeDelimited
9191
+ * @memberof google.api.DotnetSettings
9192
+ * @static
9193
+ * @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
9194
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9195
+ * @returns {$protobuf.Writer} Writer
9196
+ */
9197
+ DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
9198
+ return this.encode(message, writer).ldelim();
9199
+ };
9200
+
9201
+ /**
9202
+ * Decodes a DotnetSettings message from the specified reader or buffer.
9203
+ * @function decode
9204
+ * @memberof google.api.DotnetSettings
9205
+ * @static
9206
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9207
+ * @param {number} [length] Message length if known beforehand
9208
+ * @returns {google.api.DotnetSettings} DotnetSettings
9209
+ * @throws {Error} If the payload is not a reader or valid buffer
9210
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9211
+ */
9212
+ DotnetSettings.decode = function decode(reader, length) {
9213
+ if (!(reader instanceof $Reader))
9214
+ reader = $Reader.create(reader);
9215
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
9216
+ while (reader.pos < end) {
9217
+ var tag = reader.uint32();
9218
+ switch (tag >>> 3) {
9219
+ case 1: {
9220
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
9221
+ break;
9222
+ }
9223
+ default:
9224
+ reader.skipType(tag & 7);
9225
+ break;
9226
+ }
9227
+ }
9228
+ return message;
9229
+ };
9230
+
9231
+ /**
9232
+ * Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
9233
+ * @function decodeDelimited
9234
+ * @memberof google.api.DotnetSettings
9235
+ * @static
9236
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9237
+ * @returns {google.api.DotnetSettings} DotnetSettings
9238
+ * @throws {Error} If the payload is not a reader or valid buffer
9239
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9240
+ */
9241
+ DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
9242
+ if (!(reader instanceof $Reader))
9243
+ reader = new $Reader(reader);
9244
+ return this.decode(reader, reader.uint32());
9245
+ };
9246
+
9247
+ /**
9248
+ * Verifies a DotnetSettings message.
9249
+ * @function verify
9250
+ * @memberof google.api.DotnetSettings
9251
+ * @static
9252
+ * @param {Object.<string,*>} message Plain object to verify
9253
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9254
+ */
9255
+ DotnetSettings.verify = function verify(message) {
9256
+ if (typeof message !== "object" || message === null)
9257
+ return "object expected";
9258
+ if (message.common != null && message.hasOwnProperty("common")) {
9259
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
9260
+ if (error)
9261
+ return "common." + error;
9262
+ }
9263
+ return null;
9264
+ };
9265
+
9266
+ /**
9267
+ * Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
9268
+ * @function fromObject
9269
+ * @memberof google.api.DotnetSettings
9270
+ * @static
9271
+ * @param {Object.<string,*>} object Plain object
9272
+ * @returns {google.api.DotnetSettings} DotnetSettings
9273
+ */
9274
+ DotnetSettings.fromObject = function fromObject(object) {
9275
+ if (object instanceof $root.google.api.DotnetSettings)
9276
+ return object;
9277
+ var message = new $root.google.api.DotnetSettings();
9278
+ if (object.common != null) {
9279
+ if (typeof object.common !== "object")
9280
+ throw TypeError(".google.api.DotnetSettings.common: object expected");
9281
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
9282
+ }
9283
+ return message;
9284
+ };
9285
+
9286
+ /**
9287
+ * Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
9288
+ * @function toObject
9289
+ * @memberof google.api.DotnetSettings
9290
+ * @static
9291
+ * @param {google.api.DotnetSettings} message DotnetSettings
9292
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9293
+ * @returns {Object.<string,*>} Plain object
9294
+ */
9295
+ DotnetSettings.toObject = function toObject(message, options) {
9296
+ if (!options)
9297
+ options = {};
9298
+ var object = {};
9299
+ if (options.defaults)
9300
+ object.common = null;
9301
+ if (message.common != null && message.hasOwnProperty("common"))
9302
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
9303
+ return object;
9304
+ };
9305
+
9306
+ /**
9307
+ * Converts this DotnetSettings to JSON.
9308
+ * @function toJSON
9309
+ * @memberof google.api.DotnetSettings
9310
+ * @instance
9311
+ * @returns {Object.<string,*>} JSON object
9312
+ */
9313
+ DotnetSettings.prototype.toJSON = function toJSON() {
9314
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9315
+ };
9316
+
9317
+ /**
9318
+ * Gets the default type url for DotnetSettings
9319
+ * @function getTypeUrl
9320
+ * @memberof google.api.DotnetSettings
9321
+ * @static
9322
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9323
+ * @returns {string} The default type url
9324
+ */
9325
+ DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9326
+ if (typeUrlPrefix === undefined) {
9327
+ typeUrlPrefix = "type.googleapis.com";
9328
+ }
9329
+ return typeUrlPrefix + "/google.api.DotnetSettings";
9330
+ };
9331
+
9332
+ return DotnetSettings;
9333
+ })();
9334
+
9335
+ api.RubySettings = (function() {
9336
+
9337
+ /**
9338
+ * Properties of a RubySettings.
9339
+ * @memberof google.api
9340
+ * @interface IRubySettings
9341
+ * @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
9342
+ */
9343
+
9344
+ /**
9345
+ * Constructs a new RubySettings.
9346
+ * @memberof google.api
9347
+ * @classdesc Represents a RubySettings.
9348
+ * @implements IRubySettings
9349
+ * @constructor
9350
+ * @param {google.api.IRubySettings=} [properties] Properties to set
9351
+ */
9352
+ function RubySettings(properties) {
9353
+ if (properties)
9354
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9355
+ if (properties[keys[i]] != null)
9356
+ this[keys[i]] = properties[keys[i]];
9357
+ }
9358
+
9359
+ /**
9360
+ * RubySettings common.
9361
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
9362
+ * @memberof google.api.RubySettings
9363
+ * @instance
9364
+ */
9365
+ RubySettings.prototype.common = null;
9366
+
9367
+ /**
9368
+ * Creates a new RubySettings instance using the specified properties.
9369
+ * @function create
9370
+ * @memberof google.api.RubySettings
9371
+ * @static
9372
+ * @param {google.api.IRubySettings=} [properties] Properties to set
9373
+ * @returns {google.api.RubySettings} RubySettings instance
9374
+ */
9375
+ RubySettings.create = function create(properties) {
9376
+ return new RubySettings(properties);
9377
+ };
9378
+
9379
+ /**
9380
+ * Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
9381
+ * @function encode
9382
+ * @memberof google.api.RubySettings
9383
+ * @static
9384
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
9385
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9386
+ * @returns {$protobuf.Writer} Writer
9387
+ */
9388
+ RubySettings.encode = function encode(message, writer) {
9389
+ if (!writer)
9390
+ writer = $Writer.create();
9391
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
9392
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9393
+ return writer;
9394
+ };
9395
+
9396
+ /**
9397
+ * Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
9398
+ * @function encodeDelimited
9399
+ * @memberof google.api.RubySettings
9400
+ * @static
9401
+ * @param {google.api.IRubySettings} message RubySettings message or plain object to encode
9402
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9403
+ * @returns {$protobuf.Writer} Writer
9404
+ */
9405
+ RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
9406
+ return this.encode(message, writer).ldelim();
9407
+ };
9408
+
9409
+ /**
9410
+ * Decodes a RubySettings message from the specified reader or buffer.
9411
+ * @function decode
9412
+ * @memberof google.api.RubySettings
9413
+ * @static
9414
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9415
+ * @param {number} [length] Message length if known beforehand
9416
+ * @returns {google.api.RubySettings} RubySettings
9417
+ * @throws {Error} If the payload is not a reader or valid buffer
9418
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9419
+ */
9420
+ RubySettings.decode = function decode(reader, length) {
9421
+ if (!(reader instanceof $Reader))
9422
+ reader = $Reader.create(reader);
9423
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
9424
+ while (reader.pos < end) {
9425
+ var tag = reader.uint32();
9426
+ switch (tag >>> 3) {
9427
+ case 1: {
9428
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
9429
+ break;
9430
+ }
9431
+ default:
9432
+ reader.skipType(tag & 7);
9433
+ break;
9434
+ }
9435
+ }
9436
+ return message;
9437
+ };
9438
+
9439
+ /**
9440
+ * Decodes a RubySettings message from the specified reader or buffer, length delimited.
9441
+ * @function decodeDelimited
9442
+ * @memberof google.api.RubySettings
9443
+ * @static
9444
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9445
+ * @returns {google.api.RubySettings} RubySettings
9446
+ * @throws {Error} If the payload is not a reader or valid buffer
9447
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9448
+ */
9449
+ RubySettings.decodeDelimited = function decodeDelimited(reader) {
9450
+ if (!(reader instanceof $Reader))
9451
+ reader = new $Reader(reader);
9452
+ return this.decode(reader, reader.uint32());
9453
+ };
9454
+
9455
+ /**
9456
+ * Verifies a RubySettings message.
9457
+ * @function verify
9458
+ * @memberof google.api.RubySettings
9459
+ * @static
9460
+ * @param {Object.<string,*>} message Plain object to verify
9461
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9462
+ */
9463
+ RubySettings.verify = function verify(message) {
9464
+ if (typeof message !== "object" || message === null)
9465
+ return "object expected";
9466
+ if (message.common != null && message.hasOwnProperty("common")) {
9467
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
9468
+ if (error)
9469
+ return "common." + error;
9470
+ }
9471
+ return null;
9472
+ };
9473
+
9474
+ /**
9475
+ * Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
9476
+ * @function fromObject
9477
+ * @memberof google.api.RubySettings
9478
+ * @static
9479
+ * @param {Object.<string,*>} object Plain object
9480
+ * @returns {google.api.RubySettings} RubySettings
9481
+ */
9482
+ RubySettings.fromObject = function fromObject(object) {
9483
+ if (object instanceof $root.google.api.RubySettings)
9484
+ return object;
9485
+ var message = new $root.google.api.RubySettings();
9486
+ if (object.common != null) {
9487
+ if (typeof object.common !== "object")
9488
+ throw TypeError(".google.api.RubySettings.common: object expected");
9489
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
9490
+ }
9491
+ return message;
9492
+ };
9493
+
9494
+ /**
9495
+ * Creates a plain object from a RubySettings message. Also converts values to other types if specified.
9496
+ * @function toObject
9497
+ * @memberof google.api.RubySettings
9498
+ * @static
9499
+ * @param {google.api.RubySettings} message RubySettings
9500
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9501
+ * @returns {Object.<string,*>} Plain object
9502
+ */
9503
+ RubySettings.toObject = function toObject(message, options) {
9504
+ if (!options)
9505
+ options = {};
9506
+ var object = {};
9507
+ if (options.defaults)
9508
+ object.common = null;
9509
+ if (message.common != null && message.hasOwnProperty("common"))
9510
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
9511
+ return object;
9512
+ };
9513
+
9514
+ /**
9515
+ * Converts this RubySettings to JSON.
9516
+ * @function toJSON
9517
+ * @memberof google.api.RubySettings
9518
+ * @instance
9519
+ * @returns {Object.<string,*>} JSON object
9520
+ */
9521
+ RubySettings.prototype.toJSON = function toJSON() {
9522
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9523
+ };
9524
+
9525
+ /**
9526
+ * Gets the default type url for RubySettings
9527
+ * @function getTypeUrl
9528
+ * @memberof google.api.RubySettings
9529
+ * @static
9530
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9531
+ * @returns {string} The default type url
9532
+ */
9533
+ RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9534
+ if (typeUrlPrefix === undefined) {
9535
+ typeUrlPrefix = "type.googleapis.com";
9536
+ }
9537
+ return typeUrlPrefix + "/google.api.RubySettings";
9538
+ };
9539
+
9540
+ return RubySettings;
9541
+ })();
9542
+
9543
+ api.GoSettings = (function() {
9544
+
9545
+ /**
9546
+ * Properties of a GoSettings.
9547
+ * @memberof google.api
9548
+ * @interface IGoSettings
9549
+ * @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
9550
+ */
9551
+
9552
+ /**
9553
+ * Constructs a new GoSettings.
9554
+ * @memberof google.api
9555
+ * @classdesc Represents a GoSettings.
9556
+ * @implements IGoSettings
9557
+ * @constructor
9558
+ * @param {google.api.IGoSettings=} [properties] Properties to set
9559
+ */
9560
+ function GoSettings(properties) {
9561
+ if (properties)
9562
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9563
+ if (properties[keys[i]] != null)
9564
+ this[keys[i]] = properties[keys[i]];
9565
+ }
9566
+
9567
+ /**
9568
+ * GoSettings common.
9569
+ * @member {google.api.ICommonLanguageSettings|null|undefined} common
9570
+ * @memberof google.api.GoSettings
9571
+ * @instance
9572
+ */
9573
+ GoSettings.prototype.common = null;
9574
+
9575
+ /**
9576
+ * Creates a new GoSettings instance using the specified properties.
9577
+ * @function create
9578
+ * @memberof google.api.GoSettings
9579
+ * @static
9580
+ * @param {google.api.IGoSettings=} [properties] Properties to set
9581
+ * @returns {google.api.GoSettings} GoSettings instance
9582
+ */
9583
+ GoSettings.create = function create(properties) {
9584
+ return new GoSettings(properties);
9585
+ };
9586
+
9587
+ /**
9588
+ * Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
9589
+ * @function encode
9590
+ * @memberof google.api.GoSettings
9591
+ * @static
9592
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
9593
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9594
+ * @returns {$protobuf.Writer} Writer
9595
+ */
9596
+ GoSettings.encode = function encode(message, writer) {
9597
+ if (!writer)
9598
+ writer = $Writer.create();
9599
+ if (message.common != null && Object.hasOwnProperty.call(message, "common"))
9600
+ $root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9601
+ return writer;
9602
+ };
9603
+
9604
+ /**
9605
+ * Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
9606
+ * @function encodeDelimited
9607
+ * @memberof google.api.GoSettings
9608
+ * @static
9609
+ * @param {google.api.IGoSettings} message GoSettings message or plain object to encode
9610
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9611
+ * @returns {$protobuf.Writer} Writer
9612
+ */
9613
+ GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
9614
+ return this.encode(message, writer).ldelim();
9615
+ };
9616
+
9617
+ /**
9618
+ * Decodes a GoSettings message from the specified reader or buffer.
9619
+ * @function decode
9620
+ * @memberof google.api.GoSettings
9621
+ * @static
9622
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9623
+ * @param {number} [length] Message length if known beforehand
9624
+ * @returns {google.api.GoSettings} GoSettings
9625
+ * @throws {Error} If the payload is not a reader or valid buffer
9626
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9627
+ */
9628
+ GoSettings.decode = function decode(reader, length) {
9629
+ if (!(reader instanceof $Reader))
9630
+ reader = $Reader.create(reader);
9631
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
9632
+ while (reader.pos < end) {
9633
+ var tag = reader.uint32();
9634
+ switch (tag >>> 3) {
9635
+ case 1: {
9636
+ message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
9637
+ break;
9638
+ }
9639
+ default:
9640
+ reader.skipType(tag & 7);
9641
+ break;
9642
+ }
9643
+ }
9644
+ return message;
9645
+ };
9646
+
9647
+ /**
9648
+ * Decodes a GoSettings message from the specified reader or buffer, length delimited.
9649
+ * @function decodeDelimited
9650
+ * @memberof google.api.GoSettings
9651
+ * @static
9652
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9653
+ * @returns {google.api.GoSettings} GoSettings
9654
+ * @throws {Error} If the payload is not a reader or valid buffer
9655
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9656
+ */
9657
+ GoSettings.decodeDelimited = function decodeDelimited(reader) {
9658
+ if (!(reader instanceof $Reader))
9659
+ reader = new $Reader(reader);
9660
+ return this.decode(reader, reader.uint32());
9661
+ };
9662
+
9663
+ /**
9664
+ * Verifies a GoSettings message.
9665
+ * @function verify
9666
+ * @memberof google.api.GoSettings
9667
+ * @static
9668
+ * @param {Object.<string,*>} message Plain object to verify
9669
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9670
+ */
9671
+ GoSettings.verify = function verify(message) {
9672
+ if (typeof message !== "object" || message === null)
9673
+ return "object expected";
9674
+ if (message.common != null && message.hasOwnProperty("common")) {
9675
+ var error = $root.google.api.CommonLanguageSettings.verify(message.common);
9676
+ if (error)
9677
+ return "common." + error;
9678
+ }
9679
+ return null;
9680
+ };
9681
+
9682
+ /**
9683
+ * Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
9684
+ * @function fromObject
9685
+ * @memberof google.api.GoSettings
9686
+ * @static
9687
+ * @param {Object.<string,*>} object Plain object
9688
+ * @returns {google.api.GoSettings} GoSettings
9689
+ */
9690
+ GoSettings.fromObject = function fromObject(object) {
9691
+ if (object instanceof $root.google.api.GoSettings)
9692
+ return object;
9693
+ var message = new $root.google.api.GoSettings();
9694
+ if (object.common != null) {
9695
+ if (typeof object.common !== "object")
9696
+ throw TypeError(".google.api.GoSettings.common: object expected");
9697
+ message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
9698
+ }
9699
+ return message;
9700
+ };
9701
+
9702
+ /**
9703
+ * Creates a plain object from a GoSettings message. Also converts values to other types if specified.
9704
+ * @function toObject
9705
+ * @memberof google.api.GoSettings
9706
+ * @static
9707
+ * @param {google.api.GoSettings} message GoSettings
9708
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9709
+ * @returns {Object.<string,*>} Plain object
9710
+ */
9711
+ GoSettings.toObject = function toObject(message, options) {
9712
+ if (!options)
9713
+ options = {};
9714
+ var object = {};
9715
+ if (options.defaults)
9716
+ object.common = null;
9717
+ if (message.common != null && message.hasOwnProperty("common"))
9718
+ object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
9719
+ return object;
9720
+ };
9721
+
9722
+ /**
9723
+ * Converts this GoSettings to JSON.
9724
+ * @function toJSON
9725
+ * @memberof google.api.GoSettings
9726
+ * @instance
9727
+ * @returns {Object.<string,*>} JSON object
9728
+ */
9729
+ GoSettings.prototype.toJSON = function toJSON() {
9730
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9731
+ };
9732
+
9733
+ /**
9734
+ * Gets the default type url for GoSettings
9735
+ * @function getTypeUrl
9736
+ * @memberof google.api.GoSettings
9737
+ * @static
9738
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9739
+ * @returns {string} The default type url
9740
+ */
9741
+ GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9742
+ if (typeUrlPrefix === undefined) {
9743
+ typeUrlPrefix = "type.googleapis.com";
9744
+ }
9745
+ return typeUrlPrefix + "/google.api.GoSettings";
9746
+ };
9747
+
9748
+ return GoSettings;
9749
+ })();
9750
+
9751
+ api.MethodSettings = (function() {
9752
+
9753
+ /**
9754
+ * Properties of a MethodSettings.
9755
+ * @memberof google.api
9756
+ * @interface IMethodSettings
9757
+ * @property {string|null} [selector] MethodSettings selector
9758
+ * @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
9759
+ */
9760
+
9761
+ /**
9762
+ * Constructs a new MethodSettings.
9763
+ * @memberof google.api
9764
+ * @classdesc Represents a MethodSettings.
9765
+ * @implements IMethodSettings
9766
+ * @constructor
9767
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
9768
+ */
9769
+ function MethodSettings(properties) {
9770
+ if (properties)
9771
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9772
+ if (properties[keys[i]] != null)
9773
+ this[keys[i]] = properties[keys[i]];
9774
+ }
9775
+
9776
+ /**
9777
+ * MethodSettings selector.
9778
+ * @member {string} selector
9779
+ * @memberof google.api.MethodSettings
9780
+ * @instance
9781
+ */
9782
+ MethodSettings.prototype.selector = "";
9783
+
9784
+ /**
9785
+ * MethodSettings longRunning.
9786
+ * @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
9787
+ * @memberof google.api.MethodSettings
9788
+ * @instance
9789
+ */
9790
+ MethodSettings.prototype.longRunning = null;
9791
+
9792
+ /**
9793
+ * Creates a new MethodSettings instance using the specified properties.
9794
+ * @function create
9795
+ * @memberof google.api.MethodSettings
9796
+ * @static
9797
+ * @param {google.api.IMethodSettings=} [properties] Properties to set
9798
+ * @returns {google.api.MethodSettings} MethodSettings instance
9799
+ */
9800
+ MethodSettings.create = function create(properties) {
9801
+ return new MethodSettings(properties);
9802
+ };
9803
+
9804
+ /**
9805
+ * Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
9806
+ * @function encode
9807
+ * @memberof google.api.MethodSettings
9808
+ * @static
9809
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
9810
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9811
+ * @returns {$protobuf.Writer} Writer
9812
+ */
9813
+ MethodSettings.encode = function encode(message, writer) {
9814
+ if (!writer)
9815
+ writer = $Writer.create();
9816
+ if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
9817
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
9818
+ if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
9819
+ $root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
9820
+ return writer;
9821
+ };
9822
+
9823
+ /**
9824
+ * Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
9825
+ * @function encodeDelimited
9826
+ * @memberof google.api.MethodSettings
9827
+ * @static
9828
+ * @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
9829
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9830
+ * @returns {$protobuf.Writer} Writer
9831
+ */
9832
+ MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
9833
+ return this.encode(message, writer).ldelim();
9834
+ };
9835
+
9836
+ /**
9837
+ * Decodes a MethodSettings message from the specified reader or buffer.
9838
+ * @function decode
9839
+ * @memberof google.api.MethodSettings
9840
+ * @static
9841
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9842
+ * @param {number} [length] Message length if known beforehand
9843
+ * @returns {google.api.MethodSettings} MethodSettings
9844
+ * @throws {Error} If the payload is not a reader or valid buffer
9845
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9846
+ */
9847
+ MethodSettings.decode = function decode(reader, length) {
9848
+ if (!(reader instanceof $Reader))
9849
+ reader = $Reader.create(reader);
9850
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
9851
+ while (reader.pos < end) {
9852
+ var tag = reader.uint32();
9853
+ switch (tag >>> 3) {
9854
+ case 1: {
9855
+ message.selector = reader.string();
9856
+ break;
9857
+ }
9858
+ case 2: {
9859
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
9860
+ break;
9861
+ }
9862
+ default:
9863
+ reader.skipType(tag & 7);
9864
+ break;
9865
+ }
9866
+ }
9867
+ return message;
9868
+ };
9869
+
9870
+ /**
9871
+ * Decodes a MethodSettings message from the specified reader or buffer, length delimited.
9872
+ * @function decodeDelimited
9873
+ * @memberof google.api.MethodSettings
9874
+ * @static
9875
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9876
+ * @returns {google.api.MethodSettings} MethodSettings
9877
+ * @throws {Error} If the payload is not a reader or valid buffer
9878
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9879
+ */
9880
+ MethodSettings.decodeDelimited = function decodeDelimited(reader) {
9881
+ if (!(reader instanceof $Reader))
9882
+ reader = new $Reader(reader);
9883
+ return this.decode(reader, reader.uint32());
9884
+ };
9885
+
9886
+ /**
9887
+ * Verifies a MethodSettings message.
9888
+ * @function verify
9889
+ * @memberof google.api.MethodSettings
9890
+ * @static
9891
+ * @param {Object.<string,*>} message Plain object to verify
9892
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9893
+ */
9894
+ MethodSettings.verify = function verify(message) {
9895
+ if (typeof message !== "object" || message === null)
9896
+ return "object expected";
9897
+ if (message.selector != null && message.hasOwnProperty("selector"))
9898
+ if (!$util.isString(message.selector))
9899
+ return "selector: string expected";
9900
+ if (message.longRunning != null && message.hasOwnProperty("longRunning")) {
9901
+ var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
9902
+ if (error)
9903
+ return "longRunning." + error;
9904
+ }
9905
+ return null;
9906
+ };
9907
+
9908
+ /**
9909
+ * Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
9910
+ * @function fromObject
9911
+ * @memberof google.api.MethodSettings
9912
+ * @static
9913
+ * @param {Object.<string,*>} object Plain object
9914
+ * @returns {google.api.MethodSettings} MethodSettings
9915
+ */
9916
+ MethodSettings.fromObject = function fromObject(object) {
9917
+ if (object instanceof $root.google.api.MethodSettings)
9918
+ return object;
9919
+ var message = new $root.google.api.MethodSettings();
9920
+ if (object.selector != null)
9921
+ message.selector = String(object.selector);
9922
+ if (object.longRunning != null) {
9923
+ if (typeof object.longRunning !== "object")
9924
+ throw TypeError(".google.api.MethodSettings.longRunning: object expected");
9925
+ message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
9926
+ }
9927
+ return message;
9928
+ };
9929
+
9930
+ /**
9931
+ * Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
9932
+ * @function toObject
9933
+ * @memberof google.api.MethodSettings
9934
+ * @static
9935
+ * @param {google.api.MethodSettings} message MethodSettings
9936
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9937
+ * @returns {Object.<string,*>} Plain object
9938
+ */
9939
+ MethodSettings.toObject = function toObject(message, options) {
9940
+ if (!options)
9941
+ options = {};
9942
+ var object = {};
9943
+ if (options.defaults) {
9944
+ object.selector = "";
9945
+ object.longRunning = null;
9946
+ }
9947
+ if (message.selector != null && message.hasOwnProperty("selector"))
9948
+ object.selector = message.selector;
9949
+ if (message.longRunning != null && message.hasOwnProperty("longRunning"))
9950
+ object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
9951
+ return object;
9952
+ };
9953
+
9954
+ /**
9955
+ * Converts this MethodSettings to JSON.
9956
+ * @function toJSON
9957
+ * @memberof google.api.MethodSettings
9958
+ * @instance
9959
+ * @returns {Object.<string,*>} JSON object
9960
+ */
9961
+ MethodSettings.prototype.toJSON = function toJSON() {
9962
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9963
+ };
9964
+
9965
+ /**
9966
+ * Gets the default type url for MethodSettings
9967
+ * @function getTypeUrl
9968
+ * @memberof google.api.MethodSettings
9969
+ * @static
9970
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9971
+ * @returns {string} The default type url
9972
+ */
9973
+ MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9974
+ if (typeUrlPrefix === undefined) {
9975
+ typeUrlPrefix = "type.googleapis.com";
9976
+ }
9977
+ return typeUrlPrefix + "/google.api.MethodSettings";
9978
+ };
9979
+
9980
+ MethodSettings.LongRunning = (function() {
9981
+
9982
+ /**
9983
+ * Properties of a LongRunning.
9984
+ * @memberof google.api.MethodSettings
9985
+ * @interface ILongRunning
9986
+ * @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
9987
+ * @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
9988
+ * @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
9989
+ * @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
9990
+ */
9991
+
9992
+ /**
9993
+ * Constructs a new LongRunning.
9994
+ * @memberof google.api.MethodSettings
9995
+ * @classdesc Represents a LongRunning.
9996
+ * @implements ILongRunning
9997
+ * @constructor
9998
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
9999
+ */
10000
+ function LongRunning(properties) {
10001
+ if (properties)
10002
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10003
+ if (properties[keys[i]] != null)
10004
+ this[keys[i]] = properties[keys[i]];
10005
+ }
10006
+
10007
+ /**
10008
+ * LongRunning initialPollDelay.
10009
+ * @member {google.protobuf.IDuration|null|undefined} initialPollDelay
10010
+ * @memberof google.api.MethodSettings.LongRunning
10011
+ * @instance
10012
+ */
10013
+ LongRunning.prototype.initialPollDelay = null;
10014
+
10015
+ /**
10016
+ * LongRunning pollDelayMultiplier.
10017
+ * @member {number} pollDelayMultiplier
10018
+ * @memberof google.api.MethodSettings.LongRunning
10019
+ * @instance
10020
+ */
10021
+ LongRunning.prototype.pollDelayMultiplier = 0;
10022
+
10023
+ /**
10024
+ * LongRunning maxPollDelay.
10025
+ * @member {google.protobuf.IDuration|null|undefined} maxPollDelay
10026
+ * @memberof google.api.MethodSettings.LongRunning
10027
+ * @instance
10028
+ */
10029
+ LongRunning.prototype.maxPollDelay = null;
10030
+
10031
+ /**
10032
+ * LongRunning totalPollTimeout.
10033
+ * @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
10034
+ * @memberof google.api.MethodSettings.LongRunning
10035
+ * @instance
10036
+ */
10037
+ LongRunning.prototype.totalPollTimeout = null;
10038
+
10039
+ /**
10040
+ * Creates a new LongRunning instance using the specified properties.
10041
+ * @function create
10042
+ * @memberof google.api.MethodSettings.LongRunning
10043
+ * @static
10044
+ * @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
10045
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning instance
10046
+ */
10047
+ LongRunning.create = function create(properties) {
10048
+ return new LongRunning(properties);
10049
+ };
10050
+
10051
+ /**
10052
+ * Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
10053
+ * @function encode
10054
+ * @memberof google.api.MethodSettings.LongRunning
10055
+ * @static
10056
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
10057
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10058
+ * @returns {$protobuf.Writer} Writer
10059
+ */
10060
+ LongRunning.encode = function encode(message, writer) {
10061
+ if (!writer)
10062
+ writer = $Writer.create();
10063
+ if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
10064
+ $root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
10065
+ if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
10066
+ writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
10067
+ if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
10068
+ $root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
10069
+ if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
10070
+ $root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
10071
+ return writer;
10072
+ };
10073
+
10074
+ /**
10075
+ * Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
10076
+ * @function encodeDelimited
10077
+ * @memberof google.api.MethodSettings.LongRunning
10078
+ * @static
10079
+ * @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
10080
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10081
+ * @returns {$protobuf.Writer} Writer
10082
+ */
10083
+ LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
10084
+ return this.encode(message, writer).ldelim();
10085
+ };
10086
+
10087
+ /**
10088
+ * Decodes a LongRunning message from the specified reader or buffer.
10089
+ * @function decode
10090
+ * @memberof google.api.MethodSettings.LongRunning
10091
+ * @static
10092
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10093
+ * @param {number} [length] Message length if known beforehand
10094
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
10095
+ * @throws {Error} If the payload is not a reader or valid buffer
10096
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10097
+ */
10098
+ LongRunning.decode = function decode(reader, length) {
10099
+ if (!(reader instanceof $Reader))
10100
+ reader = $Reader.create(reader);
10101
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
10102
+ while (reader.pos < end) {
10103
+ var tag = reader.uint32();
10104
+ switch (tag >>> 3) {
10105
+ case 1: {
10106
+ message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
10107
+ break;
10108
+ }
10109
+ case 2: {
10110
+ message.pollDelayMultiplier = reader.float();
10111
+ break;
10112
+ }
10113
+ case 3: {
10114
+ message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
10115
+ break;
10116
+ }
10117
+ case 4: {
10118
+ message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
10119
+ break;
10120
+ }
10121
+ default:
10122
+ reader.skipType(tag & 7);
10123
+ break;
10124
+ }
10125
+ }
10126
+ return message;
10127
+ };
10128
+
10129
+ /**
10130
+ * Decodes a LongRunning message from the specified reader or buffer, length delimited.
10131
+ * @function decodeDelimited
10132
+ * @memberof google.api.MethodSettings.LongRunning
10133
+ * @static
10134
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10135
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
10136
+ * @throws {Error} If the payload is not a reader or valid buffer
10137
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10138
+ */
10139
+ LongRunning.decodeDelimited = function decodeDelimited(reader) {
10140
+ if (!(reader instanceof $Reader))
10141
+ reader = new $Reader(reader);
10142
+ return this.decode(reader, reader.uint32());
10143
+ };
10144
+
10145
+ /**
10146
+ * Verifies a LongRunning message.
10147
+ * @function verify
10148
+ * @memberof google.api.MethodSettings.LongRunning
10149
+ * @static
10150
+ * @param {Object.<string,*>} message Plain object to verify
10151
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10152
+ */
10153
+ LongRunning.verify = function verify(message) {
10154
+ if (typeof message !== "object" || message === null)
10155
+ return "object expected";
10156
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
10157
+ var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
10158
+ if (error)
10159
+ return "initialPollDelay." + error;
10160
+ }
10161
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
10162
+ if (typeof message.pollDelayMultiplier !== "number")
10163
+ return "pollDelayMultiplier: number expected";
10164
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
10165
+ var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
10166
+ if (error)
10167
+ return "maxPollDelay." + error;
10168
+ }
10169
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
10170
+ var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
10171
+ if (error)
10172
+ return "totalPollTimeout." + error;
10173
+ }
10174
+ return null;
10175
+ };
10176
+
10177
+ /**
10178
+ * Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
10179
+ * @function fromObject
10180
+ * @memberof google.api.MethodSettings.LongRunning
10181
+ * @static
10182
+ * @param {Object.<string,*>} object Plain object
10183
+ * @returns {google.api.MethodSettings.LongRunning} LongRunning
10184
+ */
10185
+ LongRunning.fromObject = function fromObject(object) {
10186
+ if (object instanceof $root.google.api.MethodSettings.LongRunning)
10187
+ return object;
10188
+ var message = new $root.google.api.MethodSettings.LongRunning();
10189
+ if (object.initialPollDelay != null) {
10190
+ if (typeof object.initialPollDelay !== "object")
10191
+ throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
10192
+ message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay);
10193
+ }
10194
+ if (object.pollDelayMultiplier != null)
10195
+ message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
10196
+ if (object.maxPollDelay != null) {
10197
+ if (typeof object.maxPollDelay !== "object")
10198
+ throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
10199
+ message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay);
10200
+ }
10201
+ if (object.totalPollTimeout != null) {
10202
+ if (typeof object.totalPollTimeout !== "object")
10203
+ throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
10204
+ message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout);
10205
+ }
10206
+ return message;
10207
+ };
10208
+
10209
+ /**
10210
+ * Creates a plain object from a LongRunning message. Also converts values to other types if specified.
10211
+ * @function toObject
10212
+ * @memberof google.api.MethodSettings.LongRunning
10213
+ * @static
10214
+ * @param {google.api.MethodSettings.LongRunning} message LongRunning
10215
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10216
+ * @returns {Object.<string,*>} Plain object
10217
+ */
10218
+ LongRunning.toObject = function toObject(message, options) {
10219
+ if (!options)
10220
+ options = {};
10221
+ var object = {};
10222
+ if (options.defaults) {
10223
+ object.initialPollDelay = null;
10224
+ object.pollDelayMultiplier = 0;
10225
+ object.maxPollDelay = null;
10226
+ object.totalPollTimeout = null;
10227
+ }
10228
+ if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay"))
10229
+ object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options);
10230
+ if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
10231
+ object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
10232
+ if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay"))
10233
+ object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options);
10234
+ if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout"))
10235
+ object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options);
10236
+ return object;
10237
+ };
10238
+
10239
+ /**
10240
+ * Converts this LongRunning to JSON.
10241
+ * @function toJSON
10242
+ * @memberof google.api.MethodSettings.LongRunning
10243
+ * @instance
10244
+ * @returns {Object.<string,*>} JSON object
10245
+ */
10246
+ LongRunning.prototype.toJSON = function toJSON() {
10247
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10248
+ };
10249
+
10250
+ /**
10251
+ * Gets the default type url for LongRunning
10252
+ * @function getTypeUrl
10253
+ * @memberof google.api.MethodSettings.LongRunning
10254
+ * @static
10255
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10256
+ * @returns {string} The default type url
10257
+ */
10258
+ LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10259
+ if (typeUrlPrefix === undefined) {
10260
+ typeUrlPrefix = "type.googleapis.com";
10261
+ }
10262
+ return typeUrlPrefix + "/google.api.MethodSettings.LongRunning";
10263
+ };
10264
+
10265
+ return LongRunning;
10266
+ })();
10267
+
10268
+ return MethodSettings;
10269
+ })();
10270
+
10271
+ /**
10272
+ * ClientLibraryOrganization enum.
10273
+ * @name google.api.ClientLibraryOrganization
10274
+ * @enum {number}
10275
+ * @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value
10276
+ * @property {number} CLOUD=1 CLOUD value
10277
+ * @property {number} ADS=2 ADS value
10278
+ * @property {number} PHOTOS=3 PHOTOS value
10279
+ * @property {number} STREET_VIEW=4 STREET_VIEW value
10280
+ */
10281
+ api.ClientLibraryOrganization = (function() {
10282
+ var valuesById = {}, values = Object.create(valuesById);
10283
+ values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0;
10284
+ values[valuesById[1] = "CLOUD"] = 1;
10285
+ values[valuesById[2] = "ADS"] = 2;
10286
+ values[valuesById[3] = "PHOTOS"] = 3;
10287
+ values[valuesById[4] = "STREET_VIEW"] = 4;
10288
+ return values;
10289
+ })();
10290
+
10291
+ /**
10292
+ * ClientLibraryDestination enum.
10293
+ * @name google.api.ClientLibraryDestination
10294
+ * @enum {number}
10295
+ * @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value
10296
+ * @property {number} GITHUB=10 GITHUB value
10297
+ * @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value
10298
+ */
10299
+ api.ClientLibraryDestination = (function() {
10300
+ var valuesById = {}, values = Object.create(valuesById);
10301
+ values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0;
10302
+ values[valuesById[10] = "GITHUB"] = 10;
10303
+ values[valuesById[20] = "PACKAGE_MANAGER"] = 20;
10304
+ return values;
10305
+ })();
10306
+
10307
+ /**
10308
+ * LaunchStage enum.
10309
+ * @name google.api.LaunchStage
10310
+ * @enum {number}
10311
+ * @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
10312
+ * @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
10313
+ * @property {number} PRELAUNCH=7 PRELAUNCH value
10314
+ * @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
10315
+ * @property {number} ALPHA=2 ALPHA value
10316
+ * @property {number} BETA=3 BETA value
10317
+ * @property {number} GA=4 GA value
10318
+ * @property {number} DEPRECATED=5 DEPRECATED value
10319
+ */
10320
+ api.LaunchStage = (function() {
10321
+ var valuesById = {}, values = Object.create(valuesById);
10322
+ values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
10323
+ values[valuesById[6] = "UNIMPLEMENTED"] = 6;
10324
+ values[valuesById[7] = "PRELAUNCH"] = 7;
10325
+ values[valuesById[1] = "EARLY_ACCESS"] = 1;
10326
+ values[valuesById[2] = "ALPHA"] = 2;
10327
+ values[valuesById[3] = "BETA"] = 3;
10328
+ values[valuesById[4] = "GA"] = 4;
10329
+ values[valuesById[5] = "DEPRECATED"] = 5;
10330
+ return values;
10331
+ })();
10332
+
6724
10333
  return api;
6725
10334
  })();
6726
10335
 
@@ -11959,6 +15568,7 @@
11959
15568
  * @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor
11960
15569
  * @property {boolean|null} [deprecated] MessageOptions deprecated
11961
15570
  * @property {boolean|null} [mapEntry] MessageOptions mapEntry
15571
+ * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
11962
15572
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption
11963
15573
  * @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource
11964
15574
  */
@@ -12011,6 +15621,14 @@
12011
15621
  */
12012
15622
  MessageOptions.prototype.mapEntry = false;
12013
15623
 
15624
+ /**
15625
+ * MessageOptions deprecatedLegacyJsonFieldConflicts.
15626
+ * @member {boolean} deprecatedLegacyJsonFieldConflicts
15627
+ * @memberof google.protobuf.MessageOptions
15628
+ * @instance
15629
+ */
15630
+ MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
15631
+
12014
15632
  /**
12015
15633
  * MessageOptions uninterpretedOption.
12016
15634
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -12059,6 +15677,8 @@
12059
15677
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
12060
15678
  if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry"))
12061
15679
  writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
15680
+ if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
15681
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
12062
15682
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
12063
15683
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
12064
15684
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -12114,6 +15734,10 @@
12114
15734
  message.mapEntry = reader.bool();
12115
15735
  break;
12116
15736
  }
15737
+ case 11: {
15738
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
15739
+ break;
15740
+ }
12117
15741
  case 999: {
12118
15742
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
12119
15743
  message.uninterpretedOption = [];
@@ -12171,6 +15795,9 @@
12171
15795
  if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
12172
15796
  if (typeof message.mapEntry !== "boolean")
12173
15797
  return "mapEntry: boolean expected";
15798
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
15799
+ if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
15800
+ return "deprecatedLegacyJsonFieldConflicts: boolean expected";
12174
15801
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
12175
15802
  if (!Array.isArray(message.uninterpretedOption))
12176
15803
  return "uninterpretedOption: array expected";
@@ -12208,6 +15835,8 @@
12208
15835
  message.deprecated = Boolean(object.deprecated);
12209
15836
  if (object.mapEntry != null)
12210
15837
  message.mapEntry = Boolean(object.mapEntry);
15838
+ if (object.deprecatedLegacyJsonFieldConflicts != null)
15839
+ message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
12211
15840
  if (object.uninterpretedOption) {
12212
15841
  if (!Array.isArray(object.uninterpretedOption))
12213
15842
  throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
@@ -12246,6 +15875,7 @@
12246
15875
  object.noStandardDescriptorAccessor = false;
12247
15876
  object.deprecated = false;
12248
15877
  object.mapEntry = false;
15878
+ object.deprecatedLegacyJsonFieldConflicts = false;
12249
15879
  object[".google.api.resource"] = null;
12250
15880
  }
12251
15881
  if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
@@ -12256,6 +15886,8 @@
12256
15886
  object.deprecated = message.deprecated;
12257
15887
  if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
12258
15888
  object.mapEntry = message.mapEntry;
15889
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
15890
+ object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
12259
15891
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
12260
15892
  object.uninterpretedOption = [];
12261
15893
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -12308,6 +15940,9 @@
12308
15940
  * @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy
12309
15941
  * @property {boolean|null} [deprecated] FieldOptions deprecated
12310
15942
  * @property {boolean|null} [weak] FieldOptions weak
15943
+ * @property {boolean|null} [debugRedact] FieldOptions debugRedact
15944
+ * @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
15945
+ * @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target
12311
15946
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
12312
15947
  * @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
12313
15948
  * @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
@@ -12386,6 +16021,30 @@
12386
16021
  */
12387
16022
  FieldOptions.prototype.weak = false;
12388
16023
 
16024
+ /**
16025
+ * FieldOptions debugRedact.
16026
+ * @member {boolean} debugRedact
16027
+ * @memberof google.protobuf.FieldOptions
16028
+ * @instance
16029
+ */
16030
+ FieldOptions.prototype.debugRedact = false;
16031
+
16032
+ /**
16033
+ * FieldOptions retention.
16034
+ * @member {google.protobuf.FieldOptions.OptionRetention} retention
16035
+ * @memberof google.protobuf.FieldOptions
16036
+ * @instance
16037
+ */
16038
+ FieldOptions.prototype.retention = 0;
16039
+
16040
+ /**
16041
+ * FieldOptions target.
16042
+ * @member {google.protobuf.FieldOptions.OptionTargetType} target
16043
+ * @memberof google.protobuf.FieldOptions
16044
+ * @instance
16045
+ */
16046
+ FieldOptions.prototype.target = 0;
16047
+
12389
16048
  /**
12390
16049
  * FieldOptions uninterpretedOption.
12391
16050
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -12448,6 +16107,12 @@
12448
16107
  writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak);
12449
16108
  if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy"))
12450
16109
  writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy);
16110
+ if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
16111
+ writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
16112
+ if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
16113
+ writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
16114
+ if (message.target != null && Object.hasOwnProperty.call(message, "target"))
16115
+ writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target);
12451
16116
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
12452
16117
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
12453
16118
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -12521,6 +16186,18 @@
12521
16186
  message.weak = reader.bool();
12522
16187
  break;
12523
16188
  }
16189
+ case 16: {
16190
+ message.debugRedact = reader.bool();
16191
+ break;
16192
+ }
16193
+ case 17: {
16194
+ message.retention = reader.int32();
16195
+ break;
16196
+ }
16197
+ case 18: {
16198
+ message.target = reader.int32();
16199
+ break;
16200
+ }
12524
16201
  case 999: {
12525
16202
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
12526
16203
  message.uninterpretedOption = [];
@@ -12610,6 +16287,34 @@
12610
16287
  if (message.weak != null && message.hasOwnProperty("weak"))
12611
16288
  if (typeof message.weak !== "boolean")
12612
16289
  return "weak: boolean expected";
16290
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
16291
+ if (typeof message.debugRedact !== "boolean")
16292
+ return "debugRedact: boolean expected";
16293
+ if (message.retention != null && message.hasOwnProperty("retention"))
16294
+ switch (message.retention) {
16295
+ default:
16296
+ return "retention: enum value expected";
16297
+ case 0:
16298
+ case 1:
16299
+ case 2:
16300
+ break;
16301
+ }
16302
+ if (message.target != null && message.hasOwnProperty("target"))
16303
+ switch (message.target) {
16304
+ default:
16305
+ return "target: enum value expected";
16306
+ case 0:
16307
+ case 1:
16308
+ case 2:
16309
+ case 3:
16310
+ case 4:
16311
+ case 5:
16312
+ case 6:
16313
+ case 7:
16314
+ case 8:
16315
+ case 9:
16316
+ break;
16317
+ }
12613
16318
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
12614
16319
  if (!Array.isArray(message.uninterpretedOption))
12615
16320
  return "uninterpretedOption: array expected";
@@ -12707,6 +16412,76 @@
12707
16412
  message.deprecated = Boolean(object.deprecated);
12708
16413
  if (object.weak != null)
12709
16414
  message.weak = Boolean(object.weak);
16415
+ if (object.debugRedact != null)
16416
+ message.debugRedact = Boolean(object.debugRedact);
16417
+ switch (object.retention) {
16418
+ default:
16419
+ if (typeof object.retention === "number") {
16420
+ message.retention = object.retention;
16421
+ break;
16422
+ }
16423
+ break;
16424
+ case "RETENTION_UNKNOWN":
16425
+ case 0:
16426
+ message.retention = 0;
16427
+ break;
16428
+ case "RETENTION_RUNTIME":
16429
+ case 1:
16430
+ message.retention = 1;
16431
+ break;
16432
+ case "RETENTION_SOURCE":
16433
+ case 2:
16434
+ message.retention = 2;
16435
+ break;
16436
+ }
16437
+ switch (object.target) {
16438
+ default:
16439
+ if (typeof object.target === "number") {
16440
+ message.target = object.target;
16441
+ break;
16442
+ }
16443
+ break;
16444
+ case "TARGET_TYPE_UNKNOWN":
16445
+ case 0:
16446
+ message.target = 0;
16447
+ break;
16448
+ case "TARGET_TYPE_FILE":
16449
+ case 1:
16450
+ message.target = 1;
16451
+ break;
16452
+ case "TARGET_TYPE_EXTENSION_RANGE":
16453
+ case 2:
16454
+ message.target = 2;
16455
+ break;
16456
+ case "TARGET_TYPE_MESSAGE":
16457
+ case 3:
16458
+ message.target = 3;
16459
+ break;
16460
+ case "TARGET_TYPE_FIELD":
16461
+ case 4:
16462
+ message.target = 4;
16463
+ break;
16464
+ case "TARGET_TYPE_ONEOF":
16465
+ case 5:
16466
+ message.target = 5;
16467
+ break;
16468
+ case "TARGET_TYPE_ENUM":
16469
+ case 6:
16470
+ message.target = 6;
16471
+ break;
16472
+ case "TARGET_TYPE_ENUM_ENTRY":
16473
+ case 7:
16474
+ message.target = 7;
16475
+ break;
16476
+ case "TARGET_TYPE_SERVICE":
16477
+ case 8:
16478
+ message.target = 8;
16479
+ break;
16480
+ case "TARGET_TYPE_METHOD":
16481
+ case 9:
16482
+ message.target = 9;
16483
+ break;
16484
+ }
12710
16485
  if (object.uninterpretedOption) {
12711
16486
  if (!Array.isArray(object.uninterpretedOption))
12712
16487
  throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
@@ -12795,6 +16570,9 @@
12795
16570
  object.jstype = options.enums === String ? "JS_NORMAL" : 0;
12796
16571
  object.weak = false;
12797
16572
  object.unverifiedLazy = false;
16573
+ object.debugRedact = false;
16574
+ object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
16575
+ object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0;
12798
16576
  object[".google.api.resourceReference"] = null;
12799
16577
  }
12800
16578
  if (message.ctype != null && message.hasOwnProperty("ctype"))
@@ -12811,6 +16589,12 @@
12811
16589
  object.weak = message.weak;
12812
16590
  if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy"))
12813
16591
  object.unverifiedLazy = message.unverifiedLazy;
16592
+ if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
16593
+ object.debugRedact = message.debugRedact;
16594
+ if (message.retention != null && message.hasOwnProperty("retention"))
16595
+ object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
16596
+ if (message.target != null && message.hasOwnProperty("target"))
16597
+ object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target;
12814
16598
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
12815
16599
  object.uninterpretedOption = [];
12816
16600
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -12872,15 +16656,61 @@
12872
16656
  * JSType enum.
12873
16657
  * @name google.protobuf.FieldOptions.JSType
12874
16658
  * @enum {number}
12875
- * @property {number} JS_NORMAL=0 JS_NORMAL value
12876
- * @property {number} JS_STRING=1 JS_STRING value
12877
- * @property {number} JS_NUMBER=2 JS_NUMBER value
12878
- */
12879
- FieldOptions.JSType = (function() {
16659
+ * @property {number} JS_NORMAL=0 JS_NORMAL value
16660
+ * @property {number} JS_STRING=1 JS_STRING value
16661
+ * @property {number} JS_NUMBER=2 JS_NUMBER value
16662
+ */
16663
+ FieldOptions.JSType = (function() {
16664
+ var valuesById = {}, values = Object.create(valuesById);
16665
+ values[valuesById[0] = "JS_NORMAL"] = 0;
16666
+ values[valuesById[1] = "JS_STRING"] = 1;
16667
+ values[valuesById[2] = "JS_NUMBER"] = 2;
16668
+ return values;
16669
+ })();
16670
+
16671
+ /**
16672
+ * OptionRetention enum.
16673
+ * @name google.protobuf.FieldOptions.OptionRetention
16674
+ * @enum {number}
16675
+ * @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value
16676
+ * @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value
16677
+ * @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value
16678
+ */
16679
+ FieldOptions.OptionRetention = (function() {
16680
+ var valuesById = {}, values = Object.create(valuesById);
16681
+ values[valuesById[0] = "RETENTION_UNKNOWN"] = 0;
16682
+ values[valuesById[1] = "RETENTION_RUNTIME"] = 1;
16683
+ values[valuesById[2] = "RETENTION_SOURCE"] = 2;
16684
+ return values;
16685
+ })();
16686
+
16687
+ /**
16688
+ * OptionTargetType enum.
16689
+ * @name google.protobuf.FieldOptions.OptionTargetType
16690
+ * @enum {number}
16691
+ * @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value
16692
+ * @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value
16693
+ * @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value
16694
+ * @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value
16695
+ * @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value
16696
+ * @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value
16697
+ * @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value
16698
+ * @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value
16699
+ * @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value
16700
+ * @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value
16701
+ */
16702
+ FieldOptions.OptionTargetType = (function() {
12880
16703
  var valuesById = {}, values = Object.create(valuesById);
12881
- values[valuesById[0] = "JS_NORMAL"] = 0;
12882
- values[valuesById[1] = "JS_STRING"] = 1;
12883
- values[valuesById[2] = "JS_NUMBER"] = 2;
16704
+ values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0;
16705
+ values[valuesById[1] = "TARGET_TYPE_FILE"] = 1;
16706
+ values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2;
16707
+ values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3;
16708
+ values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4;
16709
+ values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5;
16710
+ values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6;
16711
+ values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7;
16712
+ values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8;
16713
+ values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9;
12884
16714
  return values;
12885
16715
  })();
12886
16716
 
@@ -13119,6 +16949,7 @@
13119
16949
  * @interface IEnumOptions
13120
16950
  * @property {boolean|null} [allowAlias] EnumOptions allowAlias
13121
16951
  * @property {boolean|null} [deprecated] EnumOptions deprecated
16952
+ * @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
13122
16953
  * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption
13123
16954
  */
13124
16955
 
@@ -13154,6 +16985,14 @@
13154
16985
  */
13155
16986
  EnumOptions.prototype.deprecated = false;
13156
16987
 
16988
+ /**
16989
+ * EnumOptions deprecatedLegacyJsonFieldConflicts.
16990
+ * @member {boolean} deprecatedLegacyJsonFieldConflicts
16991
+ * @memberof google.protobuf.EnumOptions
16992
+ * @instance
16993
+ */
16994
+ EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
16995
+
13157
16996
  /**
13158
16997
  * EnumOptions uninterpretedOption.
13159
16998
  * @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
@@ -13190,6 +17029,8 @@
13190
17029
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias);
13191
17030
  if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
13192
17031
  writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
17032
+ if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
17033
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
13193
17034
  if (message.uninterpretedOption != null && message.uninterpretedOption.length)
13194
17035
  for (var i = 0; i < message.uninterpretedOption.length; ++i)
13195
17036
  $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
@@ -13235,6 +17076,10 @@
13235
17076
  message.deprecated = reader.bool();
13236
17077
  break;
13237
17078
  }
17079
+ case 6: {
17080
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
17081
+ break;
17082
+ }
13238
17083
  case 999: {
13239
17084
  if (!(message.uninterpretedOption && message.uninterpretedOption.length))
13240
17085
  message.uninterpretedOption = [];
@@ -13282,6 +17127,9 @@
13282
17127
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
13283
17128
  if (typeof message.deprecated !== "boolean")
13284
17129
  return "deprecated: boolean expected";
17130
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
17131
+ if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
17132
+ return "deprecatedLegacyJsonFieldConflicts: boolean expected";
13285
17133
  if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
13286
17134
  if (!Array.isArray(message.uninterpretedOption))
13287
17135
  return "uninterpretedOption: array expected";
@@ -13310,6 +17158,8 @@
13310
17158
  message.allowAlias = Boolean(object.allowAlias);
13311
17159
  if (object.deprecated != null)
13312
17160
  message.deprecated = Boolean(object.deprecated);
17161
+ if (object.deprecatedLegacyJsonFieldConflicts != null)
17162
+ message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
13313
17163
  if (object.uninterpretedOption) {
13314
17164
  if (!Array.isArray(object.uninterpretedOption))
13315
17165
  throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
@@ -13341,11 +17191,14 @@
13341
17191
  if (options.defaults) {
13342
17192
  object.allowAlias = false;
13343
17193
  object.deprecated = false;
17194
+ object.deprecatedLegacyJsonFieldConflicts = false;
13344
17195
  }
13345
17196
  if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
13346
17197
  object.allowAlias = message.allowAlias;
13347
17198
  if (message.deprecated != null && message.hasOwnProperty("deprecated"))
13348
17199
  object.deprecated = message.deprecated;
17200
+ if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
17201
+ object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
13349
17202
  if (message.uninterpretedOption && message.uninterpretedOption.length) {
13350
17203
  object.uninterpretedOption = [];
13351
17204
  for (var j = 0; j < message.uninterpretedOption.length; ++j)
@@ -16338,276 +20191,40 @@
16338
20191
  if (message.seconds != null && message.hasOwnProperty("seconds"))
16339
20192
  if (typeof message.seconds === "number")
16340
20193
  object.seconds = options.longs === String ? String(message.seconds) : message.seconds;
16341
- else
16342
- object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds;
16343
- if (message.nanos != null && message.hasOwnProperty("nanos"))
16344
- object.nanos = message.nanos;
16345
- return object;
16346
- };
16347
-
16348
- /**
16349
- * Converts this Timestamp to JSON.
16350
- * @function toJSON
16351
- * @memberof google.protobuf.Timestamp
16352
- * @instance
16353
- * @returns {Object.<string,*>} JSON object
16354
- */
16355
- Timestamp.prototype.toJSON = function toJSON() {
16356
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16357
- };
16358
-
16359
- /**
16360
- * Gets the default type url for Timestamp
16361
- * @function getTypeUrl
16362
- * @memberof google.protobuf.Timestamp
16363
- * @static
16364
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
16365
- * @returns {string} The default type url
16366
- */
16367
- Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16368
- if (typeUrlPrefix === undefined) {
16369
- typeUrlPrefix = "type.googleapis.com";
16370
- }
16371
- return typeUrlPrefix + "/google.protobuf.Timestamp";
16372
- };
16373
-
16374
- return Timestamp;
16375
- })();
16376
-
16377
- protobuf.Any = (function() {
16378
-
16379
- /**
16380
- * Properties of an Any.
16381
- * @memberof google.protobuf
16382
- * @interface IAny
16383
- * @property {string|null} [type_url] Any type_url
16384
- * @property {Uint8Array|null} [value] Any value
16385
- */
16386
-
16387
- /**
16388
- * Constructs a new Any.
16389
- * @memberof google.protobuf
16390
- * @classdesc Represents an Any.
16391
- * @implements IAny
16392
- * @constructor
16393
- * @param {google.protobuf.IAny=} [properties] Properties to set
16394
- */
16395
- function Any(properties) {
16396
- if (properties)
16397
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16398
- if (properties[keys[i]] != null)
16399
- this[keys[i]] = properties[keys[i]];
16400
- }
16401
-
16402
- /**
16403
- * Any type_url.
16404
- * @member {string} type_url
16405
- * @memberof google.protobuf.Any
16406
- * @instance
16407
- */
16408
- Any.prototype.type_url = "";
16409
-
16410
- /**
16411
- * Any value.
16412
- * @member {Uint8Array} value
16413
- * @memberof google.protobuf.Any
16414
- * @instance
16415
- */
16416
- Any.prototype.value = $util.newBuffer([]);
16417
-
16418
- /**
16419
- * Creates a new Any instance using the specified properties.
16420
- * @function create
16421
- * @memberof google.protobuf.Any
16422
- * @static
16423
- * @param {google.protobuf.IAny=} [properties] Properties to set
16424
- * @returns {google.protobuf.Any} Any instance
16425
- */
16426
- Any.create = function create(properties) {
16427
- return new Any(properties);
16428
- };
16429
-
16430
- /**
16431
- * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
16432
- * @function encode
16433
- * @memberof google.protobuf.Any
16434
- * @static
16435
- * @param {google.protobuf.IAny} message Any message or plain object to encode
16436
- * @param {$protobuf.Writer} [writer] Writer to encode to
16437
- * @returns {$protobuf.Writer} Writer
16438
- */
16439
- Any.encode = function encode(message, writer) {
16440
- if (!writer)
16441
- writer = $Writer.create();
16442
- if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url"))
16443
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url);
16444
- if (message.value != null && Object.hasOwnProperty.call(message, "value"))
16445
- writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value);
16446
- return writer;
16447
- };
16448
-
16449
- /**
16450
- * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
16451
- * @function encodeDelimited
16452
- * @memberof google.protobuf.Any
16453
- * @static
16454
- * @param {google.protobuf.IAny} message Any message or plain object to encode
16455
- * @param {$protobuf.Writer} [writer] Writer to encode to
16456
- * @returns {$protobuf.Writer} Writer
16457
- */
16458
- Any.encodeDelimited = function encodeDelimited(message, writer) {
16459
- return this.encode(message, writer).ldelim();
16460
- };
16461
-
16462
- /**
16463
- * Decodes an Any message from the specified reader or buffer.
16464
- * @function decode
16465
- * @memberof google.protobuf.Any
16466
- * @static
16467
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16468
- * @param {number} [length] Message length if known beforehand
16469
- * @returns {google.protobuf.Any} Any
16470
- * @throws {Error} If the payload is not a reader or valid buffer
16471
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
16472
- */
16473
- Any.decode = function decode(reader, length) {
16474
- if (!(reader instanceof $Reader))
16475
- reader = $Reader.create(reader);
16476
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any();
16477
- while (reader.pos < end) {
16478
- var tag = reader.uint32();
16479
- switch (tag >>> 3) {
16480
- case 1: {
16481
- message.type_url = reader.string();
16482
- break;
16483
- }
16484
- case 2: {
16485
- message.value = reader.bytes();
16486
- break;
16487
- }
16488
- default:
16489
- reader.skipType(tag & 7);
16490
- break;
16491
- }
16492
- }
16493
- return message;
16494
- };
16495
-
16496
- /**
16497
- * Decodes an Any message from the specified reader or buffer, length delimited.
16498
- * @function decodeDelimited
16499
- * @memberof google.protobuf.Any
16500
- * @static
16501
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16502
- * @returns {google.protobuf.Any} Any
16503
- * @throws {Error} If the payload is not a reader or valid buffer
16504
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
16505
- */
16506
- Any.decodeDelimited = function decodeDelimited(reader) {
16507
- if (!(reader instanceof $Reader))
16508
- reader = new $Reader(reader);
16509
- return this.decode(reader, reader.uint32());
16510
- };
16511
-
16512
- /**
16513
- * Verifies an Any message.
16514
- * @function verify
16515
- * @memberof google.protobuf.Any
16516
- * @static
16517
- * @param {Object.<string,*>} message Plain object to verify
16518
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
16519
- */
16520
- Any.verify = function verify(message) {
16521
- if (typeof message !== "object" || message === null)
16522
- return "object expected";
16523
- if (message.type_url != null && message.hasOwnProperty("type_url"))
16524
- if (!$util.isString(message.type_url))
16525
- return "type_url: string expected";
16526
- if (message.value != null && message.hasOwnProperty("value"))
16527
- if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
16528
- return "value: buffer expected";
16529
- return null;
16530
- };
16531
-
16532
- /**
16533
- * Creates an Any message from a plain object. Also converts values to their respective internal types.
16534
- * @function fromObject
16535
- * @memberof google.protobuf.Any
16536
- * @static
16537
- * @param {Object.<string,*>} object Plain object
16538
- * @returns {google.protobuf.Any} Any
16539
- */
16540
- Any.fromObject = function fromObject(object) {
16541
- if (object instanceof $root.google.protobuf.Any)
16542
- return object;
16543
- var message = new $root.google.protobuf.Any();
16544
- if (object.type_url != null)
16545
- message.type_url = String(object.type_url);
16546
- if (object.value != null)
16547
- if (typeof object.value === "string")
16548
- $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
16549
- else if (object.value.length >= 0)
16550
- message.value = object.value;
16551
- return message;
16552
- };
16553
-
16554
- /**
16555
- * Creates a plain object from an Any message. Also converts values to other types if specified.
16556
- * @function toObject
16557
- * @memberof google.protobuf.Any
16558
- * @static
16559
- * @param {google.protobuf.Any} message Any
16560
- * @param {$protobuf.IConversionOptions} [options] Conversion options
16561
- * @returns {Object.<string,*>} Plain object
16562
- */
16563
- Any.toObject = function toObject(message, options) {
16564
- if (!options)
16565
- options = {};
16566
- var object = {};
16567
- if (options.defaults) {
16568
- object.type_url = "";
16569
- if (options.bytes === String)
16570
- object.value = "";
16571
- else {
16572
- object.value = [];
16573
- if (options.bytes !== Array)
16574
- object.value = $util.newBuffer(object.value);
16575
- }
16576
- }
16577
- if (message.type_url != null && message.hasOwnProperty("type_url"))
16578
- object.type_url = message.type_url;
16579
- if (message.value != null && message.hasOwnProperty("value"))
16580
- object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
20194
+ else
20195
+ object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds;
20196
+ if (message.nanos != null && message.hasOwnProperty("nanos"))
20197
+ object.nanos = message.nanos;
16581
20198
  return object;
16582
20199
  };
16583
20200
 
16584
20201
  /**
16585
- * Converts this Any to JSON.
20202
+ * Converts this Timestamp to JSON.
16586
20203
  * @function toJSON
16587
- * @memberof google.protobuf.Any
20204
+ * @memberof google.protobuf.Timestamp
16588
20205
  * @instance
16589
20206
  * @returns {Object.<string,*>} JSON object
16590
20207
  */
16591
- Any.prototype.toJSON = function toJSON() {
20208
+ Timestamp.prototype.toJSON = function toJSON() {
16592
20209
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16593
20210
  };
16594
20211
 
16595
20212
  /**
16596
- * Gets the default type url for Any
20213
+ * Gets the default type url for Timestamp
16597
20214
  * @function getTypeUrl
16598
- * @memberof google.protobuf.Any
20215
+ * @memberof google.protobuf.Timestamp
16599
20216
  * @static
16600
20217
  * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
16601
20218
  * @returns {string} The default type url
16602
20219
  */
16603
- Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20220
+ Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
16604
20221
  if (typeUrlPrefix === undefined) {
16605
20222
  typeUrlPrefix = "type.googleapis.com";
16606
20223
  }
16607
- return typeUrlPrefix + "/google.protobuf.Any";
20224
+ return typeUrlPrefix + "/google.protobuf.Timestamp";
16608
20225
  };
16609
20226
 
16610
- return Any;
20227
+ return Timestamp;
16611
20228
  })();
16612
20229
 
16613
20230
  protobuf.Duration = (function() {
@@ -16851,6 +20468,242 @@
16851
20468
  return Duration;
16852
20469
  })();
16853
20470
 
20471
+ protobuf.Any = (function() {
20472
+
20473
+ /**
20474
+ * Properties of an Any.
20475
+ * @memberof google.protobuf
20476
+ * @interface IAny
20477
+ * @property {string|null} [type_url] Any type_url
20478
+ * @property {Uint8Array|null} [value] Any value
20479
+ */
20480
+
20481
+ /**
20482
+ * Constructs a new Any.
20483
+ * @memberof google.protobuf
20484
+ * @classdesc Represents an Any.
20485
+ * @implements IAny
20486
+ * @constructor
20487
+ * @param {google.protobuf.IAny=} [properties] Properties to set
20488
+ */
20489
+ function Any(properties) {
20490
+ if (properties)
20491
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20492
+ if (properties[keys[i]] != null)
20493
+ this[keys[i]] = properties[keys[i]];
20494
+ }
20495
+
20496
+ /**
20497
+ * Any type_url.
20498
+ * @member {string} type_url
20499
+ * @memberof google.protobuf.Any
20500
+ * @instance
20501
+ */
20502
+ Any.prototype.type_url = "";
20503
+
20504
+ /**
20505
+ * Any value.
20506
+ * @member {Uint8Array} value
20507
+ * @memberof google.protobuf.Any
20508
+ * @instance
20509
+ */
20510
+ Any.prototype.value = $util.newBuffer([]);
20511
+
20512
+ /**
20513
+ * Creates a new Any instance using the specified properties.
20514
+ * @function create
20515
+ * @memberof google.protobuf.Any
20516
+ * @static
20517
+ * @param {google.protobuf.IAny=} [properties] Properties to set
20518
+ * @returns {google.protobuf.Any} Any instance
20519
+ */
20520
+ Any.create = function create(properties) {
20521
+ return new Any(properties);
20522
+ };
20523
+
20524
+ /**
20525
+ * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
20526
+ * @function encode
20527
+ * @memberof google.protobuf.Any
20528
+ * @static
20529
+ * @param {google.protobuf.IAny} message Any message or plain object to encode
20530
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20531
+ * @returns {$protobuf.Writer} Writer
20532
+ */
20533
+ Any.encode = function encode(message, writer) {
20534
+ if (!writer)
20535
+ writer = $Writer.create();
20536
+ if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url"))
20537
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url);
20538
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
20539
+ writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value);
20540
+ return writer;
20541
+ };
20542
+
20543
+ /**
20544
+ * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
20545
+ * @function encodeDelimited
20546
+ * @memberof google.protobuf.Any
20547
+ * @static
20548
+ * @param {google.protobuf.IAny} message Any message or plain object to encode
20549
+ * @param {$protobuf.Writer} [writer] Writer to encode to
20550
+ * @returns {$protobuf.Writer} Writer
20551
+ */
20552
+ Any.encodeDelimited = function encodeDelimited(message, writer) {
20553
+ return this.encode(message, writer).ldelim();
20554
+ };
20555
+
20556
+ /**
20557
+ * Decodes an Any message from the specified reader or buffer.
20558
+ * @function decode
20559
+ * @memberof google.protobuf.Any
20560
+ * @static
20561
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20562
+ * @param {number} [length] Message length if known beforehand
20563
+ * @returns {google.protobuf.Any} Any
20564
+ * @throws {Error} If the payload is not a reader or valid buffer
20565
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20566
+ */
20567
+ Any.decode = function decode(reader, length) {
20568
+ if (!(reader instanceof $Reader))
20569
+ reader = $Reader.create(reader);
20570
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any();
20571
+ while (reader.pos < end) {
20572
+ var tag = reader.uint32();
20573
+ switch (tag >>> 3) {
20574
+ case 1: {
20575
+ message.type_url = reader.string();
20576
+ break;
20577
+ }
20578
+ case 2: {
20579
+ message.value = reader.bytes();
20580
+ break;
20581
+ }
20582
+ default:
20583
+ reader.skipType(tag & 7);
20584
+ break;
20585
+ }
20586
+ }
20587
+ return message;
20588
+ };
20589
+
20590
+ /**
20591
+ * Decodes an Any message from the specified reader or buffer, length delimited.
20592
+ * @function decodeDelimited
20593
+ * @memberof google.protobuf.Any
20594
+ * @static
20595
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
20596
+ * @returns {google.protobuf.Any} Any
20597
+ * @throws {Error} If the payload is not a reader or valid buffer
20598
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
20599
+ */
20600
+ Any.decodeDelimited = function decodeDelimited(reader) {
20601
+ if (!(reader instanceof $Reader))
20602
+ reader = new $Reader(reader);
20603
+ return this.decode(reader, reader.uint32());
20604
+ };
20605
+
20606
+ /**
20607
+ * Verifies an Any message.
20608
+ * @function verify
20609
+ * @memberof google.protobuf.Any
20610
+ * @static
20611
+ * @param {Object.<string,*>} message Plain object to verify
20612
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
20613
+ */
20614
+ Any.verify = function verify(message) {
20615
+ if (typeof message !== "object" || message === null)
20616
+ return "object expected";
20617
+ if (message.type_url != null && message.hasOwnProperty("type_url"))
20618
+ if (!$util.isString(message.type_url))
20619
+ return "type_url: string expected";
20620
+ if (message.value != null && message.hasOwnProperty("value"))
20621
+ if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
20622
+ return "value: buffer expected";
20623
+ return null;
20624
+ };
20625
+
20626
+ /**
20627
+ * Creates an Any message from a plain object. Also converts values to their respective internal types.
20628
+ * @function fromObject
20629
+ * @memberof google.protobuf.Any
20630
+ * @static
20631
+ * @param {Object.<string,*>} object Plain object
20632
+ * @returns {google.protobuf.Any} Any
20633
+ */
20634
+ Any.fromObject = function fromObject(object) {
20635
+ if (object instanceof $root.google.protobuf.Any)
20636
+ return object;
20637
+ var message = new $root.google.protobuf.Any();
20638
+ if (object.type_url != null)
20639
+ message.type_url = String(object.type_url);
20640
+ if (object.value != null)
20641
+ if (typeof object.value === "string")
20642
+ $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
20643
+ else if (object.value.length >= 0)
20644
+ message.value = object.value;
20645
+ return message;
20646
+ };
20647
+
20648
+ /**
20649
+ * Creates a plain object from an Any message. Also converts values to other types if specified.
20650
+ * @function toObject
20651
+ * @memberof google.protobuf.Any
20652
+ * @static
20653
+ * @param {google.protobuf.Any} message Any
20654
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
20655
+ * @returns {Object.<string,*>} Plain object
20656
+ */
20657
+ Any.toObject = function toObject(message, options) {
20658
+ if (!options)
20659
+ options = {};
20660
+ var object = {};
20661
+ if (options.defaults) {
20662
+ object.type_url = "";
20663
+ if (options.bytes === String)
20664
+ object.value = "";
20665
+ else {
20666
+ object.value = [];
20667
+ if (options.bytes !== Array)
20668
+ object.value = $util.newBuffer(object.value);
20669
+ }
20670
+ }
20671
+ if (message.type_url != null && message.hasOwnProperty("type_url"))
20672
+ object.type_url = message.type_url;
20673
+ if (message.value != null && message.hasOwnProperty("value"))
20674
+ object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
20675
+ return object;
20676
+ };
20677
+
20678
+ /**
20679
+ * Converts this Any to JSON.
20680
+ * @function toJSON
20681
+ * @memberof google.protobuf.Any
20682
+ * @instance
20683
+ * @returns {Object.<string,*>} JSON object
20684
+ */
20685
+ Any.prototype.toJSON = function toJSON() {
20686
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20687
+ };
20688
+
20689
+ /**
20690
+ * Gets the default type url for Any
20691
+ * @function getTypeUrl
20692
+ * @memberof google.protobuf.Any
20693
+ * @static
20694
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
20695
+ * @returns {string} The default type url
20696
+ */
20697
+ Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20698
+ if (typeUrlPrefix === undefined) {
20699
+ typeUrlPrefix = "type.googleapis.com";
20700
+ }
20701
+ return typeUrlPrefix + "/google.protobuf.Any";
20702
+ };
20703
+
20704
+ return Any;
20705
+ })();
20706
+
16854
20707
  protobuf.Empty = (function() {
16855
20708
 
16856
20709
  /**