@google-cloud/dlp 4.3.0 → 4.4.0
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.
- package/README.md +43 -36
- package/build/protos/protos.d.ts +1561 -68
- package/build/protos/protos.js +3981 -128
- package/build/protos/protos.json +294 -2
- package/build/src/index.js +1 -1
- package/build/src/v2/dlp_service_client.js +1 -1
- package/build/src/v2/index.js +1 -1
- package/package.json +10 -5
- package/CHANGELOG.md +0 -564
package/build/protos/protos.js
CHANGED
|
@@ -68883,6 +68883,3615 @@
|
|
|
68883
68883
|
return CustomHttpPattern;
|
|
68884
68884
|
})();
|
|
68885
68885
|
|
|
68886
|
+
api.CommonLanguageSettings = (function() {
|
|
68887
|
+
|
|
68888
|
+
/**
|
|
68889
|
+
* Properties of a CommonLanguageSettings.
|
|
68890
|
+
* @memberof google.api
|
|
68891
|
+
* @interface ICommonLanguageSettings
|
|
68892
|
+
* @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
|
|
68893
|
+
* @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
|
|
68894
|
+
*/
|
|
68895
|
+
|
|
68896
|
+
/**
|
|
68897
|
+
* Constructs a new CommonLanguageSettings.
|
|
68898
|
+
* @memberof google.api
|
|
68899
|
+
* @classdesc Represents a CommonLanguageSettings.
|
|
68900
|
+
* @implements ICommonLanguageSettings
|
|
68901
|
+
* @constructor
|
|
68902
|
+
* @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
|
|
68903
|
+
*/
|
|
68904
|
+
function CommonLanguageSettings(properties) {
|
|
68905
|
+
this.destinations = [];
|
|
68906
|
+
if (properties)
|
|
68907
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
68908
|
+
if (properties[keys[i]] != null)
|
|
68909
|
+
this[keys[i]] = properties[keys[i]];
|
|
68910
|
+
}
|
|
68911
|
+
|
|
68912
|
+
/**
|
|
68913
|
+
* CommonLanguageSettings referenceDocsUri.
|
|
68914
|
+
* @member {string} referenceDocsUri
|
|
68915
|
+
* @memberof google.api.CommonLanguageSettings
|
|
68916
|
+
* @instance
|
|
68917
|
+
*/
|
|
68918
|
+
CommonLanguageSettings.prototype.referenceDocsUri = "";
|
|
68919
|
+
|
|
68920
|
+
/**
|
|
68921
|
+
* CommonLanguageSettings destinations.
|
|
68922
|
+
* @member {Array.<google.api.ClientLibraryDestination>} destinations
|
|
68923
|
+
* @memberof google.api.CommonLanguageSettings
|
|
68924
|
+
* @instance
|
|
68925
|
+
*/
|
|
68926
|
+
CommonLanguageSettings.prototype.destinations = $util.emptyArray;
|
|
68927
|
+
|
|
68928
|
+
/**
|
|
68929
|
+
* Creates a new CommonLanguageSettings instance using the specified properties.
|
|
68930
|
+
* @function create
|
|
68931
|
+
* @memberof google.api.CommonLanguageSettings
|
|
68932
|
+
* @static
|
|
68933
|
+
* @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
|
|
68934
|
+
* @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
|
|
68935
|
+
*/
|
|
68936
|
+
CommonLanguageSettings.create = function create(properties) {
|
|
68937
|
+
return new CommonLanguageSettings(properties);
|
|
68938
|
+
};
|
|
68939
|
+
|
|
68940
|
+
/**
|
|
68941
|
+
* Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
|
|
68942
|
+
* @function encode
|
|
68943
|
+
* @memberof google.api.CommonLanguageSettings
|
|
68944
|
+
* @static
|
|
68945
|
+
* @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
|
|
68946
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68947
|
+
* @returns {$protobuf.Writer} Writer
|
|
68948
|
+
*/
|
|
68949
|
+
CommonLanguageSettings.encode = function encode(message, writer) {
|
|
68950
|
+
if (!writer)
|
|
68951
|
+
writer = $Writer.create();
|
|
68952
|
+
if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
|
|
68953
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
|
|
68954
|
+
if (message.destinations != null && message.destinations.length) {
|
|
68955
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork();
|
|
68956
|
+
for (var i = 0; i < message.destinations.length; ++i)
|
|
68957
|
+
writer.int32(message.destinations[i]);
|
|
68958
|
+
writer.ldelim();
|
|
68959
|
+
}
|
|
68960
|
+
return writer;
|
|
68961
|
+
};
|
|
68962
|
+
|
|
68963
|
+
/**
|
|
68964
|
+
* Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
|
|
68965
|
+
* @function encodeDelimited
|
|
68966
|
+
* @memberof google.api.CommonLanguageSettings
|
|
68967
|
+
* @static
|
|
68968
|
+
* @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
|
|
68969
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68970
|
+
* @returns {$protobuf.Writer} Writer
|
|
68971
|
+
*/
|
|
68972
|
+
CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
68973
|
+
return this.encode(message, writer).ldelim();
|
|
68974
|
+
};
|
|
68975
|
+
|
|
68976
|
+
/**
|
|
68977
|
+
* Decodes a CommonLanguageSettings message from the specified reader or buffer.
|
|
68978
|
+
* @function decode
|
|
68979
|
+
* @memberof google.api.CommonLanguageSettings
|
|
68980
|
+
* @static
|
|
68981
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68982
|
+
* @param {number} [length] Message length if known beforehand
|
|
68983
|
+
* @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
|
|
68984
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68985
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68986
|
+
*/
|
|
68987
|
+
CommonLanguageSettings.decode = function decode(reader, length) {
|
|
68988
|
+
if (!(reader instanceof $Reader))
|
|
68989
|
+
reader = $Reader.create(reader);
|
|
68990
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
|
|
68991
|
+
while (reader.pos < end) {
|
|
68992
|
+
var tag = reader.uint32();
|
|
68993
|
+
switch (tag >>> 3) {
|
|
68994
|
+
case 1: {
|
|
68995
|
+
message.referenceDocsUri = reader.string();
|
|
68996
|
+
break;
|
|
68997
|
+
}
|
|
68998
|
+
case 2: {
|
|
68999
|
+
if (!(message.destinations && message.destinations.length))
|
|
69000
|
+
message.destinations = [];
|
|
69001
|
+
if ((tag & 7) === 2) {
|
|
69002
|
+
var end2 = reader.uint32() + reader.pos;
|
|
69003
|
+
while (reader.pos < end2)
|
|
69004
|
+
message.destinations.push(reader.int32());
|
|
69005
|
+
} else
|
|
69006
|
+
message.destinations.push(reader.int32());
|
|
69007
|
+
break;
|
|
69008
|
+
}
|
|
69009
|
+
default:
|
|
69010
|
+
reader.skipType(tag & 7);
|
|
69011
|
+
break;
|
|
69012
|
+
}
|
|
69013
|
+
}
|
|
69014
|
+
return message;
|
|
69015
|
+
};
|
|
69016
|
+
|
|
69017
|
+
/**
|
|
69018
|
+
* Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
|
|
69019
|
+
* @function decodeDelimited
|
|
69020
|
+
* @memberof google.api.CommonLanguageSettings
|
|
69021
|
+
* @static
|
|
69022
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
69023
|
+
* @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
|
|
69024
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69025
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69026
|
+
*/
|
|
69027
|
+
CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
69028
|
+
if (!(reader instanceof $Reader))
|
|
69029
|
+
reader = new $Reader(reader);
|
|
69030
|
+
return this.decode(reader, reader.uint32());
|
|
69031
|
+
};
|
|
69032
|
+
|
|
69033
|
+
/**
|
|
69034
|
+
* Verifies a CommonLanguageSettings message.
|
|
69035
|
+
* @function verify
|
|
69036
|
+
* @memberof google.api.CommonLanguageSettings
|
|
69037
|
+
* @static
|
|
69038
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
69039
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
69040
|
+
*/
|
|
69041
|
+
CommonLanguageSettings.verify = function verify(message) {
|
|
69042
|
+
if (typeof message !== "object" || message === null)
|
|
69043
|
+
return "object expected";
|
|
69044
|
+
if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
|
|
69045
|
+
if (!$util.isString(message.referenceDocsUri))
|
|
69046
|
+
return "referenceDocsUri: string expected";
|
|
69047
|
+
if (message.destinations != null && message.hasOwnProperty("destinations")) {
|
|
69048
|
+
if (!Array.isArray(message.destinations))
|
|
69049
|
+
return "destinations: array expected";
|
|
69050
|
+
for (var i = 0; i < message.destinations.length; ++i)
|
|
69051
|
+
switch (message.destinations[i]) {
|
|
69052
|
+
default:
|
|
69053
|
+
return "destinations: enum value[] expected";
|
|
69054
|
+
case 0:
|
|
69055
|
+
case 10:
|
|
69056
|
+
case 20:
|
|
69057
|
+
break;
|
|
69058
|
+
}
|
|
69059
|
+
}
|
|
69060
|
+
return null;
|
|
69061
|
+
};
|
|
69062
|
+
|
|
69063
|
+
/**
|
|
69064
|
+
* Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
|
|
69065
|
+
* @function fromObject
|
|
69066
|
+
* @memberof google.api.CommonLanguageSettings
|
|
69067
|
+
* @static
|
|
69068
|
+
* @param {Object.<string,*>} object Plain object
|
|
69069
|
+
* @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
|
|
69070
|
+
*/
|
|
69071
|
+
CommonLanguageSettings.fromObject = function fromObject(object) {
|
|
69072
|
+
if (object instanceof $root.google.api.CommonLanguageSettings)
|
|
69073
|
+
return object;
|
|
69074
|
+
var message = new $root.google.api.CommonLanguageSettings();
|
|
69075
|
+
if (object.referenceDocsUri != null)
|
|
69076
|
+
message.referenceDocsUri = String(object.referenceDocsUri);
|
|
69077
|
+
if (object.destinations) {
|
|
69078
|
+
if (!Array.isArray(object.destinations))
|
|
69079
|
+
throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
|
|
69080
|
+
message.destinations = [];
|
|
69081
|
+
for (var i = 0; i < object.destinations.length; ++i)
|
|
69082
|
+
switch (object.destinations[i]) {
|
|
69083
|
+
default:
|
|
69084
|
+
if (typeof object.destinations[i] === "number") {
|
|
69085
|
+
message.destinations[i] = object.destinations[i];
|
|
69086
|
+
break;
|
|
69087
|
+
}
|
|
69088
|
+
case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
|
|
69089
|
+
case 0:
|
|
69090
|
+
message.destinations[i] = 0;
|
|
69091
|
+
break;
|
|
69092
|
+
case "GITHUB":
|
|
69093
|
+
case 10:
|
|
69094
|
+
message.destinations[i] = 10;
|
|
69095
|
+
break;
|
|
69096
|
+
case "PACKAGE_MANAGER":
|
|
69097
|
+
case 20:
|
|
69098
|
+
message.destinations[i] = 20;
|
|
69099
|
+
break;
|
|
69100
|
+
}
|
|
69101
|
+
}
|
|
69102
|
+
return message;
|
|
69103
|
+
};
|
|
69104
|
+
|
|
69105
|
+
/**
|
|
69106
|
+
* Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
|
|
69107
|
+
* @function toObject
|
|
69108
|
+
* @memberof google.api.CommonLanguageSettings
|
|
69109
|
+
* @static
|
|
69110
|
+
* @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
|
|
69111
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
69112
|
+
* @returns {Object.<string,*>} Plain object
|
|
69113
|
+
*/
|
|
69114
|
+
CommonLanguageSettings.toObject = function toObject(message, options) {
|
|
69115
|
+
if (!options)
|
|
69116
|
+
options = {};
|
|
69117
|
+
var object = {};
|
|
69118
|
+
if (options.arrays || options.defaults)
|
|
69119
|
+
object.destinations = [];
|
|
69120
|
+
if (options.defaults)
|
|
69121
|
+
object.referenceDocsUri = "";
|
|
69122
|
+
if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
|
|
69123
|
+
object.referenceDocsUri = message.referenceDocsUri;
|
|
69124
|
+
if (message.destinations && message.destinations.length) {
|
|
69125
|
+
object.destinations = [];
|
|
69126
|
+
for (var j = 0; j < message.destinations.length; ++j)
|
|
69127
|
+
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];
|
|
69128
|
+
}
|
|
69129
|
+
return object;
|
|
69130
|
+
};
|
|
69131
|
+
|
|
69132
|
+
/**
|
|
69133
|
+
* Converts this CommonLanguageSettings to JSON.
|
|
69134
|
+
* @function toJSON
|
|
69135
|
+
* @memberof google.api.CommonLanguageSettings
|
|
69136
|
+
* @instance
|
|
69137
|
+
* @returns {Object.<string,*>} JSON object
|
|
69138
|
+
*/
|
|
69139
|
+
CommonLanguageSettings.prototype.toJSON = function toJSON() {
|
|
69140
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
69141
|
+
};
|
|
69142
|
+
|
|
69143
|
+
/**
|
|
69144
|
+
* Gets the default type url for CommonLanguageSettings
|
|
69145
|
+
* @function getTypeUrl
|
|
69146
|
+
* @memberof google.api.CommonLanguageSettings
|
|
69147
|
+
* @static
|
|
69148
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
69149
|
+
* @returns {string} The default type url
|
|
69150
|
+
*/
|
|
69151
|
+
CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
69152
|
+
if (typeUrlPrefix === undefined) {
|
|
69153
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
69154
|
+
}
|
|
69155
|
+
return typeUrlPrefix + "/google.api.CommonLanguageSettings";
|
|
69156
|
+
};
|
|
69157
|
+
|
|
69158
|
+
return CommonLanguageSettings;
|
|
69159
|
+
})();
|
|
69160
|
+
|
|
69161
|
+
api.ClientLibrarySettings = (function() {
|
|
69162
|
+
|
|
69163
|
+
/**
|
|
69164
|
+
* Properties of a ClientLibrarySettings.
|
|
69165
|
+
* @memberof google.api
|
|
69166
|
+
* @interface IClientLibrarySettings
|
|
69167
|
+
* @property {string|null} [version] ClientLibrarySettings version
|
|
69168
|
+
* @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
|
|
69169
|
+
* @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
|
|
69170
|
+
* @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
|
|
69171
|
+
* @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
|
|
69172
|
+
* @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
|
|
69173
|
+
* @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
|
|
69174
|
+
* @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
|
|
69175
|
+
* @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
|
|
69176
|
+
* @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
|
|
69177
|
+
* @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
|
|
69178
|
+
*/
|
|
69179
|
+
|
|
69180
|
+
/**
|
|
69181
|
+
* Constructs a new ClientLibrarySettings.
|
|
69182
|
+
* @memberof google.api
|
|
69183
|
+
* @classdesc Represents a ClientLibrarySettings.
|
|
69184
|
+
* @implements IClientLibrarySettings
|
|
69185
|
+
* @constructor
|
|
69186
|
+
* @param {google.api.IClientLibrarySettings=} [properties] Properties to set
|
|
69187
|
+
*/
|
|
69188
|
+
function ClientLibrarySettings(properties) {
|
|
69189
|
+
if (properties)
|
|
69190
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
69191
|
+
if (properties[keys[i]] != null)
|
|
69192
|
+
this[keys[i]] = properties[keys[i]];
|
|
69193
|
+
}
|
|
69194
|
+
|
|
69195
|
+
/**
|
|
69196
|
+
* ClientLibrarySettings version.
|
|
69197
|
+
* @member {string} version
|
|
69198
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69199
|
+
* @instance
|
|
69200
|
+
*/
|
|
69201
|
+
ClientLibrarySettings.prototype.version = "";
|
|
69202
|
+
|
|
69203
|
+
/**
|
|
69204
|
+
* ClientLibrarySettings launchStage.
|
|
69205
|
+
* @member {google.api.LaunchStage} launchStage
|
|
69206
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69207
|
+
* @instance
|
|
69208
|
+
*/
|
|
69209
|
+
ClientLibrarySettings.prototype.launchStage = 0;
|
|
69210
|
+
|
|
69211
|
+
/**
|
|
69212
|
+
* ClientLibrarySettings restNumericEnums.
|
|
69213
|
+
* @member {boolean} restNumericEnums
|
|
69214
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69215
|
+
* @instance
|
|
69216
|
+
*/
|
|
69217
|
+
ClientLibrarySettings.prototype.restNumericEnums = false;
|
|
69218
|
+
|
|
69219
|
+
/**
|
|
69220
|
+
* ClientLibrarySettings javaSettings.
|
|
69221
|
+
* @member {google.api.IJavaSettings|null|undefined} javaSettings
|
|
69222
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69223
|
+
* @instance
|
|
69224
|
+
*/
|
|
69225
|
+
ClientLibrarySettings.prototype.javaSettings = null;
|
|
69226
|
+
|
|
69227
|
+
/**
|
|
69228
|
+
* ClientLibrarySettings cppSettings.
|
|
69229
|
+
* @member {google.api.ICppSettings|null|undefined} cppSettings
|
|
69230
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69231
|
+
* @instance
|
|
69232
|
+
*/
|
|
69233
|
+
ClientLibrarySettings.prototype.cppSettings = null;
|
|
69234
|
+
|
|
69235
|
+
/**
|
|
69236
|
+
* ClientLibrarySettings phpSettings.
|
|
69237
|
+
* @member {google.api.IPhpSettings|null|undefined} phpSettings
|
|
69238
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69239
|
+
* @instance
|
|
69240
|
+
*/
|
|
69241
|
+
ClientLibrarySettings.prototype.phpSettings = null;
|
|
69242
|
+
|
|
69243
|
+
/**
|
|
69244
|
+
* ClientLibrarySettings pythonSettings.
|
|
69245
|
+
* @member {google.api.IPythonSettings|null|undefined} pythonSettings
|
|
69246
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69247
|
+
* @instance
|
|
69248
|
+
*/
|
|
69249
|
+
ClientLibrarySettings.prototype.pythonSettings = null;
|
|
69250
|
+
|
|
69251
|
+
/**
|
|
69252
|
+
* ClientLibrarySettings nodeSettings.
|
|
69253
|
+
* @member {google.api.INodeSettings|null|undefined} nodeSettings
|
|
69254
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69255
|
+
* @instance
|
|
69256
|
+
*/
|
|
69257
|
+
ClientLibrarySettings.prototype.nodeSettings = null;
|
|
69258
|
+
|
|
69259
|
+
/**
|
|
69260
|
+
* ClientLibrarySettings dotnetSettings.
|
|
69261
|
+
* @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
|
|
69262
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69263
|
+
* @instance
|
|
69264
|
+
*/
|
|
69265
|
+
ClientLibrarySettings.prototype.dotnetSettings = null;
|
|
69266
|
+
|
|
69267
|
+
/**
|
|
69268
|
+
* ClientLibrarySettings rubySettings.
|
|
69269
|
+
* @member {google.api.IRubySettings|null|undefined} rubySettings
|
|
69270
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69271
|
+
* @instance
|
|
69272
|
+
*/
|
|
69273
|
+
ClientLibrarySettings.prototype.rubySettings = null;
|
|
69274
|
+
|
|
69275
|
+
/**
|
|
69276
|
+
* ClientLibrarySettings goSettings.
|
|
69277
|
+
* @member {google.api.IGoSettings|null|undefined} goSettings
|
|
69278
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69279
|
+
* @instance
|
|
69280
|
+
*/
|
|
69281
|
+
ClientLibrarySettings.prototype.goSettings = null;
|
|
69282
|
+
|
|
69283
|
+
/**
|
|
69284
|
+
* Creates a new ClientLibrarySettings instance using the specified properties.
|
|
69285
|
+
* @function create
|
|
69286
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69287
|
+
* @static
|
|
69288
|
+
* @param {google.api.IClientLibrarySettings=} [properties] Properties to set
|
|
69289
|
+
* @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
|
|
69290
|
+
*/
|
|
69291
|
+
ClientLibrarySettings.create = function create(properties) {
|
|
69292
|
+
return new ClientLibrarySettings(properties);
|
|
69293
|
+
};
|
|
69294
|
+
|
|
69295
|
+
/**
|
|
69296
|
+
* Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
|
|
69297
|
+
* @function encode
|
|
69298
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69299
|
+
* @static
|
|
69300
|
+
* @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
|
|
69301
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
69302
|
+
* @returns {$protobuf.Writer} Writer
|
|
69303
|
+
*/
|
|
69304
|
+
ClientLibrarySettings.encode = function encode(message, writer) {
|
|
69305
|
+
if (!writer)
|
|
69306
|
+
writer = $Writer.create();
|
|
69307
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
69308
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
|
|
69309
|
+
if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
|
|
69310
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
|
|
69311
|
+
if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
|
|
69312
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
|
|
69313
|
+
if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
|
|
69314
|
+
$root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
69315
|
+
if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
|
|
69316
|
+
$root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
69317
|
+
if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
|
|
69318
|
+
$root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
69319
|
+
if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
|
|
69320
|
+
$root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
|
|
69321
|
+
if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
|
|
69322
|
+
$root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
|
|
69323
|
+
if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
|
|
69324
|
+
$root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
69325
|
+
if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
|
|
69326
|
+
$root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
69327
|
+
if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
|
|
69328
|
+
$root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
|
|
69329
|
+
return writer;
|
|
69330
|
+
};
|
|
69331
|
+
|
|
69332
|
+
/**
|
|
69333
|
+
* Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
|
|
69334
|
+
* @function encodeDelimited
|
|
69335
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69336
|
+
* @static
|
|
69337
|
+
* @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
|
|
69338
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
69339
|
+
* @returns {$protobuf.Writer} Writer
|
|
69340
|
+
*/
|
|
69341
|
+
ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
69342
|
+
return this.encode(message, writer).ldelim();
|
|
69343
|
+
};
|
|
69344
|
+
|
|
69345
|
+
/**
|
|
69346
|
+
* Decodes a ClientLibrarySettings message from the specified reader or buffer.
|
|
69347
|
+
* @function decode
|
|
69348
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69349
|
+
* @static
|
|
69350
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
69351
|
+
* @param {number} [length] Message length if known beforehand
|
|
69352
|
+
* @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
|
|
69353
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69354
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69355
|
+
*/
|
|
69356
|
+
ClientLibrarySettings.decode = function decode(reader, length) {
|
|
69357
|
+
if (!(reader instanceof $Reader))
|
|
69358
|
+
reader = $Reader.create(reader);
|
|
69359
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
|
|
69360
|
+
while (reader.pos < end) {
|
|
69361
|
+
var tag = reader.uint32();
|
|
69362
|
+
switch (tag >>> 3) {
|
|
69363
|
+
case 1: {
|
|
69364
|
+
message.version = reader.string();
|
|
69365
|
+
break;
|
|
69366
|
+
}
|
|
69367
|
+
case 2: {
|
|
69368
|
+
message.launchStage = reader.int32();
|
|
69369
|
+
break;
|
|
69370
|
+
}
|
|
69371
|
+
case 3: {
|
|
69372
|
+
message.restNumericEnums = reader.bool();
|
|
69373
|
+
break;
|
|
69374
|
+
}
|
|
69375
|
+
case 21: {
|
|
69376
|
+
message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
|
|
69377
|
+
break;
|
|
69378
|
+
}
|
|
69379
|
+
case 22: {
|
|
69380
|
+
message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
|
|
69381
|
+
break;
|
|
69382
|
+
}
|
|
69383
|
+
case 23: {
|
|
69384
|
+
message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
|
|
69385
|
+
break;
|
|
69386
|
+
}
|
|
69387
|
+
case 24: {
|
|
69388
|
+
message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
|
|
69389
|
+
break;
|
|
69390
|
+
}
|
|
69391
|
+
case 25: {
|
|
69392
|
+
message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
|
|
69393
|
+
break;
|
|
69394
|
+
}
|
|
69395
|
+
case 26: {
|
|
69396
|
+
message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
|
|
69397
|
+
break;
|
|
69398
|
+
}
|
|
69399
|
+
case 27: {
|
|
69400
|
+
message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
|
|
69401
|
+
break;
|
|
69402
|
+
}
|
|
69403
|
+
case 28: {
|
|
69404
|
+
message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
|
|
69405
|
+
break;
|
|
69406
|
+
}
|
|
69407
|
+
default:
|
|
69408
|
+
reader.skipType(tag & 7);
|
|
69409
|
+
break;
|
|
69410
|
+
}
|
|
69411
|
+
}
|
|
69412
|
+
return message;
|
|
69413
|
+
};
|
|
69414
|
+
|
|
69415
|
+
/**
|
|
69416
|
+
* Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
|
|
69417
|
+
* @function decodeDelimited
|
|
69418
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69419
|
+
* @static
|
|
69420
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
69421
|
+
* @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
|
|
69422
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69423
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69424
|
+
*/
|
|
69425
|
+
ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
|
|
69426
|
+
if (!(reader instanceof $Reader))
|
|
69427
|
+
reader = new $Reader(reader);
|
|
69428
|
+
return this.decode(reader, reader.uint32());
|
|
69429
|
+
};
|
|
69430
|
+
|
|
69431
|
+
/**
|
|
69432
|
+
* Verifies a ClientLibrarySettings message.
|
|
69433
|
+
* @function verify
|
|
69434
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69435
|
+
* @static
|
|
69436
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
69437
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
69438
|
+
*/
|
|
69439
|
+
ClientLibrarySettings.verify = function verify(message) {
|
|
69440
|
+
if (typeof message !== "object" || message === null)
|
|
69441
|
+
return "object expected";
|
|
69442
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
69443
|
+
if (!$util.isString(message.version))
|
|
69444
|
+
return "version: string expected";
|
|
69445
|
+
if (message.launchStage != null && message.hasOwnProperty("launchStage"))
|
|
69446
|
+
switch (message.launchStage) {
|
|
69447
|
+
default:
|
|
69448
|
+
return "launchStage: enum value expected";
|
|
69449
|
+
case 0:
|
|
69450
|
+
case 6:
|
|
69451
|
+
case 7:
|
|
69452
|
+
case 1:
|
|
69453
|
+
case 2:
|
|
69454
|
+
case 3:
|
|
69455
|
+
case 4:
|
|
69456
|
+
case 5:
|
|
69457
|
+
break;
|
|
69458
|
+
}
|
|
69459
|
+
if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
|
|
69460
|
+
if (typeof message.restNumericEnums !== "boolean")
|
|
69461
|
+
return "restNumericEnums: boolean expected";
|
|
69462
|
+
if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
|
|
69463
|
+
var error = $root.google.api.JavaSettings.verify(message.javaSettings);
|
|
69464
|
+
if (error)
|
|
69465
|
+
return "javaSettings." + error;
|
|
69466
|
+
}
|
|
69467
|
+
if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
|
|
69468
|
+
var error = $root.google.api.CppSettings.verify(message.cppSettings);
|
|
69469
|
+
if (error)
|
|
69470
|
+
return "cppSettings." + error;
|
|
69471
|
+
}
|
|
69472
|
+
if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
|
|
69473
|
+
var error = $root.google.api.PhpSettings.verify(message.phpSettings);
|
|
69474
|
+
if (error)
|
|
69475
|
+
return "phpSettings." + error;
|
|
69476
|
+
}
|
|
69477
|
+
if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
|
|
69478
|
+
var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
|
|
69479
|
+
if (error)
|
|
69480
|
+
return "pythonSettings." + error;
|
|
69481
|
+
}
|
|
69482
|
+
if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
|
|
69483
|
+
var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
|
|
69484
|
+
if (error)
|
|
69485
|
+
return "nodeSettings." + error;
|
|
69486
|
+
}
|
|
69487
|
+
if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
|
|
69488
|
+
var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
|
|
69489
|
+
if (error)
|
|
69490
|
+
return "dotnetSettings." + error;
|
|
69491
|
+
}
|
|
69492
|
+
if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
|
|
69493
|
+
var error = $root.google.api.RubySettings.verify(message.rubySettings);
|
|
69494
|
+
if (error)
|
|
69495
|
+
return "rubySettings." + error;
|
|
69496
|
+
}
|
|
69497
|
+
if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
|
|
69498
|
+
var error = $root.google.api.GoSettings.verify(message.goSettings);
|
|
69499
|
+
if (error)
|
|
69500
|
+
return "goSettings." + error;
|
|
69501
|
+
}
|
|
69502
|
+
return null;
|
|
69503
|
+
};
|
|
69504
|
+
|
|
69505
|
+
/**
|
|
69506
|
+
* Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
|
|
69507
|
+
* @function fromObject
|
|
69508
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69509
|
+
* @static
|
|
69510
|
+
* @param {Object.<string,*>} object Plain object
|
|
69511
|
+
* @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
|
|
69512
|
+
*/
|
|
69513
|
+
ClientLibrarySettings.fromObject = function fromObject(object) {
|
|
69514
|
+
if (object instanceof $root.google.api.ClientLibrarySettings)
|
|
69515
|
+
return object;
|
|
69516
|
+
var message = new $root.google.api.ClientLibrarySettings();
|
|
69517
|
+
if (object.version != null)
|
|
69518
|
+
message.version = String(object.version);
|
|
69519
|
+
switch (object.launchStage) {
|
|
69520
|
+
default:
|
|
69521
|
+
if (typeof object.launchStage === "number") {
|
|
69522
|
+
message.launchStage = object.launchStage;
|
|
69523
|
+
break;
|
|
69524
|
+
}
|
|
69525
|
+
break;
|
|
69526
|
+
case "LAUNCH_STAGE_UNSPECIFIED":
|
|
69527
|
+
case 0:
|
|
69528
|
+
message.launchStage = 0;
|
|
69529
|
+
break;
|
|
69530
|
+
case "UNIMPLEMENTED":
|
|
69531
|
+
case 6:
|
|
69532
|
+
message.launchStage = 6;
|
|
69533
|
+
break;
|
|
69534
|
+
case "PRELAUNCH":
|
|
69535
|
+
case 7:
|
|
69536
|
+
message.launchStage = 7;
|
|
69537
|
+
break;
|
|
69538
|
+
case "EARLY_ACCESS":
|
|
69539
|
+
case 1:
|
|
69540
|
+
message.launchStage = 1;
|
|
69541
|
+
break;
|
|
69542
|
+
case "ALPHA":
|
|
69543
|
+
case 2:
|
|
69544
|
+
message.launchStage = 2;
|
|
69545
|
+
break;
|
|
69546
|
+
case "BETA":
|
|
69547
|
+
case 3:
|
|
69548
|
+
message.launchStage = 3;
|
|
69549
|
+
break;
|
|
69550
|
+
case "GA":
|
|
69551
|
+
case 4:
|
|
69552
|
+
message.launchStage = 4;
|
|
69553
|
+
break;
|
|
69554
|
+
case "DEPRECATED":
|
|
69555
|
+
case 5:
|
|
69556
|
+
message.launchStage = 5;
|
|
69557
|
+
break;
|
|
69558
|
+
}
|
|
69559
|
+
if (object.restNumericEnums != null)
|
|
69560
|
+
message.restNumericEnums = Boolean(object.restNumericEnums);
|
|
69561
|
+
if (object.javaSettings != null) {
|
|
69562
|
+
if (typeof object.javaSettings !== "object")
|
|
69563
|
+
throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
|
|
69564
|
+
message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
|
|
69565
|
+
}
|
|
69566
|
+
if (object.cppSettings != null) {
|
|
69567
|
+
if (typeof object.cppSettings !== "object")
|
|
69568
|
+
throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
|
|
69569
|
+
message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
|
|
69570
|
+
}
|
|
69571
|
+
if (object.phpSettings != null) {
|
|
69572
|
+
if (typeof object.phpSettings !== "object")
|
|
69573
|
+
throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
|
|
69574
|
+
message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
|
|
69575
|
+
}
|
|
69576
|
+
if (object.pythonSettings != null) {
|
|
69577
|
+
if (typeof object.pythonSettings !== "object")
|
|
69578
|
+
throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
|
|
69579
|
+
message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
|
|
69580
|
+
}
|
|
69581
|
+
if (object.nodeSettings != null) {
|
|
69582
|
+
if (typeof object.nodeSettings !== "object")
|
|
69583
|
+
throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
|
|
69584
|
+
message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
|
|
69585
|
+
}
|
|
69586
|
+
if (object.dotnetSettings != null) {
|
|
69587
|
+
if (typeof object.dotnetSettings !== "object")
|
|
69588
|
+
throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
|
|
69589
|
+
message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
|
|
69590
|
+
}
|
|
69591
|
+
if (object.rubySettings != null) {
|
|
69592
|
+
if (typeof object.rubySettings !== "object")
|
|
69593
|
+
throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
|
|
69594
|
+
message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
|
|
69595
|
+
}
|
|
69596
|
+
if (object.goSettings != null) {
|
|
69597
|
+
if (typeof object.goSettings !== "object")
|
|
69598
|
+
throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
|
|
69599
|
+
message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
|
|
69600
|
+
}
|
|
69601
|
+
return message;
|
|
69602
|
+
};
|
|
69603
|
+
|
|
69604
|
+
/**
|
|
69605
|
+
* Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
|
|
69606
|
+
* @function toObject
|
|
69607
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69608
|
+
* @static
|
|
69609
|
+
* @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
|
|
69610
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
69611
|
+
* @returns {Object.<string,*>} Plain object
|
|
69612
|
+
*/
|
|
69613
|
+
ClientLibrarySettings.toObject = function toObject(message, options) {
|
|
69614
|
+
if (!options)
|
|
69615
|
+
options = {};
|
|
69616
|
+
var object = {};
|
|
69617
|
+
if (options.defaults) {
|
|
69618
|
+
object.version = "";
|
|
69619
|
+
object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
|
|
69620
|
+
object.restNumericEnums = false;
|
|
69621
|
+
object.javaSettings = null;
|
|
69622
|
+
object.cppSettings = null;
|
|
69623
|
+
object.phpSettings = null;
|
|
69624
|
+
object.pythonSettings = null;
|
|
69625
|
+
object.nodeSettings = null;
|
|
69626
|
+
object.dotnetSettings = null;
|
|
69627
|
+
object.rubySettings = null;
|
|
69628
|
+
object.goSettings = null;
|
|
69629
|
+
}
|
|
69630
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
69631
|
+
object.version = message.version;
|
|
69632
|
+
if (message.launchStage != null && message.hasOwnProperty("launchStage"))
|
|
69633
|
+
object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
|
|
69634
|
+
if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
|
|
69635
|
+
object.restNumericEnums = message.restNumericEnums;
|
|
69636
|
+
if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
|
|
69637
|
+
object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
|
|
69638
|
+
if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
|
|
69639
|
+
object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
|
|
69640
|
+
if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
|
|
69641
|
+
object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
|
|
69642
|
+
if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
|
|
69643
|
+
object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
|
|
69644
|
+
if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
|
|
69645
|
+
object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
|
|
69646
|
+
if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
|
|
69647
|
+
object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
|
|
69648
|
+
if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
|
|
69649
|
+
object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
|
|
69650
|
+
if (message.goSettings != null && message.hasOwnProperty("goSettings"))
|
|
69651
|
+
object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
|
|
69652
|
+
return object;
|
|
69653
|
+
};
|
|
69654
|
+
|
|
69655
|
+
/**
|
|
69656
|
+
* Converts this ClientLibrarySettings to JSON.
|
|
69657
|
+
* @function toJSON
|
|
69658
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69659
|
+
* @instance
|
|
69660
|
+
* @returns {Object.<string,*>} JSON object
|
|
69661
|
+
*/
|
|
69662
|
+
ClientLibrarySettings.prototype.toJSON = function toJSON() {
|
|
69663
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
69664
|
+
};
|
|
69665
|
+
|
|
69666
|
+
/**
|
|
69667
|
+
* Gets the default type url for ClientLibrarySettings
|
|
69668
|
+
* @function getTypeUrl
|
|
69669
|
+
* @memberof google.api.ClientLibrarySettings
|
|
69670
|
+
* @static
|
|
69671
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
69672
|
+
* @returns {string} The default type url
|
|
69673
|
+
*/
|
|
69674
|
+
ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
69675
|
+
if (typeUrlPrefix === undefined) {
|
|
69676
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
69677
|
+
}
|
|
69678
|
+
return typeUrlPrefix + "/google.api.ClientLibrarySettings";
|
|
69679
|
+
};
|
|
69680
|
+
|
|
69681
|
+
return ClientLibrarySettings;
|
|
69682
|
+
})();
|
|
69683
|
+
|
|
69684
|
+
api.Publishing = (function() {
|
|
69685
|
+
|
|
69686
|
+
/**
|
|
69687
|
+
* Properties of a Publishing.
|
|
69688
|
+
* @memberof google.api
|
|
69689
|
+
* @interface IPublishing
|
|
69690
|
+
* @property {Array.<google.api.IMethodSettings>|null} [methodSettings] Publishing methodSettings
|
|
69691
|
+
* @property {string|null} [newIssueUri] Publishing newIssueUri
|
|
69692
|
+
* @property {string|null} [documentationUri] Publishing documentationUri
|
|
69693
|
+
* @property {string|null} [apiShortName] Publishing apiShortName
|
|
69694
|
+
* @property {string|null} [githubLabel] Publishing githubLabel
|
|
69695
|
+
* @property {Array.<string>|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
|
|
69696
|
+
* @property {string|null} [docTagPrefix] Publishing docTagPrefix
|
|
69697
|
+
* @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
|
|
69698
|
+
* @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
|
|
69699
|
+
*/
|
|
69700
|
+
|
|
69701
|
+
/**
|
|
69702
|
+
* Constructs a new Publishing.
|
|
69703
|
+
* @memberof google.api
|
|
69704
|
+
* @classdesc Represents a Publishing.
|
|
69705
|
+
* @implements IPublishing
|
|
69706
|
+
* @constructor
|
|
69707
|
+
* @param {google.api.IPublishing=} [properties] Properties to set
|
|
69708
|
+
*/
|
|
69709
|
+
function Publishing(properties) {
|
|
69710
|
+
this.methodSettings = [];
|
|
69711
|
+
this.codeownerGithubTeams = [];
|
|
69712
|
+
this.librarySettings = [];
|
|
69713
|
+
if (properties)
|
|
69714
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
69715
|
+
if (properties[keys[i]] != null)
|
|
69716
|
+
this[keys[i]] = properties[keys[i]];
|
|
69717
|
+
}
|
|
69718
|
+
|
|
69719
|
+
/**
|
|
69720
|
+
* Publishing methodSettings.
|
|
69721
|
+
* @member {Array.<google.api.IMethodSettings>} methodSettings
|
|
69722
|
+
* @memberof google.api.Publishing
|
|
69723
|
+
* @instance
|
|
69724
|
+
*/
|
|
69725
|
+
Publishing.prototype.methodSettings = $util.emptyArray;
|
|
69726
|
+
|
|
69727
|
+
/**
|
|
69728
|
+
* Publishing newIssueUri.
|
|
69729
|
+
* @member {string} newIssueUri
|
|
69730
|
+
* @memberof google.api.Publishing
|
|
69731
|
+
* @instance
|
|
69732
|
+
*/
|
|
69733
|
+
Publishing.prototype.newIssueUri = "";
|
|
69734
|
+
|
|
69735
|
+
/**
|
|
69736
|
+
* Publishing documentationUri.
|
|
69737
|
+
* @member {string} documentationUri
|
|
69738
|
+
* @memberof google.api.Publishing
|
|
69739
|
+
* @instance
|
|
69740
|
+
*/
|
|
69741
|
+
Publishing.prototype.documentationUri = "";
|
|
69742
|
+
|
|
69743
|
+
/**
|
|
69744
|
+
* Publishing apiShortName.
|
|
69745
|
+
* @member {string} apiShortName
|
|
69746
|
+
* @memberof google.api.Publishing
|
|
69747
|
+
* @instance
|
|
69748
|
+
*/
|
|
69749
|
+
Publishing.prototype.apiShortName = "";
|
|
69750
|
+
|
|
69751
|
+
/**
|
|
69752
|
+
* Publishing githubLabel.
|
|
69753
|
+
* @member {string} githubLabel
|
|
69754
|
+
* @memberof google.api.Publishing
|
|
69755
|
+
* @instance
|
|
69756
|
+
*/
|
|
69757
|
+
Publishing.prototype.githubLabel = "";
|
|
69758
|
+
|
|
69759
|
+
/**
|
|
69760
|
+
* Publishing codeownerGithubTeams.
|
|
69761
|
+
* @member {Array.<string>} codeownerGithubTeams
|
|
69762
|
+
* @memberof google.api.Publishing
|
|
69763
|
+
* @instance
|
|
69764
|
+
*/
|
|
69765
|
+
Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
|
|
69766
|
+
|
|
69767
|
+
/**
|
|
69768
|
+
* Publishing docTagPrefix.
|
|
69769
|
+
* @member {string} docTagPrefix
|
|
69770
|
+
* @memberof google.api.Publishing
|
|
69771
|
+
* @instance
|
|
69772
|
+
*/
|
|
69773
|
+
Publishing.prototype.docTagPrefix = "";
|
|
69774
|
+
|
|
69775
|
+
/**
|
|
69776
|
+
* Publishing organization.
|
|
69777
|
+
* @member {google.api.ClientLibraryOrganization} organization
|
|
69778
|
+
* @memberof google.api.Publishing
|
|
69779
|
+
* @instance
|
|
69780
|
+
*/
|
|
69781
|
+
Publishing.prototype.organization = 0;
|
|
69782
|
+
|
|
69783
|
+
/**
|
|
69784
|
+
* Publishing librarySettings.
|
|
69785
|
+
* @member {Array.<google.api.IClientLibrarySettings>} librarySettings
|
|
69786
|
+
* @memberof google.api.Publishing
|
|
69787
|
+
* @instance
|
|
69788
|
+
*/
|
|
69789
|
+
Publishing.prototype.librarySettings = $util.emptyArray;
|
|
69790
|
+
|
|
69791
|
+
/**
|
|
69792
|
+
* Creates a new Publishing instance using the specified properties.
|
|
69793
|
+
* @function create
|
|
69794
|
+
* @memberof google.api.Publishing
|
|
69795
|
+
* @static
|
|
69796
|
+
* @param {google.api.IPublishing=} [properties] Properties to set
|
|
69797
|
+
* @returns {google.api.Publishing} Publishing instance
|
|
69798
|
+
*/
|
|
69799
|
+
Publishing.create = function create(properties) {
|
|
69800
|
+
return new Publishing(properties);
|
|
69801
|
+
};
|
|
69802
|
+
|
|
69803
|
+
/**
|
|
69804
|
+
* Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
|
|
69805
|
+
* @function encode
|
|
69806
|
+
* @memberof google.api.Publishing
|
|
69807
|
+
* @static
|
|
69808
|
+
* @param {google.api.IPublishing} message Publishing message or plain object to encode
|
|
69809
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
69810
|
+
* @returns {$protobuf.Writer} Writer
|
|
69811
|
+
*/
|
|
69812
|
+
Publishing.encode = function encode(message, writer) {
|
|
69813
|
+
if (!writer)
|
|
69814
|
+
writer = $Writer.create();
|
|
69815
|
+
if (message.methodSettings != null && message.methodSettings.length)
|
|
69816
|
+
for (var i = 0; i < message.methodSettings.length; ++i)
|
|
69817
|
+
$root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
69818
|
+
if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
|
|
69819
|
+
writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
|
|
69820
|
+
if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
|
|
69821
|
+
writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
|
|
69822
|
+
if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
|
|
69823
|
+
writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
|
|
69824
|
+
if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
|
|
69825
|
+
writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
|
|
69826
|
+
if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
|
|
69827
|
+
for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
|
|
69828
|
+
writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
|
|
69829
|
+
if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
|
|
69830
|
+
writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
|
|
69831
|
+
if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
|
|
69832
|
+
writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
|
|
69833
|
+
if (message.librarySettings != null && message.librarySettings.length)
|
|
69834
|
+
for (var i = 0; i < message.librarySettings.length; ++i)
|
|
69835
|
+
$root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
|
|
69836
|
+
return writer;
|
|
69837
|
+
};
|
|
69838
|
+
|
|
69839
|
+
/**
|
|
69840
|
+
* Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
|
|
69841
|
+
* @function encodeDelimited
|
|
69842
|
+
* @memberof google.api.Publishing
|
|
69843
|
+
* @static
|
|
69844
|
+
* @param {google.api.IPublishing} message Publishing message or plain object to encode
|
|
69845
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
69846
|
+
* @returns {$protobuf.Writer} Writer
|
|
69847
|
+
*/
|
|
69848
|
+
Publishing.encodeDelimited = function encodeDelimited(message, writer) {
|
|
69849
|
+
return this.encode(message, writer).ldelim();
|
|
69850
|
+
};
|
|
69851
|
+
|
|
69852
|
+
/**
|
|
69853
|
+
* Decodes a Publishing message from the specified reader or buffer.
|
|
69854
|
+
* @function decode
|
|
69855
|
+
* @memberof google.api.Publishing
|
|
69856
|
+
* @static
|
|
69857
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
69858
|
+
* @param {number} [length] Message length if known beforehand
|
|
69859
|
+
* @returns {google.api.Publishing} Publishing
|
|
69860
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69861
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69862
|
+
*/
|
|
69863
|
+
Publishing.decode = function decode(reader, length) {
|
|
69864
|
+
if (!(reader instanceof $Reader))
|
|
69865
|
+
reader = $Reader.create(reader);
|
|
69866
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
|
|
69867
|
+
while (reader.pos < end) {
|
|
69868
|
+
var tag = reader.uint32();
|
|
69869
|
+
switch (tag >>> 3) {
|
|
69870
|
+
case 2: {
|
|
69871
|
+
if (!(message.methodSettings && message.methodSettings.length))
|
|
69872
|
+
message.methodSettings = [];
|
|
69873
|
+
message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
|
|
69874
|
+
break;
|
|
69875
|
+
}
|
|
69876
|
+
case 101: {
|
|
69877
|
+
message.newIssueUri = reader.string();
|
|
69878
|
+
break;
|
|
69879
|
+
}
|
|
69880
|
+
case 102: {
|
|
69881
|
+
message.documentationUri = reader.string();
|
|
69882
|
+
break;
|
|
69883
|
+
}
|
|
69884
|
+
case 103: {
|
|
69885
|
+
message.apiShortName = reader.string();
|
|
69886
|
+
break;
|
|
69887
|
+
}
|
|
69888
|
+
case 104: {
|
|
69889
|
+
message.githubLabel = reader.string();
|
|
69890
|
+
break;
|
|
69891
|
+
}
|
|
69892
|
+
case 105: {
|
|
69893
|
+
if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
|
|
69894
|
+
message.codeownerGithubTeams = [];
|
|
69895
|
+
message.codeownerGithubTeams.push(reader.string());
|
|
69896
|
+
break;
|
|
69897
|
+
}
|
|
69898
|
+
case 106: {
|
|
69899
|
+
message.docTagPrefix = reader.string();
|
|
69900
|
+
break;
|
|
69901
|
+
}
|
|
69902
|
+
case 107: {
|
|
69903
|
+
message.organization = reader.int32();
|
|
69904
|
+
break;
|
|
69905
|
+
}
|
|
69906
|
+
case 109: {
|
|
69907
|
+
if (!(message.librarySettings && message.librarySettings.length))
|
|
69908
|
+
message.librarySettings = [];
|
|
69909
|
+
message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
|
|
69910
|
+
break;
|
|
69911
|
+
}
|
|
69912
|
+
default:
|
|
69913
|
+
reader.skipType(tag & 7);
|
|
69914
|
+
break;
|
|
69915
|
+
}
|
|
69916
|
+
}
|
|
69917
|
+
return message;
|
|
69918
|
+
};
|
|
69919
|
+
|
|
69920
|
+
/**
|
|
69921
|
+
* Decodes a Publishing message from the specified reader or buffer, length delimited.
|
|
69922
|
+
* @function decodeDelimited
|
|
69923
|
+
* @memberof google.api.Publishing
|
|
69924
|
+
* @static
|
|
69925
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
69926
|
+
* @returns {google.api.Publishing} Publishing
|
|
69927
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69928
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69929
|
+
*/
|
|
69930
|
+
Publishing.decodeDelimited = function decodeDelimited(reader) {
|
|
69931
|
+
if (!(reader instanceof $Reader))
|
|
69932
|
+
reader = new $Reader(reader);
|
|
69933
|
+
return this.decode(reader, reader.uint32());
|
|
69934
|
+
};
|
|
69935
|
+
|
|
69936
|
+
/**
|
|
69937
|
+
* Verifies a Publishing message.
|
|
69938
|
+
* @function verify
|
|
69939
|
+
* @memberof google.api.Publishing
|
|
69940
|
+
* @static
|
|
69941
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
69942
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
69943
|
+
*/
|
|
69944
|
+
Publishing.verify = function verify(message) {
|
|
69945
|
+
if (typeof message !== "object" || message === null)
|
|
69946
|
+
return "object expected";
|
|
69947
|
+
if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
|
|
69948
|
+
if (!Array.isArray(message.methodSettings))
|
|
69949
|
+
return "methodSettings: array expected";
|
|
69950
|
+
for (var i = 0; i < message.methodSettings.length; ++i) {
|
|
69951
|
+
var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
|
|
69952
|
+
if (error)
|
|
69953
|
+
return "methodSettings." + error;
|
|
69954
|
+
}
|
|
69955
|
+
}
|
|
69956
|
+
if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
|
|
69957
|
+
if (!$util.isString(message.newIssueUri))
|
|
69958
|
+
return "newIssueUri: string expected";
|
|
69959
|
+
if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
|
|
69960
|
+
if (!$util.isString(message.documentationUri))
|
|
69961
|
+
return "documentationUri: string expected";
|
|
69962
|
+
if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
|
|
69963
|
+
if (!$util.isString(message.apiShortName))
|
|
69964
|
+
return "apiShortName: string expected";
|
|
69965
|
+
if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
|
|
69966
|
+
if (!$util.isString(message.githubLabel))
|
|
69967
|
+
return "githubLabel: string expected";
|
|
69968
|
+
if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
|
|
69969
|
+
if (!Array.isArray(message.codeownerGithubTeams))
|
|
69970
|
+
return "codeownerGithubTeams: array expected";
|
|
69971
|
+
for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
|
|
69972
|
+
if (!$util.isString(message.codeownerGithubTeams[i]))
|
|
69973
|
+
return "codeownerGithubTeams: string[] expected";
|
|
69974
|
+
}
|
|
69975
|
+
if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
|
|
69976
|
+
if (!$util.isString(message.docTagPrefix))
|
|
69977
|
+
return "docTagPrefix: string expected";
|
|
69978
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
69979
|
+
switch (message.organization) {
|
|
69980
|
+
default:
|
|
69981
|
+
return "organization: enum value expected";
|
|
69982
|
+
case 0:
|
|
69983
|
+
case 1:
|
|
69984
|
+
case 2:
|
|
69985
|
+
case 3:
|
|
69986
|
+
case 4:
|
|
69987
|
+
break;
|
|
69988
|
+
}
|
|
69989
|
+
if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
|
|
69990
|
+
if (!Array.isArray(message.librarySettings))
|
|
69991
|
+
return "librarySettings: array expected";
|
|
69992
|
+
for (var i = 0; i < message.librarySettings.length; ++i) {
|
|
69993
|
+
var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
|
|
69994
|
+
if (error)
|
|
69995
|
+
return "librarySettings." + error;
|
|
69996
|
+
}
|
|
69997
|
+
}
|
|
69998
|
+
return null;
|
|
69999
|
+
};
|
|
70000
|
+
|
|
70001
|
+
/**
|
|
70002
|
+
* Creates a Publishing message from a plain object. Also converts values to their respective internal types.
|
|
70003
|
+
* @function fromObject
|
|
70004
|
+
* @memberof google.api.Publishing
|
|
70005
|
+
* @static
|
|
70006
|
+
* @param {Object.<string,*>} object Plain object
|
|
70007
|
+
* @returns {google.api.Publishing} Publishing
|
|
70008
|
+
*/
|
|
70009
|
+
Publishing.fromObject = function fromObject(object) {
|
|
70010
|
+
if (object instanceof $root.google.api.Publishing)
|
|
70011
|
+
return object;
|
|
70012
|
+
var message = new $root.google.api.Publishing();
|
|
70013
|
+
if (object.methodSettings) {
|
|
70014
|
+
if (!Array.isArray(object.methodSettings))
|
|
70015
|
+
throw TypeError(".google.api.Publishing.methodSettings: array expected");
|
|
70016
|
+
message.methodSettings = [];
|
|
70017
|
+
for (var i = 0; i < object.methodSettings.length; ++i) {
|
|
70018
|
+
if (typeof object.methodSettings[i] !== "object")
|
|
70019
|
+
throw TypeError(".google.api.Publishing.methodSettings: object expected");
|
|
70020
|
+
message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
|
|
70021
|
+
}
|
|
70022
|
+
}
|
|
70023
|
+
if (object.newIssueUri != null)
|
|
70024
|
+
message.newIssueUri = String(object.newIssueUri);
|
|
70025
|
+
if (object.documentationUri != null)
|
|
70026
|
+
message.documentationUri = String(object.documentationUri);
|
|
70027
|
+
if (object.apiShortName != null)
|
|
70028
|
+
message.apiShortName = String(object.apiShortName);
|
|
70029
|
+
if (object.githubLabel != null)
|
|
70030
|
+
message.githubLabel = String(object.githubLabel);
|
|
70031
|
+
if (object.codeownerGithubTeams) {
|
|
70032
|
+
if (!Array.isArray(object.codeownerGithubTeams))
|
|
70033
|
+
throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
|
|
70034
|
+
message.codeownerGithubTeams = [];
|
|
70035
|
+
for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
|
|
70036
|
+
message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
|
|
70037
|
+
}
|
|
70038
|
+
if (object.docTagPrefix != null)
|
|
70039
|
+
message.docTagPrefix = String(object.docTagPrefix);
|
|
70040
|
+
switch (object.organization) {
|
|
70041
|
+
default:
|
|
70042
|
+
if (typeof object.organization === "number") {
|
|
70043
|
+
message.organization = object.organization;
|
|
70044
|
+
break;
|
|
70045
|
+
}
|
|
70046
|
+
break;
|
|
70047
|
+
case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
|
|
70048
|
+
case 0:
|
|
70049
|
+
message.organization = 0;
|
|
70050
|
+
break;
|
|
70051
|
+
case "CLOUD":
|
|
70052
|
+
case 1:
|
|
70053
|
+
message.organization = 1;
|
|
70054
|
+
break;
|
|
70055
|
+
case "ADS":
|
|
70056
|
+
case 2:
|
|
70057
|
+
message.organization = 2;
|
|
70058
|
+
break;
|
|
70059
|
+
case "PHOTOS":
|
|
70060
|
+
case 3:
|
|
70061
|
+
message.organization = 3;
|
|
70062
|
+
break;
|
|
70063
|
+
case "STREET_VIEW":
|
|
70064
|
+
case 4:
|
|
70065
|
+
message.organization = 4;
|
|
70066
|
+
break;
|
|
70067
|
+
}
|
|
70068
|
+
if (object.librarySettings) {
|
|
70069
|
+
if (!Array.isArray(object.librarySettings))
|
|
70070
|
+
throw TypeError(".google.api.Publishing.librarySettings: array expected");
|
|
70071
|
+
message.librarySettings = [];
|
|
70072
|
+
for (var i = 0; i < object.librarySettings.length; ++i) {
|
|
70073
|
+
if (typeof object.librarySettings[i] !== "object")
|
|
70074
|
+
throw TypeError(".google.api.Publishing.librarySettings: object expected");
|
|
70075
|
+
message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
|
|
70076
|
+
}
|
|
70077
|
+
}
|
|
70078
|
+
return message;
|
|
70079
|
+
};
|
|
70080
|
+
|
|
70081
|
+
/**
|
|
70082
|
+
* Creates a plain object from a Publishing message. Also converts values to other types if specified.
|
|
70083
|
+
* @function toObject
|
|
70084
|
+
* @memberof google.api.Publishing
|
|
70085
|
+
* @static
|
|
70086
|
+
* @param {google.api.Publishing} message Publishing
|
|
70087
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
70088
|
+
* @returns {Object.<string,*>} Plain object
|
|
70089
|
+
*/
|
|
70090
|
+
Publishing.toObject = function toObject(message, options) {
|
|
70091
|
+
if (!options)
|
|
70092
|
+
options = {};
|
|
70093
|
+
var object = {};
|
|
70094
|
+
if (options.arrays || options.defaults) {
|
|
70095
|
+
object.methodSettings = [];
|
|
70096
|
+
object.codeownerGithubTeams = [];
|
|
70097
|
+
object.librarySettings = [];
|
|
70098
|
+
}
|
|
70099
|
+
if (options.defaults) {
|
|
70100
|
+
object.newIssueUri = "";
|
|
70101
|
+
object.documentationUri = "";
|
|
70102
|
+
object.apiShortName = "";
|
|
70103
|
+
object.githubLabel = "";
|
|
70104
|
+
object.docTagPrefix = "";
|
|
70105
|
+
object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
|
|
70106
|
+
}
|
|
70107
|
+
if (message.methodSettings && message.methodSettings.length) {
|
|
70108
|
+
object.methodSettings = [];
|
|
70109
|
+
for (var j = 0; j < message.methodSettings.length; ++j)
|
|
70110
|
+
object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
|
|
70111
|
+
}
|
|
70112
|
+
if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
|
|
70113
|
+
object.newIssueUri = message.newIssueUri;
|
|
70114
|
+
if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
|
|
70115
|
+
object.documentationUri = message.documentationUri;
|
|
70116
|
+
if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
|
|
70117
|
+
object.apiShortName = message.apiShortName;
|
|
70118
|
+
if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
|
|
70119
|
+
object.githubLabel = message.githubLabel;
|
|
70120
|
+
if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
|
|
70121
|
+
object.codeownerGithubTeams = [];
|
|
70122
|
+
for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
|
|
70123
|
+
object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
|
|
70124
|
+
}
|
|
70125
|
+
if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
|
|
70126
|
+
object.docTagPrefix = message.docTagPrefix;
|
|
70127
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
70128
|
+
object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
|
|
70129
|
+
if (message.librarySettings && message.librarySettings.length) {
|
|
70130
|
+
object.librarySettings = [];
|
|
70131
|
+
for (var j = 0; j < message.librarySettings.length; ++j)
|
|
70132
|
+
object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
|
|
70133
|
+
}
|
|
70134
|
+
return object;
|
|
70135
|
+
};
|
|
70136
|
+
|
|
70137
|
+
/**
|
|
70138
|
+
* Converts this Publishing to JSON.
|
|
70139
|
+
* @function toJSON
|
|
70140
|
+
* @memberof google.api.Publishing
|
|
70141
|
+
* @instance
|
|
70142
|
+
* @returns {Object.<string,*>} JSON object
|
|
70143
|
+
*/
|
|
70144
|
+
Publishing.prototype.toJSON = function toJSON() {
|
|
70145
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
70146
|
+
};
|
|
70147
|
+
|
|
70148
|
+
/**
|
|
70149
|
+
* Gets the default type url for Publishing
|
|
70150
|
+
* @function getTypeUrl
|
|
70151
|
+
* @memberof google.api.Publishing
|
|
70152
|
+
* @static
|
|
70153
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
70154
|
+
* @returns {string} The default type url
|
|
70155
|
+
*/
|
|
70156
|
+
Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
70157
|
+
if (typeUrlPrefix === undefined) {
|
|
70158
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
70159
|
+
}
|
|
70160
|
+
return typeUrlPrefix + "/google.api.Publishing";
|
|
70161
|
+
};
|
|
70162
|
+
|
|
70163
|
+
return Publishing;
|
|
70164
|
+
})();
|
|
70165
|
+
|
|
70166
|
+
api.JavaSettings = (function() {
|
|
70167
|
+
|
|
70168
|
+
/**
|
|
70169
|
+
* Properties of a JavaSettings.
|
|
70170
|
+
* @memberof google.api
|
|
70171
|
+
* @interface IJavaSettings
|
|
70172
|
+
* @property {string|null} [libraryPackage] JavaSettings libraryPackage
|
|
70173
|
+
* @property {Object.<string,string>|null} [serviceClassNames] JavaSettings serviceClassNames
|
|
70174
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
|
|
70175
|
+
*/
|
|
70176
|
+
|
|
70177
|
+
/**
|
|
70178
|
+
* Constructs a new JavaSettings.
|
|
70179
|
+
* @memberof google.api
|
|
70180
|
+
* @classdesc Represents a JavaSettings.
|
|
70181
|
+
* @implements IJavaSettings
|
|
70182
|
+
* @constructor
|
|
70183
|
+
* @param {google.api.IJavaSettings=} [properties] Properties to set
|
|
70184
|
+
*/
|
|
70185
|
+
function JavaSettings(properties) {
|
|
70186
|
+
this.serviceClassNames = {};
|
|
70187
|
+
if (properties)
|
|
70188
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
70189
|
+
if (properties[keys[i]] != null)
|
|
70190
|
+
this[keys[i]] = properties[keys[i]];
|
|
70191
|
+
}
|
|
70192
|
+
|
|
70193
|
+
/**
|
|
70194
|
+
* JavaSettings libraryPackage.
|
|
70195
|
+
* @member {string} libraryPackage
|
|
70196
|
+
* @memberof google.api.JavaSettings
|
|
70197
|
+
* @instance
|
|
70198
|
+
*/
|
|
70199
|
+
JavaSettings.prototype.libraryPackage = "";
|
|
70200
|
+
|
|
70201
|
+
/**
|
|
70202
|
+
* JavaSettings serviceClassNames.
|
|
70203
|
+
* @member {Object.<string,string>} serviceClassNames
|
|
70204
|
+
* @memberof google.api.JavaSettings
|
|
70205
|
+
* @instance
|
|
70206
|
+
*/
|
|
70207
|
+
JavaSettings.prototype.serviceClassNames = $util.emptyObject;
|
|
70208
|
+
|
|
70209
|
+
/**
|
|
70210
|
+
* JavaSettings common.
|
|
70211
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
70212
|
+
* @memberof google.api.JavaSettings
|
|
70213
|
+
* @instance
|
|
70214
|
+
*/
|
|
70215
|
+
JavaSettings.prototype.common = null;
|
|
70216
|
+
|
|
70217
|
+
/**
|
|
70218
|
+
* Creates a new JavaSettings instance using the specified properties.
|
|
70219
|
+
* @function create
|
|
70220
|
+
* @memberof google.api.JavaSettings
|
|
70221
|
+
* @static
|
|
70222
|
+
* @param {google.api.IJavaSettings=} [properties] Properties to set
|
|
70223
|
+
* @returns {google.api.JavaSettings} JavaSettings instance
|
|
70224
|
+
*/
|
|
70225
|
+
JavaSettings.create = function create(properties) {
|
|
70226
|
+
return new JavaSettings(properties);
|
|
70227
|
+
};
|
|
70228
|
+
|
|
70229
|
+
/**
|
|
70230
|
+
* Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
|
|
70231
|
+
* @function encode
|
|
70232
|
+
* @memberof google.api.JavaSettings
|
|
70233
|
+
* @static
|
|
70234
|
+
* @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
|
|
70235
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
70236
|
+
* @returns {$protobuf.Writer} Writer
|
|
70237
|
+
*/
|
|
70238
|
+
JavaSettings.encode = function encode(message, writer) {
|
|
70239
|
+
if (!writer)
|
|
70240
|
+
writer = $Writer.create();
|
|
70241
|
+
if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
|
|
70242
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
|
|
70243
|
+
if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
|
|
70244
|
+
for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
|
|
70245
|
+
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();
|
|
70246
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
70247
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
70248
|
+
return writer;
|
|
70249
|
+
};
|
|
70250
|
+
|
|
70251
|
+
/**
|
|
70252
|
+
* Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
|
|
70253
|
+
* @function encodeDelimited
|
|
70254
|
+
* @memberof google.api.JavaSettings
|
|
70255
|
+
* @static
|
|
70256
|
+
* @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
|
|
70257
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
70258
|
+
* @returns {$protobuf.Writer} Writer
|
|
70259
|
+
*/
|
|
70260
|
+
JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
70261
|
+
return this.encode(message, writer).ldelim();
|
|
70262
|
+
};
|
|
70263
|
+
|
|
70264
|
+
/**
|
|
70265
|
+
* Decodes a JavaSettings message from the specified reader or buffer.
|
|
70266
|
+
* @function decode
|
|
70267
|
+
* @memberof google.api.JavaSettings
|
|
70268
|
+
* @static
|
|
70269
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
70270
|
+
* @param {number} [length] Message length if known beforehand
|
|
70271
|
+
* @returns {google.api.JavaSettings} JavaSettings
|
|
70272
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
70273
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70274
|
+
*/
|
|
70275
|
+
JavaSettings.decode = function decode(reader, length) {
|
|
70276
|
+
if (!(reader instanceof $Reader))
|
|
70277
|
+
reader = $Reader.create(reader);
|
|
70278
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
|
|
70279
|
+
while (reader.pos < end) {
|
|
70280
|
+
var tag = reader.uint32();
|
|
70281
|
+
switch (tag >>> 3) {
|
|
70282
|
+
case 1: {
|
|
70283
|
+
message.libraryPackage = reader.string();
|
|
70284
|
+
break;
|
|
70285
|
+
}
|
|
70286
|
+
case 2: {
|
|
70287
|
+
if (message.serviceClassNames === $util.emptyObject)
|
|
70288
|
+
message.serviceClassNames = {};
|
|
70289
|
+
var end2 = reader.uint32() + reader.pos;
|
|
70290
|
+
key = "";
|
|
70291
|
+
value = "";
|
|
70292
|
+
while (reader.pos < end2) {
|
|
70293
|
+
var tag2 = reader.uint32();
|
|
70294
|
+
switch (tag2 >>> 3) {
|
|
70295
|
+
case 1:
|
|
70296
|
+
key = reader.string();
|
|
70297
|
+
break;
|
|
70298
|
+
case 2:
|
|
70299
|
+
value = reader.string();
|
|
70300
|
+
break;
|
|
70301
|
+
default:
|
|
70302
|
+
reader.skipType(tag2 & 7);
|
|
70303
|
+
break;
|
|
70304
|
+
}
|
|
70305
|
+
}
|
|
70306
|
+
message.serviceClassNames[key] = value;
|
|
70307
|
+
break;
|
|
70308
|
+
}
|
|
70309
|
+
case 3: {
|
|
70310
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
70311
|
+
break;
|
|
70312
|
+
}
|
|
70313
|
+
default:
|
|
70314
|
+
reader.skipType(tag & 7);
|
|
70315
|
+
break;
|
|
70316
|
+
}
|
|
70317
|
+
}
|
|
70318
|
+
return message;
|
|
70319
|
+
};
|
|
70320
|
+
|
|
70321
|
+
/**
|
|
70322
|
+
* Decodes a JavaSettings message from the specified reader or buffer, length delimited.
|
|
70323
|
+
* @function decodeDelimited
|
|
70324
|
+
* @memberof google.api.JavaSettings
|
|
70325
|
+
* @static
|
|
70326
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
70327
|
+
* @returns {google.api.JavaSettings} JavaSettings
|
|
70328
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
70329
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70330
|
+
*/
|
|
70331
|
+
JavaSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
70332
|
+
if (!(reader instanceof $Reader))
|
|
70333
|
+
reader = new $Reader(reader);
|
|
70334
|
+
return this.decode(reader, reader.uint32());
|
|
70335
|
+
};
|
|
70336
|
+
|
|
70337
|
+
/**
|
|
70338
|
+
* Verifies a JavaSettings message.
|
|
70339
|
+
* @function verify
|
|
70340
|
+
* @memberof google.api.JavaSettings
|
|
70341
|
+
* @static
|
|
70342
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
70343
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
70344
|
+
*/
|
|
70345
|
+
JavaSettings.verify = function verify(message) {
|
|
70346
|
+
if (typeof message !== "object" || message === null)
|
|
70347
|
+
return "object expected";
|
|
70348
|
+
if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
|
|
70349
|
+
if (!$util.isString(message.libraryPackage))
|
|
70350
|
+
return "libraryPackage: string expected";
|
|
70351
|
+
if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
|
|
70352
|
+
if (!$util.isObject(message.serviceClassNames))
|
|
70353
|
+
return "serviceClassNames: object expected";
|
|
70354
|
+
var key = Object.keys(message.serviceClassNames);
|
|
70355
|
+
for (var i = 0; i < key.length; ++i)
|
|
70356
|
+
if (!$util.isString(message.serviceClassNames[key[i]]))
|
|
70357
|
+
return "serviceClassNames: string{k:string} expected";
|
|
70358
|
+
}
|
|
70359
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
70360
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
70361
|
+
if (error)
|
|
70362
|
+
return "common." + error;
|
|
70363
|
+
}
|
|
70364
|
+
return null;
|
|
70365
|
+
};
|
|
70366
|
+
|
|
70367
|
+
/**
|
|
70368
|
+
* Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
|
|
70369
|
+
* @function fromObject
|
|
70370
|
+
* @memberof google.api.JavaSettings
|
|
70371
|
+
* @static
|
|
70372
|
+
* @param {Object.<string,*>} object Plain object
|
|
70373
|
+
* @returns {google.api.JavaSettings} JavaSettings
|
|
70374
|
+
*/
|
|
70375
|
+
JavaSettings.fromObject = function fromObject(object) {
|
|
70376
|
+
if (object instanceof $root.google.api.JavaSettings)
|
|
70377
|
+
return object;
|
|
70378
|
+
var message = new $root.google.api.JavaSettings();
|
|
70379
|
+
if (object.libraryPackage != null)
|
|
70380
|
+
message.libraryPackage = String(object.libraryPackage);
|
|
70381
|
+
if (object.serviceClassNames) {
|
|
70382
|
+
if (typeof object.serviceClassNames !== "object")
|
|
70383
|
+
throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
|
|
70384
|
+
message.serviceClassNames = {};
|
|
70385
|
+
for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
|
|
70386
|
+
message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
|
|
70387
|
+
}
|
|
70388
|
+
if (object.common != null) {
|
|
70389
|
+
if (typeof object.common !== "object")
|
|
70390
|
+
throw TypeError(".google.api.JavaSettings.common: object expected");
|
|
70391
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
70392
|
+
}
|
|
70393
|
+
return message;
|
|
70394
|
+
};
|
|
70395
|
+
|
|
70396
|
+
/**
|
|
70397
|
+
* Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
|
|
70398
|
+
* @function toObject
|
|
70399
|
+
* @memberof google.api.JavaSettings
|
|
70400
|
+
* @static
|
|
70401
|
+
* @param {google.api.JavaSettings} message JavaSettings
|
|
70402
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
70403
|
+
* @returns {Object.<string,*>} Plain object
|
|
70404
|
+
*/
|
|
70405
|
+
JavaSettings.toObject = function toObject(message, options) {
|
|
70406
|
+
if (!options)
|
|
70407
|
+
options = {};
|
|
70408
|
+
var object = {};
|
|
70409
|
+
if (options.objects || options.defaults)
|
|
70410
|
+
object.serviceClassNames = {};
|
|
70411
|
+
if (options.defaults) {
|
|
70412
|
+
object.libraryPackage = "";
|
|
70413
|
+
object.common = null;
|
|
70414
|
+
}
|
|
70415
|
+
if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
|
|
70416
|
+
object.libraryPackage = message.libraryPackage;
|
|
70417
|
+
var keys2;
|
|
70418
|
+
if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
|
|
70419
|
+
object.serviceClassNames = {};
|
|
70420
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
70421
|
+
object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
|
|
70422
|
+
}
|
|
70423
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
70424
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
70425
|
+
return object;
|
|
70426
|
+
};
|
|
70427
|
+
|
|
70428
|
+
/**
|
|
70429
|
+
* Converts this JavaSettings to JSON.
|
|
70430
|
+
* @function toJSON
|
|
70431
|
+
* @memberof google.api.JavaSettings
|
|
70432
|
+
* @instance
|
|
70433
|
+
* @returns {Object.<string,*>} JSON object
|
|
70434
|
+
*/
|
|
70435
|
+
JavaSettings.prototype.toJSON = function toJSON() {
|
|
70436
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
70437
|
+
};
|
|
70438
|
+
|
|
70439
|
+
/**
|
|
70440
|
+
* Gets the default type url for JavaSettings
|
|
70441
|
+
* @function getTypeUrl
|
|
70442
|
+
* @memberof google.api.JavaSettings
|
|
70443
|
+
* @static
|
|
70444
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
70445
|
+
* @returns {string} The default type url
|
|
70446
|
+
*/
|
|
70447
|
+
JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
70448
|
+
if (typeUrlPrefix === undefined) {
|
|
70449
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
70450
|
+
}
|
|
70451
|
+
return typeUrlPrefix + "/google.api.JavaSettings";
|
|
70452
|
+
};
|
|
70453
|
+
|
|
70454
|
+
return JavaSettings;
|
|
70455
|
+
})();
|
|
70456
|
+
|
|
70457
|
+
api.CppSettings = (function() {
|
|
70458
|
+
|
|
70459
|
+
/**
|
|
70460
|
+
* Properties of a CppSettings.
|
|
70461
|
+
* @memberof google.api
|
|
70462
|
+
* @interface ICppSettings
|
|
70463
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
|
|
70464
|
+
*/
|
|
70465
|
+
|
|
70466
|
+
/**
|
|
70467
|
+
* Constructs a new CppSettings.
|
|
70468
|
+
* @memberof google.api
|
|
70469
|
+
* @classdesc Represents a CppSettings.
|
|
70470
|
+
* @implements ICppSettings
|
|
70471
|
+
* @constructor
|
|
70472
|
+
* @param {google.api.ICppSettings=} [properties] Properties to set
|
|
70473
|
+
*/
|
|
70474
|
+
function CppSettings(properties) {
|
|
70475
|
+
if (properties)
|
|
70476
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
70477
|
+
if (properties[keys[i]] != null)
|
|
70478
|
+
this[keys[i]] = properties[keys[i]];
|
|
70479
|
+
}
|
|
70480
|
+
|
|
70481
|
+
/**
|
|
70482
|
+
* CppSettings common.
|
|
70483
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
70484
|
+
* @memberof google.api.CppSettings
|
|
70485
|
+
* @instance
|
|
70486
|
+
*/
|
|
70487
|
+
CppSettings.prototype.common = null;
|
|
70488
|
+
|
|
70489
|
+
/**
|
|
70490
|
+
* Creates a new CppSettings instance using the specified properties.
|
|
70491
|
+
* @function create
|
|
70492
|
+
* @memberof google.api.CppSettings
|
|
70493
|
+
* @static
|
|
70494
|
+
* @param {google.api.ICppSettings=} [properties] Properties to set
|
|
70495
|
+
* @returns {google.api.CppSettings} CppSettings instance
|
|
70496
|
+
*/
|
|
70497
|
+
CppSettings.create = function create(properties) {
|
|
70498
|
+
return new CppSettings(properties);
|
|
70499
|
+
};
|
|
70500
|
+
|
|
70501
|
+
/**
|
|
70502
|
+
* Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
|
|
70503
|
+
* @function encode
|
|
70504
|
+
* @memberof google.api.CppSettings
|
|
70505
|
+
* @static
|
|
70506
|
+
* @param {google.api.ICppSettings} message CppSettings message or plain object to encode
|
|
70507
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
70508
|
+
* @returns {$protobuf.Writer} Writer
|
|
70509
|
+
*/
|
|
70510
|
+
CppSettings.encode = function encode(message, writer) {
|
|
70511
|
+
if (!writer)
|
|
70512
|
+
writer = $Writer.create();
|
|
70513
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
70514
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
70515
|
+
return writer;
|
|
70516
|
+
};
|
|
70517
|
+
|
|
70518
|
+
/**
|
|
70519
|
+
* Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
|
|
70520
|
+
* @function encodeDelimited
|
|
70521
|
+
* @memberof google.api.CppSettings
|
|
70522
|
+
* @static
|
|
70523
|
+
* @param {google.api.ICppSettings} message CppSettings message or plain object to encode
|
|
70524
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
70525
|
+
* @returns {$protobuf.Writer} Writer
|
|
70526
|
+
*/
|
|
70527
|
+
CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
70528
|
+
return this.encode(message, writer).ldelim();
|
|
70529
|
+
};
|
|
70530
|
+
|
|
70531
|
+
/**
|
|
70532
|
+
* Decodes a CppSettings message from the specified reader or buffer.
|
|
70533
|
+
* @function decode
|
|
70534
|
+
* @memberof google.api.CppSettings
|
|
70535
|
+
* @static
|
|
70536
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
70537
|
+
* @param {number} [length] Message length if known beforehand
|
|
70538
|
+
* @returns {google.api.CppSettings} CppSettings
|
|
70539
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
70540
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70541
|
+
*/
|
|
70542
|
+
CppSettings.decode = function decode(reader, length) {
|
|
70543
|
+
if (!(reader instanceof $Reader))
|
|
70544
|
+
reader = $Reader.create(reader);
|
|
70545
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
|
|
70546
|
+
while (reader.pos < end) {
|
|
70547
|
+
var tag = reader.uint32();
|
|
70548
|
+
switch (tag >>> 3) {
|
|
70549
|
+
case 1: {
|
|
70550
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
70551
|
+
break;
|
|
70552
|
+
}
|
|
70553
|
+
default:
|
|
70554
|
+
reader.skipType(tag & 7);
|
|
70555
|
+
break;
|
|
70556
|
+
}
|
|
70557
|
+
}
|
|
70558
|
+
return message;
|
|
70559
|
+
};
|
|
70560
|
+
|
|
70561
|
+
/**
|
|
70562
|
+
* Decodes a CppSettings message from the specified reader or buffer, length delimited.
|
|
70563
|
+
* @function decodeDelimited
|
|
70564
|
+
* @memberof google.api.CppSettings
|
|
70565
|
+
* @static
|
|
70566
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
70567
|
+
* @returns {google.api.CppSettings} CppSettings
|
|
70568
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
70569
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70570
|
+
*/
|
|
70571
|
+
CppSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
70572
|
+
if (!(reader instanceof $Reader))
|
|
70573
|
+
reader = new $Reader(reader);
|
|
70574
|
+
return this.decode(reader, reader.uint32());
|
|
70575
|
+
};
|
|
70576
|
+
|
|
70577
|
+
/**
|
|
70578
|
+
* Verifies a CppSettings message.
|
|
70579
|
+
* @function verify
|
|
70580
|
+
* @memberof google.api.CppSettings
|
|
70581
|
+
* @static
|
|
70582
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
70583
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
70584
|
+
*/
|
|
70585
|
+
CppSettings.verify = function verify(message) {
|
|
70586
|
+
if (typeof message !== "object" || message === null)
|
|
70587
|
+
return "object expected";
|
|
70588
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
70589
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
70590
|
+
if (error)
|
|
70591
|
+
return "common." + error;
|
|
70592
|
+
}
|
|
70593
|
+
return null;
|
|
70594
|
+
};
|
|
70595
|
+
|
|
70596
|
+
/**
|
|
70597
|
+
* Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
|
|
70598
|
+
* @function fromObject
|
|
70599
|
+
* @memberof google.api.CppSettings
|
|
70600
|
+
* @static
|
|
70601
|
+
* @param {Object.<string,*>} object Plain object
|
|
70602
|
+
* @returns {google.api.CppSettings} CppSettings
|
|
70603
|
+
*/
|
|
70604
|
+
CppSettings.fromObject = function fromObject(object) {
|
|
70605
|
+
if (object instanceof $root.google.api.CppSettings)
|
|
70606
|
+
return object;
|
|
70607
|
+
var message = new $root.google.api.CppSettings();
|
|
70608
|
+
if (object.common != null) {
|
|
70609
|
+
if (typeof object.common !== "object")
|
|
70610
|
+
throw TypeError(".google.api.CppSettings.common: object expected");
|
|
70611
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
70612
|
+
}
|
|
70613
|
+
return message;
|
|
70614
|
+
};
|
|
70615
|
+
|
|
70616
|
+
/**
|
|
70617
|
+
* Creates a plain object from a CppSettings message. Also converts values to other types if specified.
|
|
70618
|
+
* @function toObject
|
|
70619
|
+
* @memberof google.api.CppSettings
|
|
70620
|
+
* @static
|
|
70621
|
+
* @param {google.api.CppSettings} message CppSettings
|
|
70622
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
70623
|
+
* @returns {Object.<string,*>} Plain object
|
|
70624
|
+
*/
|
|
70625
|
+
CppSettings.toObject = function toObject(message, options) {
|
|
70626
|
+
if (!options)
|
|
70627
|
+
options = {};
|
|
70628
|
+
var object = {};
|
|
70629
|
+
if (options.defaults)
|
|
70630
|
+
object.common = null;
|
|
70631
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
70632
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
70633
|
+
return object;
|
|
70634
|
+
};
|
|
70635
|
+
|
|
70636
|
+
/**
|
|
70637
|
+
* Converts this CppSettings to JSON.
|
|
70638
|
+
* @function toJSON
|
|
70639
|
+
* @memberof google.api.CppSettings
|
|
70640
|
+
* @instance
|
|
70641
|
+
* @returns {Object.<string,*>} JSON object
|
|
70642
|
+
*/
|
|
70643
|
+
CppSettings.prototype.toJSON = function toJSON() {
|
|
70644
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
70645
|
+
};
|
|
70646
|
+
|
|
70647
|
+
/**
|
|
70648
|
+
* Gets the default type url for CppSettings
|
|
70649
|
+
* @function getTypeUrl
|
|
70650
|
+
* @memberof google.api.CppSettings
|
|
70651
|
+
* @static
|
|
70652
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
70653
|
+
* @returns {string} The default type url
|
|
70654
|
+
*/
|
|
70655
|
+
CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
70656
|
+
if (typeUrlPrefix === undefined) {
|
|
70657
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
70658
|
+
}
|
|
70659
|
+
return typeUrlPrefix + "/google.api.CppSettings";
|
|
70660
|
+
};
|
|
70661
|
+
|
|
70662
|
+
return CppSettings;
|
|
70663
|
+
})();
|
|
70664
|
+
|
|
70665
|
+
api.PhpSettings = (function() {
|
|
70666
|
+
|
|
70667
|
+
/**
|
|
70668
|
+
* Properties of a PhpSettings.
|
|
70669
|
+
* @memberof google.api
|
|
70670
|
+
* @interface IPhpSettings
|
|
70671
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
|
|
70672
|
+
*/
|
|
70673
|
+
|
|
70674
|
+
/**
|
|
70675
|
+
* Constructs a new PhpSettings.
|
|
70676
|
+
* @memberof google.api
|
|
70677
|
+
* @classdesc Represents a PhpSettings.
|
|
70678
|
+
* @implements IPhpSettings
|
|
70679
|
+
* @constructor
|
|
70680
|
+
* @param {google.api.IPhpSettings=} [properties] Properties to set
|
|
70681
|
+
*/
|
|
70682
|
+
function PhpSettings(properties) {
|
|
70683
|
+
if (properties)
|
|
70684
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
70685
|
+
if (properties[keys[i]] != null)
|
|
70686
|
+
this[keys[i]] = properties[keys[i]];
|
|
70687
|
+
}
|
|
70688
|
+
|
|
70689
|
+
/**
|
|
70690
|
+
* PhpSettings common.
|
|
70691
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
70692
|
+
* @memberof google.api.PhpSettings
|
|
70693
|
+
* @instance
|
|
70694
|
+
*/
|
|
70695
|
+
PhpSettings.prototype.common = null;
|
|
70696
|
+
|
|
70697
|
+
/**
|
|
70698
|
+
* Creates a new PhpSettings instance using the specified properties.
|
|
70699
|
+
* @function create
|
|
70700
|
+
* @memberof google.api.PhpSettings
|
|
70701
|
+
* @static
|
|
70702
|
+
* @param {google.api.IPhpSettings=} [properties] Properties to set
|
|
70703
|
+
* @returns {google.api.PhpSettings} PhpSettings instance
|
|
70704
|
+
*/
|
|
70705
|
+
PhpSettings.create = function create(properties) {
|
|
70706
|
+
return new PhpSettings(properties);
|
|
70707
|
+
};
|
|
70708
|
+
|
|
70709
|
+
/**
|
|
70710
|
+
* Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
|
|
70711
|
+
* @function encode
|
|
70712
|
+
* @memberof google.api.PhpSettings
|
|
70713
|
+
* @static
|
|
70714
|
+
* @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
|
|
70715
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
70716
|
+
* @returns {$protobuf.Writer} Writer
|
|
70717
|
+
*/
|
|
70718
|
+
PhpSettings.encode = function encode(message, writer) {
|
|
70719
|
+
if (!writer)
|
|
70720
|
+
writer = $Writer.create();
|
|
70721
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
70722
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
70723
|
+
return writer;
|
|
70724
|
+
};
|
|
70725
|
+
|
|
70726
|
+
/**
|
|
70727
|
+
* Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
|
|
70728
|
+
* @function encodeDelimited
|
|
70729
|
+
* @memberof google.api.PhpSettings
|
|
70730
|
+
* @static
|
|
70731
|
+
* @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
|
|
70732
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
70733
|
+
* @returns {$protobuf.Writer} Writer
|
|
70734
|
+
*/
|
|
70735
|
+
PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
70736
|
+
return this.encode(message, writer).ldelim();
|
|
70737
|
+
};
|
|
70738
|
+
|
|
70739
|
+
/**
|
|
70740
|
+
* Decodes a PhpSettings message from the specified reader or buffer.
|
|
70741
|
+
* @function decode
|
|
70742
|
+
* @memberof google.api.PhpSettings
|
|
70743
|
+
* @static
|
|
70744
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
70745
|
+
* @param {number} [length] Message length if known beforehand
|
|
70746
|
+
* @returns {google.api.PhpSettings} PhpSettings
|
|
70747
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
70748
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70749
|
+
*/
|
|
70750
|
+
PhpSettings.decode = function decode(reader, length) {
|
|
70751
|
+
if (!(reader instanceof $Reader))
|
|
70752
|
+
reader = $Reader.create(reader);
|
|
70753
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
|
|
70754
|
+
while (reader.pos < end) {
|
|
70755
|
+
var tag = reader.uint32();
|
|
70756
|
+
switch (tag >>> 3) {
|
|
70757
|
+
case 1: {
|
|
70758
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
70759
|
+
break;
|
|
70760
|
+
}
|
|
70761
|
+
default:
|
|
70762
|
+
reader.skipType(tag & 7);
|
|
70763
|
+
break;
|
|
70764
|
+
}
|
|
70765
|
+
}
|
|
70766
|
+
return message;
|
|
70767
|
+
};
|
|
70768
|
+
|
|
70769
|
+
/**
|
|
70770
|
+
* Decodes a PhpSettings message from the specified reader or buffer, length delimited.
|
|
70771
|
+
* @function decodeDelimited
|
|
70772
|
+
* @memberof google.api.PhpSettings
|
|
70773
|
+
* @static
|
|
70774
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
70775
|
+
* @returns {google.api.PhpSettings} PhpSettings
|
|
70776
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
70777
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70778
|
+
*/
|
|
70779
|
+
PhpSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
70780
|
+
if (!(reader instanceof $Reader))
|
|
70781
|
+
reader = new $Reader(reader);
|
|
70782
|
+
return this.decode(reader, reader.uint32());
|
|
70783
|
+
};
|
|
70784
|
+
|
|
70785
|
+
/**
|
|
70786
|
+
* Verifies a PhpSettings message.
|
|
70787
|
+
* @function verify
|
|
70788
|
+
* @memberof google.api.PhpSettings
|
|
70789
|
+
* @static
|
|
70790
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
70791
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
70792
|
+
*/
|
|
70793
|
+
PhpSettings.verify = function verify(message) {
|
|
70794
|
+
if (typeof message !== "object" || message === null)
|
|
70795
|
+
return "object expected";
|
|
70796
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
70797
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
70798
|
+
if (error)
|
|
70799
|
+
return "common." + error;
|
|
70800
|
+
}
|
|
70801
|
+
return null;
|
|
70802
|
+
};
|
|
70803
|
+
|
|
70804
|
+
/**
|
|
70805
|
+
* Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
|
|
70806
|
+
* @function fromObject
|
|
70807
|
+
* @memberof google.api.PhpSettings
|
|
70808
|
+
* @static
|
|
70809
|
+
* @param {Object.<string,*>} object Plain object
|
|
70810
|
+
* @returns {google.api.PhpSettings} PhpSettings
|
|
70811
|
+
*/
|
|
70812
|
+
PhpSettings.fromObject = function fromObject(object) {
|
|
70813
|
+
if (object instanceof $root.google.api.PhpSettings)
|
|
70814
|
+
return object;
|
|
70815
|
+
var message = new $root.google.api.PhpSettings();
|
|
70816
|
+
if (object.common != null) {
|
|
70817
|
+
if (typeof object.common !== "object")
|
|
70818
|
+
throw TypeError(".google.api.PhpSettings.common: object expected");
|
|
70819
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
70820
|
+
}
|
|
70821
|
+
return message;
|
|
70822
|
+
};
|
|
70823
|
+
|
|
70824
|
+
/**
|
|
70825
|
+
* Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
|
|
70826
|
+
* @function toObject
|
|
70827
|
+
* @memberof google.api.PhpSettings
|
|
70828
|
+
* @static
|
|
70829
|
+
* @param {google.api.PhpSettings} message PhpSettings
|
|
70830
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
70831
|
+
* @returns {Object.<string,*>} Plain object
|
|
70832
|
+
*/
|
|
70833
|
+
PhpSettings.toObject = function toObject(message, options) {
|
|
70834
|
+
if (!options)
|
|
70835
|
+
options = {};
|
|
70836
|
+
var object = {};
|
|
70837
|
+
if (options.defaults)
|
|
70838
|
+
object.common = null;
|
|
70839
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
70840
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
70841
|
+
return object;
|
|
70842
|
+
};
|
|
70843
|
+
|
|
70844
|
+
/**
|
|
70845
|
+
* Converts this PhpSettings to JSON.
|
|
70846
|
+
* @function toJSON
|
|
70847
|
+
* @memberof google.api.PhpSettings
|
|
70848
|
+
* @instance
|
|
70849
|
+
* @returns {Object.<string,*>} JSON object
|
|
70850
|
+
*/
|
|
70851
|
+
PhpSettings.prototype.toJSON = function toJSON() {
|
|
70852
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
70853
|
+
};
|
|
70854
|
+
|
|
70855
|
+
/**
|
|
70856
|
+
* Gets the default type url for PhpSettings
|
|
70857
|
+
* @function getTypeUrl
|
|
70858
|
+
* @memberof google.api.PhpSettings
|
|
70859
|
+
* @static
|
|
70860
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
70861
|
+
* @returns {string} The default type url
|
|
70862
|
+
*/
|
|
70863
|
+
PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
70864
|
+
if (typeUrlPrefix === undefined) {
|
|
70865
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
70866
|
+
}
|
|
70867
|
+
return typeUrlPrefix + "/google.api.PhpSettings";
|
|
70868
|
+
};
|
|
70869
|
+
|
|
70870
|
+
return PhpSettings;
|
|
70871
|
+
})();
|
|
70872
|
+
|
|
70873
|
+
api.PythonSettings = (function() {
|
|
70874
|
+
|
|
70875
|
+
/**
|
|
70876
|
+
* Properties of a PythonSettings.
|
|
70877
|
+
* @memberof google.api
|
|
70878
|
+
* @interface IPythonSettings
|
|
70879
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
|
|
70880
|
+
*/
|
|
70881
|
+
|
|
70882
|
+
/**
|
|
70883
|
+
* Constructs a new PythonSettings.
|
|
70884
|
+
* @memberof google.api
|
|
70885
|
+
* @classdesc Represents a PythonSettings.
|
|
70886
|
+
* @implements IPythonSettings
|
|
70887
|
+
* @constructor
|
|
70888
|
+
* @param {google.api.IPythonSettings=} [properties] Properties to set
|
|
70889
|
+
*/
|
|
70890
|
+
function PythonSettings(properties) {
|
|
70891
|
+
if (properties)
|
|
70892
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
70893
|
+
if (properties[keys[i]] != null)
|
|
70894
|
+
this[keys[i]] = properties[keys[i]];
|
|
70895
|
+
}
|
|
70896
|
+
|
|
70897
|
+
/**
|
|
70898
|
+
* PythonSettings common.
|
|
70899
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
70900
|
+
* @memberof google.api.PythonSettings
|
|
70901
|
+
* @instance
|
|
70902
|
+
*/
|
|
70903
|
+
PythonSettings.prototype.common = null;
|
|
70904
|
+
|
|
70905
|
+
/**
|
|
70906
|
+
* Creates a new PythonSettings instance using the specified properties.
|
|
70907
|
+
* @function create
|
|
70908
|
+
* @memberof google.api.PythonSettings
|
|
70909
|
+
* @static
|
|
70910
|
+
* @param {google.api.IPythonSettings=} [properties] Properties to set
|
|
70911
|
+
* @returns {google.api.PythonSettings} PythonSettings instance
|
|
70912
|
+
*/
|
|
70913
|
+
PythonSettings.create = function create(properties) {
|
|
70914
|
+
return new PythonSettings(properties);
|
|
70915
|
+
};
|
|
70916
|
+
|
|
70917
|
+
/**
|
|
70918
|
+
* Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
|
|
70919
|
+
* @function encode
|
|
70920
|
+
* @memberof google.api.PythonSettings
|
|
70921
|
+
* @static
|
|
70922
|
+
* @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
|
|
70923
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
70924
|
+
* @returns {$protobuf.Writer} Writer
|
|
70925
|
+
*/
|
|
70926
|
+
PythonSettings.encode = function encode(message, writer) {
|
|
70927
|
+
if (!writer)
|
|
70928
|
+
writer = $Writer.create();
|
|
70929
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
70930
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
70931
|
+
return writer;
|
|
70932
|
+
};
|
|
70933
|
+
|
|
70934
|
+
/**
|
|
70935
|
+
* Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
|
|
70936
|
+
* @function encodeDelimited
|
|
70937
|
+
* @memberof google.api.PythonSettings
|
|
70938
|
+
* @static
|
|
70939
|
+
* @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
|
|
70940
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
70941
|
+
* @returns {$protobuf.Writer} Writer
|
|
70942
|
+
*/
|
|
70943
|
+
PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
70944
|
+
return this.encode(message, writer).ldelim();
|
|
70945
|
+
};
|
|
70946
|
+
|
|
70947
|
+
/**
|
|
70948
|
+
* Decodes a PythonSettings message from the specified reader or buffer.
|
|
70949
|
+
* @function decode
|
|
70950
|
+
* @memberof google.api.PythonSettings
|
|
70951
|
+
* @static
|
|
70952
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
70953
|
+
* @param {number} [length] Message length if known beforehand
|
|
70954
|
+
* @returns {google.api.PythonSettings} PythonSettings
|
|
70955
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
70956
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70957
|
+
*/
|
|
70958
|
+
PythonSettings.decode = function decode(reader, length) {
|
|
70959
|
+
if (!(reader instanceof $Reader))
|
|
70960
|
+
reader = $Reader.create(reader);
|
|
70961
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
|
|
70962
|
+
while (reader.pos < end) {
|
|
70963
|
+
var tag = reader.uint32();
|
|
70964
|
+
switch (tag >>> 3) {
|
|
70965
|
+
case 1: {
|
|
70966
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
70967
|
+
break;
|
|
70968
|
+
}
|
|
70969
|
+
default:
|
|
70970
|
+
reader.skipType(tag & 7);
|
|
70971
|
+
break;
|
|
70972
|
+
}
|
|
70973
|
+
}
|
|
70974
|
+
return message;
|
|
70975
|
+
};
|
|
70976
|
+
|
|
70977
|
+
/**
|
|
70978
|
+
* Decodes a PythonSettings message from the specified reader or buffer, length delimited.
|
|
70979
|
+
* @function decodeDelimited
|
|
70980
|
+
* @memberof google.api.PythonSettings
|
|
70981
|
+
* @static
|
|
70982
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
70983
|
+
* @returns {google.api.PythonSettings} PythonSettings
|
|
70984
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
70985
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
70986
|
+
*/
|
|
70987
|
+
PythonSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
70988
|
+
if (!(reader instanceof $Reader))
|
|
70989
|
+
reader = new $Reader(reader);
|
|
70990
|
+
return this.decode(reader, reader.uint32());
|
|
70991
|
+
};
|
|
70992
|
+
|
|
70993
|
+
/**
|
|
70994
|
+
* Verifies a PythonSettings message.
|
|
70995
|
+
* @function verify
|
|
70996
|
+
* @memberof google.api.PythonSettings
|
|
70997
|
+
* @static
|
|
70998
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
70999
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
71000
|
+
*/
|
|
71001
|
+
PythonSettings.verify = function verify(message) {
|
|
71002
|
+
if (typeof message !== "object" || message === null)
|
|
71003
|
+
return "object expected";
|
|
71004
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
71005
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
71006
|
+
if (error)
|
|
71007
|
+
return "common." + error;
|
|
71008
|
+
}
|
|
71009
|
+
return null;
|
|
71010
|
+
};
|
|
71011
|
+
|
|
71012
|
+
/**
|
|
71013
|
+
* Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
|
|
71014
|
+
* @function fromObject
|
|
71015
|
+
* @memberof google.api.PythonSettings
|
|
71016
|
+
* @static
|
|
71017
|
+
* @param {Object.<string,*>} object Plain object
|
|
71018
|
+
* @returns {google.api.PythonSettings} PythonSettings
|
|
71019
|
+
*/
|
|
71020
|
+
PythonSettings.fromObject = function fromObject(object) {
|
|
71021
|
+
if (object instanceof $root.google.api.PythonSettings)
|
|
71022
|
+
return object;
|
|
71023
|
+
var message = new $root.google.api.PythonSettings();
|
|
71024
|
+
if (object.common != null) {
|
|
71025
|
+
if (typeof object.common !== "object")
|
|
71026
|
+
throw TypeError(".google.api.PythonSettings.common: object expected");
|
|
71027
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
71028
|
+
}
|
|
71029
|
+
return message;
|
|
71030
|
+
};
|
|
71031
|
+
|
|
71032
|
+
/**
|
|
71033
|
+
* Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
|
|
71034
|
+
* @function toObject
|
|
71035
|
+
* @memberof google.api.PythonSettings
|
|
71036
|
+
* @static
|
|
71037
|
+
* @param {google.api.PythonSettings} message PythonSettings
|
|
71038
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
71039
|
+
* @returns {Object.<string,*>} Plain object
|
|
71040
|
+
*/
|
|
71041
|
+
PythonSettings.toObject = function toObject(message, options) {
|
|
71042
|
+
if (!options)
|
|
71043
|
+
options = {};
|
|
71044
|
+
var object = {};
|
|
71045
|
+
if (options.defaults)
|
|
71046
|
+
object.common = null;
|
|
71047
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
71048
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
71049
|
+
return object;
|
|
71050
|
+
};
|
|
71051
|
+
|
|
71052
|
+
/**
|
|
71053
|
+
* Converts this PythonSettings to JSON.
|
|
71054
|
+
* @function toJSON
|
|
71055
|
+
* @memberof google.api.PythonSettings
|
|
71056
|
+
* @instance
|
|
71057
|
+
* @returns {Object.<string,*>} JSON object
|
|
71058
|
+
*/
|
|
71059
|
+
PythonSettings.prototype.toJSON = function toJSON() {
|
|
71060
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
71061
|
+
};
|
|
71062
|
+
|
|
71063
|
+
/**
|
|
71064
|
+
* Gets the default type url for PythonSettings
|
|
71065
|
+
* @function getTypeUrl
|
|
71066
|
+
* @memberof google.api.PythonSettings
|
|
71067
|
+
* @static
|
|
71068
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
71069
|
+
* @returns {string} The default type url
|
|
71070
|
+
*/
|
|
71071
|
+
PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
71072
|
+
if (typeUrlPrefix === undefined) {
|
|
71073
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
71074
|
+
}
|
|
71075
|
+
return typeUrlPrefix + "/google.api.PythonSettings";
|
|
71076
|
+
};
|
|
71077
|
+
|
|
71078
|
+
return PythonSettings;
|
|
71079
|
+
})();
|
|
71080
|
+
|
|
71081
|
+
api.NodeSettings = (function() {
|
|
71082
|
+
|
|
71083
|
+
/**
|
|
71084
|
+
* Properties of a NodeSettings.
|
|
71085
|
+
* @memberof google.api
|
|
71086
|
+
* @interface INodeSettings
|
|
71087
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
|
|
71088
|
+
*/
|
|
71089
|
+
|
|
71090
|
+
/**
|
|
71091
|
+
* Constructs a new NodeSettings.
|
|
71092
|
+
* @memberof google.api
|
|
71093
|
+
* @classdesc Represents a NodeSettings.
|
|
71094
|
+
* @implements INodeSettings
|
|
71095
|
+
* @constructor
|
|
71096
|
+
* @param {google.api.INodeSettings=} [properties] Properties to set
|
|
71097
|
+
*/
|
|
71098
|
+
function NodeSettings(properties) {
|
|
71099
|
+
if (properties)
|
|
71100
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
71101
|
+
if (properties[keys[i]] != null)
|
|
71102
|
+
this[keys[i]] = properties[keys[i]];
|
|
71103
|
+
}
|
|
71104
|
+
|
|
71105
|
+
/**
|
|
71106
|
+
* NodeSettings common.
|
|
71107
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
71108
|
+
* @memberof google.api.NodeSettings
|
|
71109
|
+
* @instance
|
|
71110
|
+
*/
|
|
71111
|
+
NodeSettings.prototype.common = null;
|
|
71112
|
+
|
|
71113
|
+
/**
|
|
71114
|
+
* Creates a new NodeSettings instance using the specified properties.
|
|
71115
|
+
* @function create
|
|
71116
|
+
* @memberof google.api.NodeSettings
|
|
71117
|
+
* @static
|
|
71118
|
+
* @param {google.api.INodeSettings=} [properties] Properties to set
|
|
71119
|
+
* @returns {google.api.NodeSettings} NodeSettings instance
|
|
71120
|
+
*/
|
|
71121
|
+
NodeSettings.create = function create(properties) {
|
|
71122
|
+
return new NodeSettings(properties);
|
|
71123
|
+
};
|
|
71124
|
+
|
|
71125
|
+
/**
|
|
71126
|
+
* Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
|
|
71127
|
+
* @function encode
|
|
71128
|
+
* @memberof google.api.NodeSettings
|
|
71129
|
+
* @static
|
|
71130
|
+
* @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
|
|
71131
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71132
|
+
* @returns {$protobuf.Writer} Writer
|
|
71133
|
+
*/
|
|
71134
|
+
NodeSettings.encode = function encode(message, writer) {
|
|
71135
|
+
if (!writer)
|
|
71136
|
+
writer = $Writer.create();
|
|
71137
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
71138
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
71139
|
+
return writer;
|
|
71140
|
+
};
|
|
71141
|
+
|
|
71142
|
+
/**
|
|
71143
|
+
* Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
|
|
71144
|
+
* @function encodeDelimited
|
|
71145
|
+
* @memberof google.api.NodeSettings
|
|
71146
|
+
* @static
|
|
71147
|
+
* @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
|
|
71148
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71149
|
+
* @returns {$protobuf.Writer} Writer
|
|
71150
|
+
*/
|
|
71151
|
+
NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
71152
|
+
return this.encode(message, writer).ldelim();
|
|
71153
|
+
};
|
|
71154
|
+
|
|
71155
|
+
/**
|
|
71156
|
+
* Decodes a NodeSettings message from the specified reader or buffer.
|
|
71157
|
+
* @function decode
|
|
71158
|
+
* @memberof google.api.NodeSettings
|
|
71159
|
+
* @static
|
|
71160
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71161
|
+
* @param {number} [length] Message length if known beforehand
|
|
71162
|
+
* @returns {google.api.NodeSettings} NodeSettings
|
|
71163
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71164
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71165
|
+
*/
|
|
71166
|
+
NodeSettings.decode = function decode(reader, length) {
|
|
71167
|
+
if (!(reader instanceof $Reader))
|
|
71168
|
+
reader = $Reader.create(reader);
|
|
71169
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
|
|
71170
|
+
while (reader.pos < end) {
|
|
71171
|
+
var tag = reader.uint32();
|
|
71172
|
+
switch (tag >>> 3) {
|
|
71173
|
+
case 1: {
|
|
71174
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
71175
|
+
break;
|
|
71176
|
+
}
|
|
71177
|
+
default:
|
|
71178
|
+
reader.skipType(tag & 7);
|
|
71179
|
+
break;
|
|
71180
|
+
}
|
|
71181
|
+
}
|
|
71182
|
+
return message;
|
|
71183
|
+
};
|
|
71184
|
+
|
|
71185
|
+
/**
|
|
71186
|
+
* Decodes a NodeSettings message from the specified reader or buffer, length delimited.
|
|
71187
|
+
* @function decodeDelimited
|
|
71188
|
+
* @memberof google.api.NodeSettings
|
|
71189
|
+
* @static
|
|
71190
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71191
|
+
* @returns {google.api.NodeSettings} NodeSettings
|
|
71192
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71193
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71194
|
+
*/
|
|
71195
|
+
NodeSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
71196
|
+
if (!(reader instanceof $Reader))
|
|
71197
|
+
reader = new $Reader(reader);
|
|
71198
|
+
return this.decode(reader, reader.uint32());
|
|
71199
|
+
};
|
|
71200
|
+
|
|
71201
|
+
/**
|
|
71202
|
+
* Verifies a NodeSettings message.
|
|
71203
|
+
* @function verify
|
|
71204
|
+
* @memberof google.api.NodeSettings
|
|
71205
|
+
* @static
|
|
71206
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
71207
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
71208
|
+
*/
|
|
71209
|
+
NodeSettings.verify = function verify(message) {
|
|
71210
|
+
if (typeof message !== "object" || message === null)
|
|
71211
|
+
return "object expected";
|
|
71212
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
71213
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
71214
|
+
if (error)
|
|
71215
|
+
return "common." + error;
|
|
71216
|
+
}
|
|
71217
|
+
return null;
|
|
71218
|
+
};
|
|
71219
|
+
|
|
71220
|
+
/**
|
|
71221
|
+
* Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
|
|
71222
|
+
* @function fromObject
|
|
71223
|
+
* @memberof google.api.NodeSettings
|
|
71224
|
+
* @static
|
|
71225
|
+
* @param {Object.<string,*>} object Plain object
|
|
71226
|
+
* @returns {google.api.NodeSettings} NodeSettings
|
|
71227
|
+
*/
|
|
71228
|
+
NodeSettings.fromObject = function fromObject(object) {
|
|
71229
|
+
if (object instanceof $root.google.api.NodeSettings)
|
|
71230
|
+
return object;
|
|
71231
|
+
var message = new $root.google.api.NodeSettings();
|
|
71232
|
+
if (object.common != null) {
|
|
71233
|
+
if (typeof object.common !== "object")
|
|
71234
|
+
throw TypeError(".google.api.NodeSettings.common: object expected");
|
|
71235
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
71236
|
+
}
|
|
71237
|
+
return message;
|
|
71238
|
+
};
|
|
71239
|
+
|
|
71240
|
+
/**
|
|
71241
|
+
* Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
|
|
71242
|
+
* @function toObject
|
|
71243
|
+
* @memberof google.api.NodeSettings
|
|
71244
|
+
* @static
|
|
71245
|
+
* @param {google.api.NodeSettings} message NodeSettings
|
|
71246
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
71247
|
+
* @returns {Object.<string,*>} Plain object
|
|
71248
|
+
*/
|
|
71249
|
+
NodeSettings.toObject = function toObject(message, options) {
|
|
71250
|
+
if (!options)
|
|
71251
|
+
options = {};
|
|
71252
|
+
var object = {};
|
|
71253
|
+
if (options.defaults)
|
|
71254
|
+
object.common = null;
|
|
71255
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
71256
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
71257
|
+
return object;
|
|
71258
|
+
};
|
|
71259
|
+
|
|
71260
|
+
/**
|
|
71261
|
+
* Converts this NodeSettings to JSON.
|
|
71262
|
+
* @function toJSON
|
|
71263
|
+
* @memberof google.api.NodeSettings
|
|
71264
|
+
* @instance
|
|
71265
|
+
* @returns {Object.<string,*>} JSON object
|
|
71266
|
+
*/
|
|
71267
|
+
NodeSettings.prototype.toJSON = function toJSON() {
|
|
71268
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
71269
|
+
};
|
|
71270
|
+
|
|
71271
|
+
/**
|
|
71272
|
+
* Gets the default type url for NodeSettings
|
|
71273
|
+
* @function getTypeUrl
|
|
71274
|
+
* @memberof google.api.NodeSettings
|
|
71275
|
+
* @static
|
|
71276
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
71277
|
+
* @returns {string} The default type url
|
|
71278
|
+
*/
|
|
71279
|
+
NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
71280
|
+
if (typeUrlPrefix === undefined) {
|
|
71281
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
71282
|
+
}
|
|
71283
|
+
return typeUrlPrefix + "/google.api.NodeSettings";
|
|
71284
|
+
};
|
|
71285
|
+
|
|
71286
|
+
return NodeSettings;
|
|
71287
|
+
})();
|
|
71288
|
+
|
|
71289
|
+
api.DotnetSettings = (function() {
|
|
71290
|
+
|
|
71291
|
+
/**
|
|
71292
|
+
* Properties of a DotnetSettings.
|
|
71293
|
+
* @memberof google.api
|
|
71294
|
+
* @interface IDotnetSettings
|
|
71295
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
|
|
71296
|
+
*/
|
|
71297
|
+
|
|
71298
|
+
/**
|
|
71299
|
+
* Constructs a new DotnetSettings.
|
|
71300
|
+
* @memberof google.api
|
|
71301
|
+
* @classdesc Represents a DotnetSettings.
|
|
71302
|
+
* @implements IDotnetSettings
|
|
71303
|
+
* @constructor
|
|
71304
|
+
* @param {google.api.IDotnetSettings=} [properties] Properties to set
|
|
71305
|
+
*/
|
|
71306
|
+
function DotnetSettings(properties) {
|
|
71307
|
+
if (properties)
|
|
71308
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
71309
|
+
if (properties[keys[i]] != null)
|
|
71310
|
+
this[keys[i]] = properties[keys[i]];
|
|
71311
|
+
}
|
|
71312
|
+
|
|
71313
|
+
/**
|
|
71314
|
+
* DotnetSettings common.
|
|
71315
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
71316
|
+
* @memberof google.api.DotnetSettings
|
|
71317
|
+
* @instance
|
|
71318
|
+
*/
|
|
71319
|
+
DotnetSettings.prototype.common = null;
|
|
71320
|
+
|
|
71321
|
+
/**
|
|
71322
|
+
* Creates a new DotnetSettings instance using the specified properties.
|
|
71323
|
+
* @function create
|
|
71324
|
+
* @memberof google.api.DotnetSettings
|
|
71325
|
+
* @static
|
|
71326
|
+
* @param {google.api.IDotnetSettings=} [properties] Properties to set
|
|
71327
|
+
* @returns {google.api.DotnetSettings} DotnetSettings instance
|
|
71328
|
+
*/
|
|
71329
|
+
DotnetSettings.create = function create(properties) {
|
|
71330
|
+
return new DotnetSettings(properties);
|
|
71331
|
+
};
|
|
71332
|
+
|
|
71333
|
+
/**
|
|
71334
|
+
* Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
|
|
71335
|
+
* @function encode
|
|
71336
|
+
* @memberof google.api.DotnetSettings
|
|
71337
|
+
* @static
|
|
71338
|
+
* @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
|
|
71339
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71340
|
+
* @returns {$protobuf.Writer} Writer
|
|
71341
|
+
*/
|
|
71342
|
+
DotnetSettings.encode = function encode(message, writer) {
|
|
71343
|
+
if (!writer)
|
|
71344
|
+
writer = $Writer.create();
|
|
71345
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
71346
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
71347
|
+
return writer;
|
|
71348
|
+
};
|
|
71349
|
+
|
|
71350
|
+
/**
|
|
71351
|
+
* Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
|
|
71352
|
+
* @function encodeDelimited
|
|
71353
|
+
* @memberof google.api.DotnetSettings
|
|
71354
|
+
* @static
|
|
71355
|
+
* @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
|
|
71356
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71357
|
+
* @returns {$protobuf.Writer} Writer
|
|
71358
|
+
*/
|
|
71359
|
+
DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
71360
|
+
return this.encode(message, writer).ldelim();
|
|
71361
|
+
};
|
|
71362
|
+
|
|
71363
|
+
/**
|
|
71364
|
+
* Decodes a DotnetSettings message from the specified reader or buffer.
|
|
71365
|
+
* @function decode
|
|
71366
|
+
* @memberof google.api.DotnetSettings
|
|
71367
|
+
* @static
|
|
71368
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71369
|
+
* @param {number} [length] Message length if known beforehand
|
|
71370
|
+
* @returns {google.api.DotnetSettings} DotnetSettings
|
|
71371
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71372
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71373
|
+
*/
|
|
71374
|
+
DotnetSettings.decode = function decode(reader, length) {
|
|
71375
|
+
if (!(reader instanceof $Reader))
|
|
71376
|
+
reader = $Reader.create(reader);
|
|
71377
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
|
|
71378
|
+
while (reader.pos < end) {
|
|
71379
|
+
var tag = reader.uint32();
|
|
71380
|
+
switch (tag >>> 3) {
|
|
71381
|
+
case 1: {
|
|
71382
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
71383
|
+
break;
|
|
71384
|
+
}
|
|
71385
|
+
default:
|
|
71386
|
+
reader.skipType(tag & 7);
|
|
71387
|
+
break;
|
|
71388
|
+
}
|
|
71389
|
+
}
|
|
71390
|
+
return message;
|
|
71391
|
+
};
|
|
71392
|
+
|
|
71393
|
+
/**
|
|
71394
|
+
* Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
|
|
71395
|
+
* @function decodeDelimited
|
|
71396
|
+
* @memberof google.api.DotnetSettings
|
|
71397
|
+
* @static
|
|
71398
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71399
|
+
* @returns {google.api.DotnetSettings} DotnetSettings
|
|
71400
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71401
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71402
|
+
*/
|
|
71403
|
+
DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
71404
|
+
if (!(reader instanceof $Reader))
|
|
71405
|
+
reader = new $Reader(reader);
|
|
71406
|
+
return this.decode(reader, reader.uint32());
|
|
71407
|
+
};
|
|
71408
|
+
|
|
71409
|
+
/**
|
|
71410
|
+
* Verifies a DotnetSettings message.
|
|
71411
|
+
* @function verify
|
|
71412
|
+
* @memberof google.api.DotnetSettings
|
|
71413
|
+
* @static
|
|
71414
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
71415
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
71416
|
+
*/
|
|
71417
|
+
DotnetSettings.verify = function verify(message) {
|
|
71418
|
+
if (typeof message !== "object" || message === null)
|
|
71419
|
+
return "object expected";
|
|
71420
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
71421
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
71422
|
+
if (error)
|
|
71423
|
+
return "common." + error;
|
|
71424
|
+
}
|
|
71425
|
+
return null;
|
|
71426
|
+
};
|
|
71427
|
+
|
|
71428
|
+
/**
|
|
71429
|
+
* Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
|
|
71430
|
+
* @function fromObject
|
|
71431
|
+
* @memberof google.api.DotnetSettings
|
|
71432
|
+
* @static
|
|
71433
|
+
* @param {Object.<string,*>} object Plain object
|
|
71434
|
+
* @returns {google.api.DotnetSettings} DotnetSettings
|
|
71435
|
+
*/
|
|
71436
|
+
DotnetSettings.fromObject = function fromObject(object) {
|
|
71437
|
+
if (object instanceof $root.google.api.DotnetSettings)
|
|
71438
|
+
return object;
|
|
71439
|
+
var message = new $root.google.api.DotnetSettings();
|
|
71440
|
+
if (object.common != null) {
|
|
71441
|
+
if (typeof object.common !== "object")
|
|
71442
|
+
throw TypeError(".google.api.DotnetSettings.common: object expected");
|
|
71443
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
71444
|
+
}
|
|
71445
|
+
return message;
|
|
71446
|
+
};
|
|
71447
|
+
|
|
71448
|
+
/**
|
|
71449
|
+
* Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
|
|
71450
|
+
* @function toObject
|
|
71451
|
+
* @memberof google.api.DotnetSettings
|
|
71452
|
+
* @static
|
|
71453
|
+
* @param {google.api.DotnetSettings} message DotnetSettings
|
|
71454
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
71455
|
+
* @returns {Object.<string,*>} Plain object
|
|
71456
|
+
*/
|
|
71457
|
+
DotnetSettings.toObject = function toObject(message, options) {
|
|
71458
|
+
if (!options)
|
|
71459
|
+
options = {};
|
|
71460
|
+
var object = {};
|
|
71461
|
+
if (options.defaults)
|
|
71462
|
+
object.common = null;
|
|
71463
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
71464
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
71465
|
+
return object;
|
|
71466
|
+
};
|
|
71467
|
+
|
|
71468
|
+
/**
|
|
71469
|
+
* Converts this DotnetSettings to JSON.
|
|
71470
|
+
* @function toJSON
|
|
71471
|
+
* @memberof google.api.DotnetSettings
|
|
71472
|
+
* @instance
|
|
71473
|
+
* @returns {Object.<string,*>} JSON object
|
|
71474
|
+
*/
|
|
71475
|
+
DotnetSettings.prototype.toJSON = function toJSON() {
|
|
71476
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
71477
|
+
};
|
|
71478
|
+
|
|
71479
|
+
/**
|
|
71480
|
+
* Gets the default type url for DotnetSettings
|
|
71481
|
+
* @function getTypeUrl
|
|
71482
|
+
* @memberof google.api.DotnetSettings
|
|
71483
|
+
* @static
|
|
71484
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
71485
|
+
* @returns {string} The default type url
|
|
71486
|
+
*/
|
|
71487
|
+
DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
71488
|
+
if (typeUrlPrefix === undefined) {
|
|
71489
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
71490
|
+
}
|
|
71491
|
+
return typeUrlPrefix + "/google.api.DotnetSettings";
|
|
71492
|
+
};
|
|
71493
|
+
|
|
71494
|
+
return DotnetSettings;
|
|
71495
|
+
})();
|
|
71496
|
+
|
|
71497
|
+
api.RubySettings = (function() {
|
|
71498
|
+
|
|
71499
|
+
/**
|
|
71500
|
+
* Properties of a RubySettings.
|
|
71501
|
+
* @memberof google.api
|
|
71502
|
+
* @interface IRubySettings
|
|
71503
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
|
|
71504
|
+
*/
|
|
71505
|
+
|
|
71506
|
+
/**
|
|
71507
|
+
* Constructs a new RubySettings.
|
|
71508
|
+
* @memberof google.api
|
|
71509
|
+
* @classdesc Represents a RubySettings.
|
|
71510
|
+
* @implements IRubySettings
|
|
71511
|
+
* @constructor
|
|
71512
|
+
* @param {google.api.IRubySettings=} [properties] Properties to set
|
|
71513
|
+
*/
|
|
71514
|
+
function RubySettings(properties) {
|
|
71515
|
+
if (properties)
|
|
71516
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
71517
|
+
if (properties[keys[i]] != null)
|
|
71518
|
+
this[keys[i]] = properties[keys[i]];
|
|
71519
|
+
}
|
|
71520
|
+
|
|
71521
|
+
/**
|
|
71522
|
+
* RubySettings common.
|
|
71523
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
71524
|
+
* @memberof google.api.RubySettings
|
|
71525
|
+
* @instance
|
|
71526
|
+
*/
|
|
71527
|
+
RubySettings.prototype.common = null;
|
|
71528
|
+
|
|
71529
|
+
/**
|
|
71530
|
+
* Creates a new RubySettings instance using the specified properties.
|
|
71531
|
+
* @function create
|
|
71532
|
+
* @memberof google.api.RubySettings
|
|
71533
|
+
* @static
|
|
71534
|
+
* @param {google.api.IRubySettings=} [properties] Properties to set
|
|
71535
|
+
* @returns {google.api.RubySettings} RubySettings instance
|
|
71536
|
+
*/
|
|
71537
|
+
RubySettings.create = function create(properties) {
|
|
71538
|
+
return new RubySettings(properties);
|
|
71539
|
+
};
|
|
71540
|
+
|
|
71541
|
+
/**
|
|
71542
|
+
* Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
|
|
71543
|
+
* @function encode
|
|
71544
|
+
* @memberof google.api.RubySettings
|
|
71545
|
+
* @static
|
|
71546
|
+
* @param {google.api.IRubySettings} message RubySettings message or plain object to encode
|
|
71547
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71548
|
+
* @returns {$protobuf.Writer} Writer
|
|
71549
|
+
*/
|
|
71550
|
+
RubySettings.encode = function encode(message, writer) {
|
|
71551
|
+
if (!writer)
|
|
71552
|
+
writer = $Writer.create();
|
|
71553
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
71554
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
71555
|
+
return writer;
|
|
71556
|
+
};
|
|
71557
|
+
|
|
71558
|
+
/**
|
|
71559
|
+
* Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
|
|
71560
|
+
* @function encodeDelimited
|
|
71561
|
+
* @memberof google.api.RubySettings
|
|
71562
|
+
* @static
|
|
71563
|
+
* @param {google.api.IRubySettings} message RubySettings message or plain object to encode
|
|
71564
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71565
|
+
* @returns {$protobuf.Writer} Writer
|
|
71566
|
+
*/
|
|
71567
|
+
RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
71568
|
+
return this.encode(message, writer).ldelim();
|
|
71569
|
+
};
|
|
71570
|
+
|
|
71571
|
+
/**
|
|
71572
|
+
* Decodes a RubySettings message from the specified reader or buffer.
|
|
71573
|
+
* @function decode
|
|
71574
|
+
* @memberof google.api.RubySettings
|
|
71575
|
+
* @static
|
|
71576
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71577
|
+
* @param {number} [length] Message length if known beforehand
|
|
71578
|
+
* @returns {google.api.RubySettings} RubySettings
|
|
71579
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71580
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71581
|
+
*/
|
|
71582
|
+
RubySettings.decode = function decode(reader, length) {
|
|
71583
|
+
if (!(reader instanceof $Reader))
|
|
71584
|
+
reader = $Reader.create(reader);
|
|
71585
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
|
|
71586
|
+
while (reader.pos < end) {
|
|
71587
|
+
var tag = reader.uint32();
|
|
71588
|
+
switch (tag >>> 3) {
|
|
71589
|
+
case 1: {
|
|
71590
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
71591
|
+
break;
|
|
71592
|
+
}
|
|
71593
|
+
default:
|
|
71594
|
+
reader.skipType(tag & 7);
|
|
71595
|
+
break;
|
|
71596
|
+
}
|
|
71597
|
+
}
|
|
71598
|
+
return message;
|
|
71599
|
+
};
|
|
71600
|
+
|
|
71601
|
+
/**
|
|
71602
|
+
* Decodes a RubySettings message from the specified reader or buffer, length delimited.
|
|
71603
|
+
* @function decodeDelimited
|
|
71604
|
+
* @memberof google.api.RubySettings
|
|
71605
|
+
* @static
|
|
71606
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71607
|
+
* @returns {google.api.RubySettings} RubySettings
|
|
71608
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71609
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71610
|
+
*/
|
|
71611
|
+
RubySettings.decodeDelimited = function decodeDelimited(reader) {
|
|
71612
|
+
if (!(reader instanceof $Reader))
|
|
71613
|
+
reader = new $Reader(reader);
|
|
71614
|
+
return this.decode(reader, reader.uint32());
|
|
71615
|
+
};
|
|
71616
|
+
|
|
71617
|
+
/**
|
|
71618
|
+
* Verifies a RubySettings message.
|
|
71619
|
+
* @function verify
|
|
71620
|
+
* @memberof google.api.RubySettings
|
|
71621
|
+
* @static
|
|
71622
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
71623
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
71624
|
+
*/
|
|
71625
|
+
RubySettings.verify = function verify(message) {
|
|
71626
|
+
if (typeof message !== "object" || message === null)
|
|
71627
|
+
return "object expected";
|
|
71628
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
71629
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
71630
|
+
if (error)
|
|
71631
|
+
return "common." + error;
|
|
71632
|
+
}
|
|
71633
|
+
return null;
|
|
71634
|
+
};
|
|
71635
|
+
|
|
71636
|
+
/**
|
|
71637
|
+
* Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
|
|
71638
|
+
* @function fromObject
|
|
71639
|
+
* @memberof google.api.RubySettings
|
|
71640
|
+
* @static
|
|
71641
|
+
* @param {Object.<string,*>} object Plain object
|
|
71642
|
+
* @returns {google.api.RubySettings} RubySettings
|
|
71643
|
+
*/
|
|
71644
|
+
RubySettings.fromObject = function fromObject(object) {
|
|
71645
|
+
if (object instanceof $root.google.api.RubySettings)
|
|
71646
|
+
return object;
|
|
71647
|
+
var message = new $root.google.api.RubySettings();
|
|
71648
|
+
if (object.common != null) {
|
|
71649
|
+
if (typeof object.common !== "object")
|
|
71650
|
+
throw TypeError(".google.api.RubySettings.common: object expected");
|
|
71651
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
71652
|
+
}
|
|
71653
|
+
return message;
|
|
71654
|
+
};
|
|
71655
|
+
|
|
71656
|
+
/**
|
|
71657
|
+
* Creates a plain object from a RubySettings message. Also converts values to other types if specified.
|
|
71658
|
+
* @function toObject
|
|
71659
|
+
* @memberof google.api.RubySettings
|
|
71660
|
+
* @static
|
|
71661
|
+
* @param {google.api.RubySettings} message RubySettings
|
|
71662
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
71663
|
+
* @returns {Object.<string,*>} Plain object
|
|
71664
|
+
*/
|
|
71665
|
+
RubySettings.toObject = function toObject(message, options) {
|
|
71666
|
+
if (!options)
|
|
71667
|
+
options = {};
|
|
71668
|
+
var object = {};
|
|
71669
|
+
if (options.defaults)
|
|
71670
|
+
object.common = null;
|
|
71671
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
71672
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
71673
|
+
return object;
|
|
71674
|
+
};
|
|
71675
|
+
|
|
71676
|
+
/**
|
|
71677
|
+
* Converts this RubySettings to JSON.
|
|
71678
|
+
* @function toJSON
|
|
71679
|
+
* @memberof google.api.RubySettings
|
|
71680
|
+
* @instance
|
|
71681
|
+
* @returns {Object.<string,*>} JSON object
|
|
71682
|
+
*/
|
|
71683
|
+
RubySettings.prototype.toJSON = function toJSON() {
|
|
71684
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
71685
|
+
};
|
|
71686
|
+
|
|
71687
|
+
/**
|
|
71688
|
+
* Gets the default type url for RubySettings
|
|
71689
|
+
* @function getTypeUrl
|
|
71690
|
+
* @memberof google.api.RubySettings
|
|
71691
|
+
* @static
|
|
71692
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
71693
|
+
* @returns {string} The default type url
|
|
71694
|
+
*/
|
|
71695
|
+
RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
71696
|
+
if (typeUrlPrefix === undefined) {
|
|
71697
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
71698
|
+
}
|
|
71699
|
+
return typeUrlPrefix + "/google.api.RubySettings";
|
|
71700
|
+
};
|
|
71701
|
+
|
|
71702
|
+
return RubySettings;
|
|
71703
|
+
})();
|
|
71704
|
+
|
|
71705
|
+
api.GoSettings = (function() {
|
|
71706
|
+
|
|
71707
|
+
/**
|
|
71708
|
+
* Properties of a GoSettings.
|
|
71709
|
+
* @memberof google.api
|
|
71710
|
+
* @interface IGoSettings
|
|
71711
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
|
|
71712
|
+
*/
|
|
71713
|
+
|
|
71714
|
+
/**
|
|
71715
|
+
* Constructs a new GoSettings.
|
|
71716
|
+
* @memberof google.api
|
|
71717
|
+
* @classdesc Represents a GoSettings.
|
|
71718
|
+
* @implements IGoSettings
|
|
71719
|
+
* @constructor
|
|
71720
|
+
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
71721
|
+
*/
|
|
71722
|
+
function GoSettings(properties) {
|
|
71723
|
+
if (properties)
|
|
71724
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
71725
|
+
if (properties[keys[i]] != null)
|
|
71726
|
+
this[keys[i]] = properties[keys[i]];
|
|
71727
|
+
}
|
|
71728
|
+
|
|
71729
|
+
/**
|
|
71730
|
+
* GoSettings common.
|
|
71731
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
71732
|
+
* @memberof google.api.GoSettings
|
|
71733
|
+
* @instance
|
|
71734
|
+
*/
|
|
71735
|
+
GoSettings.prototype.common = null;
|
|
71736
|
+
|
|
71737
|
+
/**
|
|
71738
|
+
* Creates a new GoSettings instance using the specified properties.
|
|
71739
|
+
* @function create
|
|
71740
|
+
* @memberof google.api.GoSettings
|
|
71741
|
+
* @static
|
|
71742
|
+
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
71743
|
+
* @returns {google.api.GoSettings} GoSettings instance
|
|
71744
|
+
*/
|
|
71745
|
+
GoSettings.create = function create(properties) {
|
|
71746
|
+
return new GoSettings(properties);
|
|
71747
|
+
};
|
|
71748
|
+
|
|
71749
|
+
/**
|
|
71750
|
+
* Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
|
|
71751
|
+
* @function encode
|
|
71752
|
+
* @memberof google.api.GoSettings
|
|
71753
|
+
* @static
|
|
71754
|
+
* @param {google.api.IGoSettings} message GoSettings message or plain object to encode
|
|
71755
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71756
|
+
* @returns {$protobuf.Writer} Writer
|
|
71757
|
+
*/
|
|
71758
|
+
GoSettings.encode = function encode(message, writer) {
|
|
71759
|
+
if (!writer)
|
|
71760
|
+
writer = $Writer.create();
|
|
71761
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
71762
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
71763
|
+
return writer;
|
|
71764
|
+
};
|
|
71765
|
+
|
|
71766
|
+
/**
|
|
71767
|
+
* Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
|
|
71768
|
+
* @function encodeDelimited
|
|
71769
|
+
* @memberof google.api.GoSettings
|
|
71770
|
+
* @static
|
|
71771
|
+
* @param {google.api.IGoSettings} message GoSettings message or plain object to encode
|
|
71772
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71773
|
+
* @returns {$protobuf.Writer} Writer
|
|
71774
|
+
*/
|
|
71775
|
+
GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
71776
|
+
return this.encode(message, writer).ldelim();
|
|
71777
|
+
};
|
|
71778
|
+
|
|
71779
|
+
/**
|
|
71780
|
+
* Decodes a GoSettings message from the specified reader or buffer.
|
|
71781
|
+
* @function decode
|
|
71782
|
+
* @memberof google.api.GoSettings
|
|
71783
|
+
* @static
|
|
71784
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71785
|
+
* @param {number} [length] Message length if known beforehand
|
|
71786
|
+
* @returns {google.api.GoSettings} GoSettings
|
|
71787
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71788
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71789
|
+
*/
|
|
71790
|
+
GoSettings.decode = function decode(reader, length) {
|
|
71791
|
+
if (!(reader instanceof $Reader))
|
|
71792
|
+
reader = $Reader.create(reader);
|
|
71793
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
|
|
71794
|
+
while (reader.pos < end) {
|
|
71795
|
+
var tag = reader.uint32();
|
|
71796
|
+
switch (tag >>> 3) {
|
|
71797
|
+
case 1: {
|
|
71798
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
71799
|
+
break;
|
|
71800
|
+
}
|
|
71801
|
+
default:
|
|
71802
|
+
reader.skipType(tag & 7);
|
|
71803
|
+
break;
|
|
71804
|
+
}
|
|
71805
|
+
}
|
|
71806
|
+
return message;
|
|
71807
|
+
};
|
|
71808
|
+
|
|
71809
|
+
/**
|
|
71810
|
+
* Decodes a GoSettings message from the specified reader or buffer, length delimited.
|
|
71811
|
+
* @function decodeDelimited
|
|
71812
|
+
* @memberof google.api.GoSettings
|
|
71813
|
+
* @static
|
|
71814
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71815
|
+
* @returns {google.api.GoSettings} GoSettings
|
|
71816
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71817
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71818
|
+
*/
|
|
71819
|
+
GoSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
71820
|
+
if (!(reader instanceof $Reader))
|
|
71821
|
+
reader = new $Reader(reader);
|
|
71822
|
+
return this.decode(reader, reader.uint32());
|
|
71823
|
+
};
|
|
71824
|
+
|
|
71825
|
+
/**
|
|
71826
|
+
* Verifies a GoSettings message.
|
|
71827
|
+
* @function verify
|
|
71828
|
+
* @memberof google.api.GoSettings
|
|
71829
|
+
* @static
|
|
71830
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
71831
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
71832
|
+
*/
|
|
71833
|
+
GoSettings.verify = function verify(message) {
|
|
71834
|
+
if (typeof message !== "object" || message === null)
|
|
71835
|
+
return "object expected";
|
|
71836
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
71837
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
71838
|
+
if (error)
|
|
71839
|
+
return "common." + error;
|
|
71840
|
+
}
|
|
71841
|
+
return null;
|
|
71842
|
+
};
|
|
71843
|
+
|
|
71844
|
+
/**
|
|
71845
|
+
* Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
|
|
71846
|
+
* @function fromObject
|
|
71847
|
+
* @memberof google.api.GoSettings
|
|
71848
|
+
* @static
|
|
71849
|
+
* @param {Object.<string,*>} object Plain object
|
|
71850
|
+
* @returns {google.api.GoSettings} GoSettings
|
|
71851
|
+
*/
|
|
71852
|
+
GoSettings.fromObject = function fromObject(object) {
|
|
71853
|
+
if (object instanceof $root.google.api.GoSettings)
|
|
71854
|
+
return object;
|
|
71855
|
+
var message = new $root.google.api.GoSettings();
|
|
71856
|
+
if (object.common != null) {
|
|
71857
|
+
if (typeof object.common !== "object")
|
|
71858
|
+
throw TypeError(".google.api.GoSettings.common: object expected");
|
|
71859
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
71860
|
+
}
|
|
71861
|
+
return message;
|
|
71862
|
+
};
|
|
71863
|
+
|
|
71864
|
+
/**
|
|
71865
|
+
* Creates a plain object from a GoSettings message. Also converts values to other types if specified.
|
|
71866
|
+
* @function toObject
|
|
71867
|
+
* @memberof google.api.GoSettings
|
|
71868
|
+
* @static
|
|
71869
|
+
* @param {google.api.GoSettings} message GoSettings
|
|
71870
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
71871
|
+
* @returns {Object.<string,*>} Plain object
|
|
71872
|
+
*/
|
|
71873
|
+
GoSettings.toObject = function toObject(message, options) {
|
|
71874
|
+
if (!options)
|
|
71875
|
+
options = {};
|
|
71876
|
+
var object = {};
|
|
71877
|
+
if (options.defaults)
|
|
71878
|
+
object.common = null;
|
|
71879
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
71880
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
71881
|
+
return object;
|
|
71882
|
+
};
|
|
71883
|
+
|
|
71884
|
+
/**
|
|
71885
|
+
* Converts this GoSettings to JSON.
|
|
71886
|
+
* @function toJSON
|
|
71887
|
+
* @memberof google.api.GoSettings
|
|
71888
|
+
* @instance
|
|
71889
|
+
* @returns {Object.<string,*>} JSON object
|
|
71890
|
+
*/
|
|
71891
|
+
GoSettings.prototype.toJSON = function toJSON() {
|
|
71892
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
71893
|
+
};
|
|
71894
|
+
|
|
71895
|
+
/**
|
|
71896
|
+
* Gets the default type url for GoSettings
|
|
71897
|
+
* @function getTypeUrl
|
|
71898
|
+
* @memberof google.api.GoSettings
|
|
71899
|
+
* @static
|
|
71900
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
71901
|
+
* @returns {string} The default type url
|
|
71902
|
+
*/
|
|
71903
|
+
GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
71904
|
+
if (typeUrlPrefix === undefined) {
|
|
71905
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
71906
|
+
}
|
|
71907
|
+
return typeUrlPrefix + "/google.api.GoSettings";
|
|
71908
|
+
};
|
|
71909
|
+
|
|
71910
|
+
return GoSettings;
|
|
71911
|
+
})();
|
|
71912
|
+
|
|
71913
|
+
api.MethodSettings = (function() {
|
|
71914
|
+
|
|
71915
|
+
/**
|
|
71916
|
+
* Properties of a MethodSettings.
|
|
71917
|
+
* @memberof google.api
|
|
71918
|
+
* @interface IMethodSettings
|
|
71919
|
+
* @property {string|null} [selector] MethodSettings selector
|
|
71920
|
+
* @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
|
|
71921
|
+
*/
|
|
71922
|
+
|
|
71923
|
+
/**
|
|
71924
|
+
* Constructs a new MethodSettings.
|
|
71925
|
+
* @memberof google.api
|
|
71926
|
+
* @classdesc Represents a MethodSettings.
|
|
71927
|
+
* @implements IMethodSettings
|
|
71928
|
+
* @constructor
|
|
71929
|
+
* @param {google.api.IMethodSettings=} [properties] Properties to set
|
|
71930
|
+
*/
|
|
71931
|
+
function MethodSettings(properties) {
|
|
71932
|
+
if (properties)
|
|
71933
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
71934
|
+
if (properties[keys[i]] != null)
|
|
71935
|
+
this[keys[i]] = properties[keys[i]];
|
|
71936
|
+
}
|
|
71937
|
+
|
|
71938
|
+
/**
|
|
71939
|
+
* MethodSettings selector.
|
|
71940
|
+
* @member {string} selector
|
|
71941
|
+
* @memberof google.api.MethodSettings
|
|
71942
|
+
* @instance
|
|
71943
|
+
*/
|
|
71944
|
+
MethodSettings.prototype.selector = "";
|
|
71945
|
+
|
|
71946
|
+
/**
|
|
71947
|
+
* MethodSettings longRunning.
|
|
71948
|
+
* @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
|
|
71949
|
+
* @memberof google.api.MethodSettings
|
|
71950
|
+
* @instance
|
|
71951
|
+
*/
|
|
71952
|
+
MethodSettings.prototype.longRunning = null;
|
|
71953
|
+
|
|
71954
|
+
/**
|
|
71955
|
+
* Creates a new MethodSettings instance using the specified properties.
|
|
71956
|
+
* @function create
|
|
71957
|
+
* @memberof google.api.MethodSettings
|
|
71958
|
+
* @static
|
|
71959
|
+
* @param {google.api.IMethodSettings=} [properties] Properties to set
|
|
71960
|
+
* @returns {google.api.MethodSettings} MethodSettings instance
|
|
71961
|
+
*/
|
|
71962
|
+
MethodSettings.create = function create(properties) {
|
|
71963
|
+
return new MethodSettings(properties);
|
|
71964
|
+
};
|
|
71965
|
+
|
|
71966
|
+
/**
|
|
71967
|
+
* Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
|
|
71968
|
+
* @function encode
|
|
71969
|
+
* @memberof google.api.MethodSettings
|
|
71970
|
+
* @static
|
|
71971
|
+
* @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
|
|
71972
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71973
|
+
* @returns {$protobuf.Writer} Writer
|
|
71974
|
+
*/
|
|
71975
|
+
MethodSettings.encode = function encode(message, writer) {
|
|
71976
|
+
if (!writer)
|
|
71977
|
+
writer = $Writer.create();
|
|
71978
|
+
if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
|
|
71979
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
|
|
71980
|
+
if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
|
|
71981
|
+
$root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
71982
|
+
return writer;
|
|
71983
|
+
};
|
|
71984
|
+
|
|
71985
|
+
/**
|
|
71986
|
+
* Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
|
|
71987
|
+
* @function encodeDelimited
|
|
71988
|
+
* @memberof google.api.MethodSettings
|
|
71989
|
+
* @static
|
|
71990
|
+
* @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
|
|
71991
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71992
|
+
* @returns {$protobuf.Writer} Writer
|
|
71993
|
+
*/
|
|
71994
|
+
MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
71995
|
+
return this.encode(message, writer).ldelim();
|
|
71996
|
+
};
|
|
71997
|
+
|
|
71998
|
+
/**
|
|
71999
|
+
* Decodes a MethodSettings message from the specified reader or buffer.
|
|
72000
|
+
* @function decode
|
|
72001
|
+
* @memberof google.api.MethodSettings
|
|
72002
|
+
* @static
|
|
72003
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72004
|
+
* @param {number} [length] Message length if known beforehand
|
|
72005
|
+
* @returns {google.api.MethodSettings} MethodSettings
|
|
72006
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72007
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72008
|
+
*/
|
|
72009
|
+
MethodSettings.decode = function decode(reader, length) {
|
|
72010
|
+
if (!(reader instanceof $Reader))
|
|
72011
|
+
reader = $Reader.create(reader);
|
|
72012
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
|
|
72013
|
+
while (reader.pos < end) {
|
|
72014
|
+
var tag = reader.uint32();
|
|
72015
|
+
switch (tag >>> 3) {
|
|
72016
|
+
case 1: {
|
|
72017
|
+
message.selector = reader.string();
|
|
72018
|
+
break;
|
|
72019
|
+
}
|
|
72020
|
+
case 2: {
|
|
72021
|
+
message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
|
|
72022
|
+
break;
|
|
72023
|
+
}
|
|
72024
|
+
default:
|
|
72025
|
+
reader.skipType(tag & 7);
|
|
72026
|
+
break;
|
|
72027
|
+
}
|
|
72028
|
+
}
|
|
72029
|
+
return message;
|
|
72030
|
+
};
|
|
72031
|
+
|
|
72032
|
+
/**
|
|
72033
|
+
* Decodes a MethodSettings message from the specified reader or buffer, length delimited.
|
|
72034
|
+
* @function decodeDelimited
|
|
72035
|
+
* @memberof google.api.MethodSettings
|
|
72036
|
+
* @static
|
|
72037
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72038
|
+
* @returns {google.api.MethodSettings} MethodSettings
|
|
72039
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72040
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72041
|
+
*/
|
|
72042
|
+
MethodSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
72043
|
+
if (!(reader instanceof $Reader))
|
|
72044
|
+
reader = new $Reader(reader);
|
|
72045
|
+
return this.decode(reader, reader.uint32());
|
|
72046
|
+
};
|
|
72047
|
+
|
|
72048
|
+
/**
|
|
72049
|
+
* Verifies a MethodSettings message.
|
|
72050
|
+
* @function verify
|
|
72051
|
+
* @memberof google.api.MethodSettings
|
|
72052
|
+
* @static
|
|
72053
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
72054
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
72055
|
+
*/
|
|
72056
|
+
MethodSettings.verify = function verify(message) {
|
|
72057
|
+
if (typeof message !== "object" || message === null)
|
|
72058
|
+
return "object expected";
|
|
72059
|
+
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
72060
|
+
if (!$util.isString(message.selector))
|
|
72061
|
+
return "selector: string expected";
|
|
72062
|
+
if (message.longRunning != null && message.hasOwnProperty("longRunning")) {
|
|
72063
|
+
var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
|
|
72064
|
+
if (error)
|
|
72065
|
+
return "longRunning." + error;
|
|
72066
|
+
}
|
|
72067
|
+
return null;
|
|
72068
|
+
};
|
|
72069
|
+
|
|
72070
|
+
/**
|
|
72071
|
+
* Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
|
|
72072
|
+
* @function fromObject
|
|
72073
|
+
* @memberof google.api.MethodSettings
|
|
72074
|
+
* @static
|
|
72075
|
+
* @param {Object.<string,*>} object Plain object
|
|
72076
|
+
* @returns {google.api.MethodSettings} MethodSettings
|
|
72077
|
+
*/
|
|
72078
|
+
MethodSettings.fromObject = function fromObject(object) {
|
|
72079
|
+
if (object instanceof $root.google.api.MethodSettings)
|
|
72080
|
+
return object;
|
|
72081
|
+
var message = new $root.google.api.MethodSettings();
|
|
72082
|
+
if (object.selector != null)
|
|
72083
|
+
message.selector = String(object.selector);
|
|
72084
|
+
if (object.longRunning != null) {
|
|
72085
|
+
if (typeof object.longRunning !== "object")
|
|
72086
|
+
throw TypeError(".google.api.MethodSettings.longRunning: object expected");
|
|
72087
|
+
message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
|
|
72088
|
+
}
|
|
72089
|
+
return message;
|
|
72090
|
+
};
|
|
72091
|
+
|
|
72092
|
+
/**
|
|
72093
|
+
* Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
|
|
72094
|
+
* @function toObject
|
|
72095
|
+
* @memberof google.api.MethodSettings
|
|
72096
|
+
* @static
|
|
72097
|
+
* @param {google.api.MethodSettings} message MethodSettings
|
|
72098
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
72099
|
+
* @returns {Object.<string,*>} Plain object
|
|
72100
|
+
*/
|
|
72101
|
+
MethodSettings.toObject = function toObject(message, options) {
|
|
72102
|
+
if (!options)
|
|
72103
|
+
options = {};
|
|
72104
|
+
var object = {};
|
|
72105
|
+
if (options.defaults) {
|
|
72106
|
+
object.selector = "";
|
|
72107
|
+
object.longRunning = null;
|
|
72108
|
+
}
|
|
72109
|
+
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
72110
|
+
object.selector = message.selector;
|
|
72111
|
+
if (message.longRunning != null && message.hasOwnProperty("longRunning"))
|
|
72112
|
+
object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
|
|
72113
|
+
return object;
|
|
72114
|
+
};
|
|
72115
|
+
|
|
72116
|
+
/**
|
|
72117
|
+
* Converts this MethodSettings to JSON.
|
|
72118
|
+
* @function toJSON
|
|
72119
|
+
* @memberof google.api.MethodSettings
|
|
72120
|
+
* @instance
|
|
72121
|
+
* @returns {Object.<string,*>} JSON object
|
|
72122
|
+
*/
|
|
72123
|
+
MethodSettings.prototype.toJSON = function toJSON() {
|
|
72124
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
72125
|
+
};
|
|
72126
|
+
|
|
72127
|
+
/**
|
|
72128
|
+
* Gets the default type url for MethodSettings
|
|
72129
|
+
* @function getTypeUrl
|
|
72130
|
+
* @memberof google.api.MethodSettings
|
|
72131
|
+
* @static
|
|
72132
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
72133
|
+
* @returns {string} The default type url
|
|
72134
|
+
*/
|
|
72135
|
+
MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
72136
|
+
if (typeUrlPrefix === undefined) {
|
|
72137
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
72138
|
+
}
|
|
72139
|
+
return typeUrlPrefix + "/google.api.MethodSettings";
|
|
72140
|
+
};
|
|
72141
|
+
|
|
72142
|
+
MethodSettings.LongRunning = (function() {
|
|
72143
|
+
|
|
72144
|
+
/**
|
|
72145
|
+
* Properties of a LongRunning.
|
|
72146
|
+
* @memberof google.api.MethodSettings
|
|
72147
|
+
* @interface ILongRunning
|
|
72148
|
+
* @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
|
|
72149
|
+
* @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
|
|
72150
|
+
* @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
|
|
72151
|
+
* @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
|
|
72152
|
+
*/
|
|
72153
|
+
|
|
72154
|
+
/**
|
|
72155
|
+
* Constructs a new LongRunning.
|
|
72156
|
+
* @memberof google.api.MethodSettings
|
|
72157
|
+
* @classdesc Represents a LongRunning.
|
|
72158
|
+
* @implements ILongRunning
|
|
72159
|
+
* @constructor
|
|
72160
|
+
* @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
|
|
72161
|
+
*/
|
|
72162
|
+
function LongRunning(properties) {
|
|
72163
|
+
if (properties)
|
|
72164
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
72165
|
+
if (properties[keys[i]] != null)
|
|
72166
|
+
this[keys[i]] = properties[keys[i]];
|
|
72167
|
+
}
|
|
72168
|
+
|
|
72169
|
+
/**
|
|
72170
|
+
* LongRunning initialPollDelay.
|
|
72171
|
+
* @member {google.protobuf.IDuration|null|undefined} initialPollDelay
|
|
72172
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72173
|
+
* @instance
|
|
72174
|
+
*/
|
|
72175
|
+
LongRunning.prototype.initialPollDelay = null;
|
|
72176
|
+
|
|
72177
|
+
/**
|
|
72178
|
+
* LongRunning pollDelayMultiplier.
|
|
72179
|
+
* @member {number} pollDelayMultiplier
|
|
72180
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72181
|
+
* @instance
|
|
72182
|
+
*/
|
|
72183
|
+
LongRunning.prototype.pollDelayMultiplier = 0;
|
|
72184
|
+
|
|
72185
|
+
/**
|
|
72186
|
+
* LongRunning maxPollDelay.
|
|
72187
|
+
* @member {google.protobuf.IDuration|null|undefined} maxPollDelay
|
|
72188
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72189
|
+
* @instance
|
|
72190
|
+
*/
|
|
72191
|
+
LongRunning.prototype.maxPollDelay = null;
|
|
72192
|
+
|
|
72193
|
+
/**
|
|
72194
|
+
* LongRunning totalPollTimeout.
|
|
72195
|
+
* @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
|
|
72196
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72197
|
+
* @instance
|
|
72198
|
+
*/
|
|
72199
|
+
LongRunning.prototype.totalPollTimeout = null;
|
|
72200
|
+
|
|
72201
|
+
/**
|
|
72202
|
+
* Creates a new LongRunning instance using the specified properties.
|
|
72203
|
+
* @function create
|
|
72204
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72205
|
+
* @static
|
|
72206
|
+
* @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
|
|
72207
|
+
* @returns {google.api.MethodSettings.LongRunning} LongRunning instance
|
|
72208
|
+
*/
|
|
72209
|
+
LongRunning.create = function create(properties) {
|
|
72210
|
+
return new LongRunning(properties);
|
|
72211
|
+
};
|
|
72212
|
+
|
|
72213
|
+
/**
|
|
72214
|
+
* Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
|
|
72215
|
+
* @function encode
|
|
72216
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72217
|
+
* @static
|
|
72218
|
+
* @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
|
|
72219
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72220
|
+
* @returns {$protobuf.Writer} Writer
|
|
72221
|
+
*/
|
|
72222
|
+
LongRunning.encode = function encode(message, writer) {
|
|
72223
|
+
if (!writer)
|
|
72224
|
+
writer = $Writer.create();
|
|
72225
|
+
if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
|
|
72226
|
+
$root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
72227
|
+
if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
|
|
72228
|
+
writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
|
|
72229
|
+
if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
|
|
72230
|
+
$root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
72231
|
+
if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
|
|
72232
|
+
$root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
72233
|
+
return writer;
|
|
72234
|
+
};
|
|
72235
|
+
|
|
72236
|
+
/**
|
|
72237
|
+
* Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
|
|
72238
|
+
* @function encodeDelimited
|
|
72239
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72240
|
+
* @static
|
|
72241
|
+
* @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
|
|
72242
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
72243
|
+
* @returns {$protobuf.Writer} Writer
|
|
72244
|
+
*/
|
|
72245
|
+
LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
|
|
72246
|
+
return this.encode(message, writer).ldelim();
|
|
72247
|
+
};
|
|
72248
|
+
|
|
72249
|
+
/**
|
|
72250
|
+
* Decodes a LongRunning message from the specified reader or buffer.
|
|
72251
|
+
* @function decode
|
|
72252
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72253
|
+
* @static
|
|
72254
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72255
|
+
* @param {number} [length] Message length if known beforehand
|
|
72256
|
+
* @returns {google.api.MethodSettings.LongRunning} LongRunning
|
|
72257
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72258
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72259
|
+
*/
|
|
72260
|
+
LongRunning.decode = function decode(reader, length) {
|
|
72261
|
+
if (!(reader instanceof $Reader))
|
|
72262
|
+
reader = $Reader.create(reader);
|
|
72263
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
|
|
72264
|
+
while (reader.pos < end) {
|
|
72265
|
+
var tag = reader.uint32();
|
|
72266
|
+
switch (tag >>> 3) {
|
|
72267
|
+
case 1: {
|
|
72268
|
+
message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
72269
|
+
break;
|
|
72270
|
+
}
|
|
72271
|
+
case 2: {
|
|
72272
|
+
message.pollDelayMultiplier = reader.float();
|
|
72273
|
+
break;
|
|
72274
|
+
}
|
|
72275
|
+
case 3: {
|
|
72276
|
+
message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
72277
|
+
break;
|
|
72278
|
+
}
|
|
72279
|
+
case 4: {
|
|
72280
|
+
message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
72281
|
+
break;
|
|
72282
|
+
}
|
|
72283
|
+
default:
|
|
72284
|
+
reader.skipType(tag & 7);
|
|
72285
|
+
break;
|
|
72286
|
+
}
|
|
72287
|
+
}
|
|
72288
|
+
return message;
|
|
72289
|
+
};
|
|
72290
|
+
|
|
72291
|
+
/**
|
|
72292
|
+
* Decodes a LongRunning message from the specified reader or buffer, length delimited.
|
|
72293
|
+
* @function decodeDelimited
|
|
72294
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72295
|
+
* @static
|
|
72296
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
72297
|
+
* @returns {google.api.MethodSettings.LongRunning} LongRunning
|
|
72298
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
72299
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
72300
|
+
*/
|
|
72301
|
+
LongRunning.decodeDelimited = function decodeDelimited(reader) {
|
|
72302
|
+
if (!(reader instanceof $Reader))
|
|
72303
|
+
reader = new $Reader(reader);
|
|
72304
|
+
return this.decode(reader, reader.uint32());
|
|
72305
|
+
};
|
|
72306
|
+
|
|
72307
|
+
/**
|
|
72308
|
+
* Verifies a LongRunning message.
|
|
72309
|
+
* @function verify
|
|
72310
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72311
|
+
* @static
|
|
72312
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
72313
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
72314
|
+
*/
|
|
72315
|
+
LongRunning.verify = function verify(message) {
|
|
72316
|
+
if (typeof message !== "object" || message === null)
|
|
72317
|
+
return "object expected";
|
|
72318
|
+
if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
|
|
72319
|
+
var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
|
|
72320
|
+
if (error)
|
|
72321
|
+
return "initialPollDelay." + error;
|
|
72322
|
+
}
|
|
72323
|
+
if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
|
|
72324
|
+
if (typeof message.pollDelayMultiplier !== "number")
|
|
72325
|
+
return "pollDelayMultiplier: number expected";
|
|
72326
|
+
if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
|
|
72327
|
+
var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
|
|
72328
|
+
if (error)
|
|
72329
|
+
return "maxPollDelay." + error;
|
|
72330
|
+
}
|
|
72331
|
+
if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
|
|
72332
|
+
var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
|
|
72333
|
+
if (error)
|
|
72334
|
+
return "totalPollTimeout." + error;
|
|
72335
|
+
}
|
|
72336
|
+
return null;
|
|
72337
|
+
};
|
|
72338
|
+
|
|
72339
|
+
/**
|
|
72340
|
+
* Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
|
|
72341
|
+
* @function fromObject
|
|
72342
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72343
|
+
* @static
|
|
72344
|
+
* @param {Object.<string,*>} object Plain object
|
|
72345
|
+
* @returns {google.api.MethodSettings.LongRunning} LongRunning
|
|
72346
|
+
*/
|
|
72347
|
+
LongRunning.fromObject = function fromObject(object) {
|
|
72348
|
+
if (object instanceof $root.google.api.MethodSettings.LongRunning)
|
|
72349
|
+
return object;
|
|
72350
|
+
var message = new $root.google.api.MethodSettings.LongRunning();
|
|
72351
|
+
if (object.initialPollDelay != null) {
|
|
72352
|
+
if (typeof object.initialPollDelay !== "object")
|
|
72353
|
+
throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
|
|
72354
|
+
message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay);
|
|
72355
|
+
}
|
|
72356
|
+
if (object.pollDelayMultiplier != null)
|
|
72357
|
+
message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
|
|
72358
|
+
if (object.maxPollDelay != null) {
|
|
72359
|
+
if (typeof object.maxPollDelay !== "object")
|
|
72360
|
+
throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
|
|
72361
|
+
message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay);
|
|
72362
|
+
}
|
|
72363
|
+
if (object.totalPollTimeout != null) {
|
|
72364
|
+
if (typeof object.totalPollTimeout !== "object")
|
|
72365
|
+
throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
|
|
72366
|
+
message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout);
|
|
72367
|
+
}
|
|
72368
|
+
return message;
|
|
72369
|
+
};
|
|
72370
|
+
|
|
72371
|
+
/**
|
|
72372
|
+
* Creates a plain object from a LongRunning message. Also converts values to other types if specified.
|
|
72373
|
+
* @function toObject
|
|
72374
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72375
|
+
* @static
|
|
72376
|
+
* @param {google.api.MethodSettings.LongRunning} message LongRunning
|
|
72377
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
72378
|
+
* @returns {Object.<string,*>} Plain object
|
|
72379
|
+
*/
|
|
72380
|
+
LongRunning.toObject = function toObject(message, options) {
|
|
72381
|
+
if (!options)
|
|
72382
|
+
options = {};
|
|
72383
|
+
var object = {};
|
|
72384
|
+
if (options.defaults) {
|
|
72385
|
+
object.initialPollDelay = null;
|
|
72386
|
+
object.pollDelayMultiplier = 0;
|
|
72387
|
+
object.maxPollDelay = null;
|
|
72388
|
+
object.totalPollTimeout = null;
|
|
72389
|
+
}
|
|
72390
|
+
if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay"))
|
|
72391
|
+
object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options);
|
|
72392
|
+
if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
|
|
72393
|
+
object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
|
|
72394
|
+
if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay"))
|
|
72395
|
+
object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options);
|
|
72396
|
+
if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout"))
|
|
72397
|
+
object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options);
|
|
72398
|
+
return object;
|
|
72399
|
+
};
|
|
72400
|
+
|
|
72401
|
+
/**
|
|
72402
|
+
* Converts this LongRunning to JSON.
|
|
72403
|
+
* @function toJSON
|
|
72404
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72405
|
+
* @instance
|
|
72406
|
+
* @returns {Object.<string,*>} JSON object
|
|
72407
|
+
*/
|
|
72408
|
+
LongRunning.prototype.toJSON = function toJSON() {
|
|
72409
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
72410
|
+
};
|
|
72411
|
+
|
|
72412
|
+
/**
|
|
72413
|
+
* Gets the default type url for LongRunning
|
|
72414
|
+
* @function getTypeUrl
|
|
72415
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
72416
|
+
* @static
|
|
72417
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
72418
|
+
* @returns {string} The default type url
|
|
72419
|
+
*/
|
|
72420
|
+
LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
72421
|
+
if (typeUrlPrefix === undefined) {
|
|
72422
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
72423
|
+
}
|
|
72424
|
+
return typeUrlPrefix + "/google.api.MethodSettings.LongRunning";
|
|
72425
|
+
};
|
|
72426
|
+
|
|
72427
|
+
return LongRunning;
|
|
72428
|
+
})();
|
|
72429
|
+
|
|
72430
|
+
return MethodSettings;
|
|
72431
|
+
})();
|
|
72432
|
+
|
|
72433
|
+
/**
|
|
72434
|
+
* ClientLibraryOrganization enum.
|
|
72435
|
+
* @name google.api.ClientLibraryOrganization
|
|
72436
|
+
* @enum {number}
|
|
72437
|
+
* @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value
|
|
72438
|
+
* @property {number} CLOUD=1 CLOUD value
|
|
72439
|
+
* @property {number} ADS=2 ADS value
|
|
72440
|
+
* @property {number} PHOTOS=3 PHOTOS value
|
|
72441
|
+
* @property {number} STREET_VIEW=4 STREET_VIEW value
|
|
72442
|
+
*/
|
|
72443
|
+
api.ClientLibraryOrganization = (function() {
|
|
72444
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
72445
|
+
values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0;
|
|
72446
|
+
values[valuesById[1] = "CLOUD"] = 1;
|
|
72447
|
+
values[valuesById[2] = "ADS"] = 2;
|
|
72448
|
+
values[valuesById[3] = "PHOTOS"] = 3;
|
|
72449
|
+
values[valuesById[4] = "STREET_VIEW"] = 4;
|
|
72450
|
+
return values;
|
|
72451
|
+
})();
|
|
72452
|
+
|
|
72453
|
+
/**
|
|
72454
|
+
* ClientLibraryDestination enum.
|
|
72455
|
+
* @name google.api.ClientLibraryDestination
|
|
72456
|
+
* @enum {number}
|
|
72457
|
+
* @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value
|
|
72458
|
+
* @property {number} GITHUB=10 GITHUB value
|
|
72459
|
+
* @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value
|
|
72460
|
+
*/
|
|
72461
|
+
api.ClientLibraryDestination = (function() {
|
|
72462
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
72463
|
+
values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0;
|
|
72464
|
+
values[valuesById[10] = "GITHUB"] = 10;
|
|
72465
|
+
values[valuesById[20] = "PACKAGE_MANAGER"] = 20;
|
|
72466
|
+
return values;
|
|
72467
|
+
})();
|
|
72468
|
+
|
|
72469
|
+
/**
|
|
72470
|
+
* LaunchStage enum.
|
|
72471
|
+
* @name google.api.LaunchStage
|
|
72472
|
+
* @enum {number}
|
|
72473
|
+
* @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
|
|
72474
|
+
* @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
|
|
72475
|
+
* @property {number} PRELAUNCH=7 PRELAUNCH value
|
|
72476
|
+
* @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
|
|
72477
|
+
* @property {number} ALPHA=2 ALPHA value
|
|
72478
|
+
* @property {number} BETA=3 BETA value
|
|
72479
|
+
* @property {number} GA=4 GA value
|
|
72480
|
+
* @property {number} DEPRECATED=5 DEPRECATED value
|
|
72481
|
+
*/
|
|
72482
|
+
api.LaunchStage = (function() {
|
|
72483
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
72484
|
+
values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
|
|
72485
|
+
values[valuesById[6] = "UNIMPLEMENTED"] = 6;
|
|
72486
|
+
values[valuesById[7] = "PRELAUNCH"] = 7;
|
|
72487
|
+
values[valuesById[1] = "EARLY_ACCESS"] = 1;
|
|
72488
|
+
values[valuesById[2] = "ALPHA"] = 2;
|
|
72489
|
+
values[valuesById[3] = "BETA"] = 3;
|
|
72490
|
+
values[valuesById[4] = "GA"] = 4;
|
|
72491
|
+
values[valuesById[5] = "DEPRECATED"] = 5;
|
|
72492
|
+
return values;
|
|
72493
|
+
})();
|
|
72494
|
+
|
|
68886
72495
|
/**
|
|
68887
72496
|
* FieldBehavior enum.
|
|
68888
72497
|
* @name google.api.FieldBehavior
|
|
@@ -74831,6 +78440,7 @@
|
|
|
74831
78440
|
* @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor
|
|
74832
78441
|
* @property {boolean|null} [deprecated] MessageOptions deprecated
|
|
74833
78442
|
* @property {boolean|null} [mapEntry] MessageOptions mapEntry
|
|
78443
|
+
* @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
|
|
74834
78444
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption
|
|
74835
78445
|
* @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource
|
|
74836
78446
|
*/
|
|
@@ -74883,6 +78493,14 @@
|
|
|
74883
78493
|
*/
|
|
74884
78494
|
MessageOptions.prototype.mapEntry = false;
|
|
74885
78495
|
|
|
78496
|
+
/**
|
|
78497
|
+
* MessageOptions deprecatedLegacyJsonFieldConflicts.
|
|
78498
|
+
* @member {boolean} deprecatedLegacyJsonFieldConflicts
|
|
78499
|
+
* @memberof google.protobuf.MessageOptions
|
|
78500
|
+
* @instance
|
|
78501
|
+
*/
|
|
78502
|
+
MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
|
|
78503
|
+
|
|
74886
78504
|
/**
|
|
74887
78505
|
* MessageOptions uninterpretedOption.
|
|
74888
78506
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -74931,6 +78549,8 @@
|
|
|
74931
78549
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
|
|
74932
78550
|
if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry"))
|
|
74933
78551
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
|
|
78552
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
|
|
78553
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
74934
78554
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
74935
78555
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
74936
78556
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -74986,6 +78606,10 @@
|
|
|
74986
78606
|
message.mapEntry = reader.bool();
|
|
74987
78607
|
break;
|
|
74988
78608
|
}
|
|
78609
|
+
case 11: {
|
|
78610
|
+
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
78611
|
+
break;
|
|
78612
|
+
}
|
|
74989
78613
|
case 999: {
|
|
74990
78614
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
74991
78615
|
message.uninterpretedOption = [];
|
|
@@ -75043,6 +78667,9 @@
|
|
|
75043
78667
|
if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
|
|
75044
78668
|
if (typeof message.mapEntry !== "boolean")
|
|
75045
78669
|
return "mapEntry: boolean expected";
|
|
78670
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
78671
|
+
if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
|
|
78672
|
+
return "deprecatedLegacyJsonFieldConflicts: boolean expected";
|
|
75046
78673
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
75047
78674
|
if (!Array.isArray(message.uninterpretedOption))
|
|
75048
78675
|
return "uninterpretedOption: array expected";
|
|
@@ -75080,6 +78707,8 @@
|
|
|
75080
78707
|
message.deprecated = Boolean(object.deprecated);
|
|
75081
78708
|
if (object.mapEntry != null)
|
|
75082
78709
|
message.mapEntry = Boolean(object.mapEntry);
|
|
78710
|
+
if (object.deprecatedLegacyJsonFieldConflicts != null)
|
|
78711
|
+
message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
|
|
75083
78712
|
if (object.uninterpretedOption) {
|
|
75084
78713
|
if (!Array.isArray(object.uninterpretedOption))
|
|
75085
78714
|
throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
|
|
@@ -75118,6 +78747,7 @@
|
|
|
75118
78747
|
object.noStandardDescriptorAccessor = false;
|
|
75119
78748
|
object.deprecated = false;
|
|
75120
78749
|
object.mapEntry = false;
|
|
78750
|
+
object.deprecatedLegacyJsonFieldConflicts = false;
|
|
75121
78751
|
object[".google.api.resource"] = null;
|
|
75122
78752
|
}
|
|
75123
78753
|
if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
|
|
@@ -75128,6 +78758,8 @@
|
|
|
75128
78758
|
object.deprecated = message.deprecated;
|
|
75129
78759
|
if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
|
|
75130
78760
|
object.mapEntry = message.mapEntry;
|
|
78761
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
78762
|
+
object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
75131
78763
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
75132
78764
|
object.uninterpretedOption = [];
|
|
75133
78765
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -75180,6 +78812,9 @@
|
|
|
75180
78812
|
* @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy
|
|
75181
78813
|
* @property {boolean|null} [deprecated] FieldOptions deprecated
|
|
75182
78814
|
* @property {boolean|null} [weak] FieldOptions weak
|
|
78815
|
+
* @property {boolean|null} [debugRedact] FieldOptions debugRedact
|
|
78816
|
+
* @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
|
|
78817
|
+
* @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target
|
|
75183
78818
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
75184
78819
|
* @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
|
|
75185
78820
|
* @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
|
|
@@ -75258,6 +78893,30 @@
|
|
|
75258
78893
|
*/
|
|
75259
78894
|
FieldOptions.prototype.weak = false;
|
|
75260
78895
|
|
|
78896
|
+
/**
|
|
78897
|
+
* FieldOptions debugRedact.
|
|
78898
|
+
* @member {boolean} debugRedact
|
|
78899
|
+
* @memberof google.protobuf.FieldOptions
|
|
78900
|
+
* @instance
|
|
78901
|
+
*/
|
|
78902
|
+
FieldOptions.prototype.debugRedact = false;
|
|
78903
|
+
|
|
78904
|
+
/**
|
|
78905
|
+
* FieldOptions retention.
|
|
78906
|
+
* @member {google.protobuf.FieldOptions.OptionRetention} retention
|
|
78907
|
+
* @memberof google.protobuf.FieldOptions
|
|
78908
|
+
* @instance
|
|
78909
|
+
*/
|
|
78910
|
+
FieldOptions.prototype.retention = 0;
|
|
78911
|
+
|
|
78912
|
+
/**
|
|
78913
|
+
* FieldOptions target.
|
|
78914
|
+
* @member {google.protobuf.FieldOptions.OptionTargetType} target
|
|
78915
|
+
* @memberof google.protobuf.FieldOptions
|
|
78916
|
+
* @instance
|
|
78917
|
+
*/
|
|
78918
|
+
FieldOptions.prototype.target = 0;
|
|
78919
|
+
|
|
75261
78920
|
/**
|
|
75262
78921
|
* FieldOptions uninterpretedOption.
|
|
75263
78922
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -75320,6 +78979,12 @@
|
|
|
75320
78979
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak);
|
|
75321
78980
|
if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy"))
|
|
75322
78981
|
writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy);
|
|
78982
|
+
if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
|
|
78983
|
+
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
|
|
78984
|
+
if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
|
|
78985
|
+
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
|
|
78986
|
+
if (message.target != null && Object.hasOwnProperty.call(message, "target"))
|
|
78987
|
+
writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target);
|
|
75323
78988
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
75324
78989
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
75325
78990
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -75393,6 +79058,18 @@
|
|
|
75393
79058
|
message.weak = reader.bool();
|
|
75394
79059
|
break;
|
|
75395
79060
|
}
|
|
79061
|
+
case 16: {
|
|
79062
|
+
message.debugRedact = reader.bool();
|
|
79063
|
+
break;
|
|
79064
|
+
}
|
|
79065
|
+
case 17: {
|
|
79066
|
+
message.retention = reader.int32();
|
|
79067
|
+
break;
|
|
79068
|
+
}
|
|
79069
|
+
case 18: {
|
|
79070
|
+
message.target = reader.int32();
|
|
79071
|
+
break;
|
|
79072
|
+
}
|
|
75396
79073
|
case 999: {
|
|
75397
79074
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
75398
79075
|
message.uninterpretedOption = [];
|
|
@@ -75482,6 +79159,34 @@
|
|
|
75482
79159
|
if (message.weak != null && message.hasOwnProperty("weak"))
|
|
75483
79160
|
if (typeof message.weak !== "boolean")
|
|
75484
79161
|
return "weak: boolean expected";
|
|
79162
|
+
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
79163
|
+
if (typeof message.debugRedact !== "boolean")
|
|
79164
|
+
return "debugRedact: boolean expected";
|
|
79165
|
+
if (message.retention != null && message.hasOwnProperty("retention"))
|
|
79166
|
+
switch (message.retention) {
|
|
79167
|
+
default:
|
|
79168
|
+
return "retention: enum value expected";
|
|
79169
|
+
case 0:
|
|
79170
|
+
case 1:
|
|
79171
|
+
case 2:
|
|
79172
|
+
break;
|
|
79173
|
+
}
|
|
79174
|
+
if (message.target != null && message.hasOwnProperty("target"))
|
|
79175
|
+
switch (message.target) {
|
|
79176
|
+
default:
|
|
79177
|
+
return "target: enum value expected";
|
|
79178
|
+
case 0:
|
|
79179
|
+
case 1:
|
|
79180
|
+
case 2:
|
|
79181
|
+
case 3:
|
|
79182
|
+
case 4:
|
|
79183
|
+
case 5:
|
|
79184
|
+
case 6:
|
|
79185
|
+
case 7:
|
|
79186
|
+
case 8:
|
|
79187
|
+
case 9:
|
|
79188
|
+
break;
|
|
79189
|
+
}
|
|
75485
79190
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
75486
79191
|
if (!Array.isArray(message.uninterpretedOption))
|
|
75487
79192
|
return "uninterpretedOption: array expected";
|
|
@@ -75579,6 +79284,76 @@
|
|
|
75579
79284
|
message.deprecated = Boolean(object.deprecated);
|
|
75580
79285
|
if (object.weak != null)
|
|
75581
79286
|
message.weak = Boolean(object.weak);
|
|
79287
|
+
if (object.debugRedact != null)
|
|
79288
|
+
message.debugRedact = Boolean(object.debugRedact);
|
|
79289
|
+
switch (object.retention) {
|
|
79290
|
+
default:
|
|
79291
|
+
if (typeof object.retention === "number") {
|
|
79292
|
+
message.retention = object.retention;
|
|
79293
|
+
break;
|
|
79294
|
+
}
|
|
79295
|
+
break;
|
|
79296
|
+
case "RETENTION_UNKNOWN":
|
|
79297
|
+
case 0:
|
|
79298
|
+
message.retention = 0;
|
|
79299
|
+
break;
|
|
79300
|
+
case "RETENTION_RUNTIME":
|
|
79301
|
+
case 1:
|
|
79302
|
+
message.retention = 1;
|
|
79303
|
+
break;
|
|
79304
|
+
case "RETENTION_SOURCE":
|
|
79305
|
+
case 2:
|
|
79306
|
+
message.retention = 2;
|
|
79307
|
+
break;
|
|
79308
|
+
}
|
|
79309
|
+
switch (object.target) {
|
|
79310
|
+
default:
|
|
79311
|
+
if (typeof object.target === "number") {
|
|
79312
|
+
message.target = object.target;
|
|
79313
|
+
break;
|
|
79314
|
+
}
|
|
79315
|
+
break;
|
|
79316
|
+
case "TARGET_TYPE_UNKNOWN":
|
|
79317
|
+
case 0:
|
|
79318
|
+
message.target = 0;
|
|
79319
|
+
break;
|
|
79320
|
+
case "TARGET_TYPE_FILE":
|
|
79321
|
+
case 1:
|
|
79322
|
+
message.target = 1;
|
|
79323
|
+
break;
|
|
79324
|
+
case "TARGET_TYPE_EXTENSION_RANGE":
|
|
79325
|
+
case 2:
|
|
79326
|
+
message.target = 2;
|
|
79327
|
+
break;
|
|
79328
|
+
case "TARGET_TYPE_MESSAGE":
|
|
79329
|
+
case 3:
|
|
79330
|
+
message.target = 3;
|
|
79331
|
+
break;
|
|
79332
|
+
case "TARGET_TYPE_FIELD":
|
|
79333
|
+
case 4:
|
|
79334
|
+
message.target = 4;
|
|
79335
|
+
break;
|
|
79336
|
+
case "TARGET_TYPE_ONEOF":
|
|
79337
|
+
case 5:
|
|
79338
|
+
message.target = 5;
|
|
79339
|
+
break;
|
|
79340
|
+
case "TARGET_TYPE_ENUM":
|
|
79341
|
+
case 6:
|
|
79342
|
+
message.target = 6;
|
|
79343
|
+
break;
|
|
79344
|
+
case "TARGET_TYPE_ENUM_ENTRY":
|
|
79345
|
+
case 7:
|
|
79346
|
+
message.target = 7;
|
|
79347
|
+
break;
|
|
79348
|
+
case "TARGET_TYPE_SERVICE":
|
|
79349
|
+
case 8:
|
|
79350
|
+
message.target = 8;
|
|
79351
|
+
break;
|
|
79352
|
+
case "TARGET_TYPE_METHOD":
|
|
79353
|
+
case 9:
|
|
79354
|
+
message.target = 9;
|
|
79355
|
+
break;
|
|
79356
|
+
}
|
|
75582
79357
|
if (object.uninterpretedOption) {
|
|
75583
79358
|
if (!Array.isArray(object.uninterpretedOption))
|
|
75584
79359
|
throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
|
|
@@ -75667,6 +79442,9 @@
|
|
|
75667
79442
|
object.jstype = options.enums === String ? "JS_NORMAL" : 0;
|
|
75668
79443
|
object.weak = false;
|
|
75669
79444
|
object.unverifiedLazy = false;
|
|
79445
|
+
object.debugRedact = false;
|
|
79446
|
+
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
|
|
79447
|
+
object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0;
|
|
75670
79448
|
object[".google.api.resourceReference"] = null;
|
|
75671
79449
|
}
|
|
75672
79450
|
if (message.ctype != null && message.hasOwnProperty("ctype"))
|
|
@@ -75683,6 +79461,12 @@
|
|
|
75683
79461
|
object.weak = message.weak;
|
|
75684
79462
|
if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy"))
|
|
75685
79463
|
object.unverifiedLazy = message.unverifiedLazy;
|
|
79464
|
+
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
79465
|
+
object.debugRedact = message.debugRedact;
|
|
79466
|
+
if (message.retention != null && message.hasOwnProperty("retention"))
|
|
79467
|
+
object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
|
|
79468
|
+
if (message.target != null && message.hasOwnProperty("target"))
|
|
79469
|
+
object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target;
|
|
75686
79470
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
75687
79471
|
object.uninterpretedOption = [];
|
|
75688
79472
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -75744,15 +79528,61 @@
|
|
|
75744
79528
|
* JSType enum.
|
|
75745
79529
|
* @name google.protobuf.FieldOptions.JSType
|
|
75746
79530
|
* @enum {number}
|
|
75747
|
-
* @property {number} JS_NORMAL=0 JS_NORMAL value
|
|
75748
|
-
* @property {number} JS_STRING=1 JS_STRING value
|
|
75749
|
-
* @property {number} JS_NUMBER=2 JS_NUMBER value
|
|
75750
|
-
*/
|
|
75751
|
-
FieldOptions.JSType = (function() {
|
|
79531
|
+
* @property {number} JS_NORMAL=0 JS_NORMAL value
|
|
79532
|
+
* @property {number} JS_STRING=1 JS_STRING value
|
|
79533
|
+
* @property {number} JS_NUMBER=2 JS_NUMBER value
|
|
79534
|
+
*/
|
|
79535
|
+
FieldOptions.JSType = (function() {
|
|
79536
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
79537
|
+
values[valuesById[0] = "JS_NORMAL"] = 0;
|
|
79538
|
+
values[valuesById[1] = "JS_STRING"] = 1;
|
|
79539
|
+
values[valuesById[2] = "JS_NUMBER"] = 2;
|
|
79540
|
+
return values;
|
|
79541
|
+
})();
|
|
79542
|
+
|
|
79543
|
+
/**
|
|
79544
|
+
* OptionRetention enum.
|
|
79545
|
+
* @name google.protobuf.FieldOptions.OptionRetention
|
|
79546
|
+
* @enum {number}
|
|
79547
|
+
* @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value
|
|
79548
|
+
* @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value
|
|
79549
|
+
* @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value
|
|
79550
|
+
*/
|
|
79551
|
+
FieldOptions.OptionRetention = (function() {
|
|
79552
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
79553
|
+
values[valuesById[0] = "RETENTION_UNKNOWN"] = 0;
|
|
79554
|
+
values[valuesById[1] = "RETENTION_RUNTIME"] = 1;
|
|
79555
|
+
values[valuesById[2] = "RETENTION_SOURCE"] = 2;
|
|
79556
|
+
return values;
|
|
79557
|
+
})();
|
|
79558
|
+
|
|
79559
|
+
/**
|
|
79560
|
+
* OptionTargetType enum.
|
|
79561
|
+
* @name google.protobuf.FieldOptions.OptionTargetType
|
|
79562
|
+
* @enum {number}
|
|
79563
|
+
* @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value
|
|
79564
|
+
* @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value
|
|
79565
|
+
* @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value
|
|
79566
|
+
* @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value
|
|
79567
|
+
* @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value
|
|
79568
|
+
* @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value
|
|
79569
|
+
* @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value
|
|
79570
|
+
* @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value
|
|
79571
|
+
* @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value
|
|
79572
|
+
* @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value
|
|
79573
|
+
*/
|
|
79574
|
+
FieldOptions.OptionTargetType = (function() {
|
|
75752
79575
|
var valuesById = {}, values = Object.create(valuesById);
|
|
75753
|
-
values[valuesById[0] = "
|
|
75754
|
-
values[valuesById[1] = "
|
|
75755
|
-
values[valuesById[2] = "
|
|
79576
|
+
values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0;
|
|
79577
|
+
values[valuesById[1] = "TARGET_TYPE_FILE"] = 1;
|
|
79578
|
+
values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2;
|
|
79579
|
+
values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3;
|
|
79580
|
+
values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4;
|
|
79581
|
+
values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5;
|
|
79582
|
+
values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6;
|
|
79583
|
+
values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7;
|
|
79584
|
+
values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8;
|
|
79585
|
+
values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9;
|
|
75756
79586
|
return values;
|
|
75757
79587
|
})();
|
|
75758
79588
|
|
|
@@ -75991,6 +79821,7 @@
|
|
|
75991
79821
|
* @interface IEnumOptions
|
|
75992
79822
|
* @property {boolean|null} [allowAlias] EnumOptions allowAlias
|
|
75993
79823
|
* @property {boolean|null} [deprecated] EnumOptions deprecated
|
|
79824
|
+
* @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
|
|
75994
79825
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption
|
|
75995
79826
|
*/
|
|
75996
79827
|
|
|
@@ -76026,6 +79857,14 @@
|
|
|
76026
79857
|
*/
|
|
76027
79858
|
EnumOptions.prototype.deprecated = false;
|
|
76028
79859
|
|
|
79860
|
+
/**
|
|
79861
|
+
* EnumOptions deprecatedLegacyJsonFieldConflicts.
|
|
79862
|
+
* @member {boolean} deprecatedLegacyJsonFieldConflicts
|
|
79863
|
+
* @memberof google.protobuf.EnumOptions
|
|
79864
|
+
* @instance
|
|
79865
|
+
*/
|
|
79866
|
+
EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
|
|
79867
|
+
|
|
76029
79868
|
/**
|
|
76030
79869
|
* EnumOptions uninterpretedOption.
|
|
76031
79870
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -76062,6 +79901,8 @@
|
|
|
76062
79901
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias);
|
|
76063
79902
|
if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
|
|
76064
79903
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
|
|
79904
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
|
|
79905
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
76065
79906
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
76066
79907
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
76067
79908
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -76107,6 +79948,10 @@
|
|
|
76107
79948
|
message.deprecated = reader.bool();
|
|
76108
79949
|
break;
|
|
76109
79950
|
}
|
|
79951
|
+
case 6: {
|
|
79952
|
+
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
79953
|
+
break;
|
|
79954
|
+
}
|
|
76110
79955
|
case 999: {
|
|
76111
79956
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
76112
79957
|
message.uninterpretedOption = [];
|
|
@@ -76154,6 +79999,9 @@
|
|
|
76154
79999
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
76155
80000
|
if (typeof message.deprecated !== "boolean")
|
|
76156
80001
|
return "deprecated: boolean expected";
|
|
80002
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
80003
|
+
if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
|
|
80004
|
+
return "deprecatedLegacyJsonFieldConflicts: boolean expected";
|
|
76157
80005
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
76158
80006
|
if (!Array.isArray(message.uninterpretedOption))
|
|
76159
80007
|
return "uninterpretedOption: array expected";
|
|
@@ -76182,6 +80030,8 @@
|
|
|
76182
80030
|
message.allowAlias = Boolean(object.allowAlias);
|
|
76183
80031
|
if (object.deprecated != null)
|
|
76184
80032
|
message.deprecated = Boolean(object.deprecated);
|
|
80033
|
+
if (object.deprecatedLegacyJsonFieldConflicts != null)
|
|
80034
|
+
message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
|
|
76185
80035
|
if (object.uninterpretedOption) {
|
|
76186
80036
|
if (!Array.isArray(object.uninterpretedOption))
|
|
76187
80037
|
throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
|
|
@@ -76213,11 +80063,14 @@
|
|
|
76213
80063
|
if (options.defaults) {
|
|
76214
80064
|
object.allowAlias = false;
|
|
76215
80065
|
object.deprecated = false;
|
|
80066
|
+
object.deprecatedLegacyJsonFieldConflicts = false;
|
|
76216
80067
|
}
|
|
76217
80068
|
if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
|
|
76218
80069
|
object.allowAlias = message.allowAlias;
|
|
76219
80070
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
76220
80071
|
object.deprecated = message.deprecated;
|
|
80072
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
80073
|
+
object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
76221
80074
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
76222
80075
|
object.uninterpretedOption = [];
|
|
76223
80076
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -78977,25 +82830,25 @@
|
|
|
78977
82830
|
return GeneratedCodeInfo;
|
|
78978
82831
|
})();
|
|
78979
82832
|
|
|
78980
|
-
protobuf.
|
|
82833
|
+
protobuf.Duration = (function() {
|
|
78981
82834
|
|
|
78982
82835
|
/**
|
|
78983
|
-
* Properties of a
|
|
82836
|
+
* Properties of a Duration.
|
|
78984
82837
|
* @memberof google.protobuf
|
|
78985
|
-
* @interface
|
|
78986
|
-
* @property {number|Long|null} [seconds]
|
|
78987
|
-
* @property {number|null} [nanos]
|
|
82838
|
+
* @interface IDuration
|
|
82839
|
+
* @property {number|Long|null} [seconds] Duration seconds
|
|
82840
|
+
* @property {number|null} [nanos] Duration nanos
|
|
78988
82841
|
*/
|
|
78989
82842
|
|
|
78990
82843
|
/**
|
|
78991
|
-
* Constructs a new
|
|
82844
|
+
* Constructs a new Duration.
|
|
78992
82845
|
* @memberof google.protobuf
|
|
78993
|
-
* @classdesc Represents a
|
|
78994
|
-
* @implements
|
|
82846
|
+
* @classdesc Represents a Duration.
|
|
82847
|
+
* @implements IDuration
|
|
78995
82848
|
* @constructor
|
|
78996
|
-
* @param {google.protobuf.
|
|
82849
|
+
* @param {google.protobuf.IDuration=} [properties] Properties to set
|
|
78997
82850
|
*/
|
|
78998
|
-
function
|
|
82851
|
+
function Duration(properties) {
|
|
78999
82852
|
if (properties)
|
|
79000
82853
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
79001
82854
|
if (properties[keys[i]] != null)
|
|
@@ -79003,43 +82856,43 @@
|
|
|
79003
82856
|
}
|
|
79004
82857
|
|
|
79005
82858
|
/**
|
|
79006
|
-
*
|
|
82859
|
+
* Duration seconds.
|
|
79007
82860
|
* @member {number|Long} seconds
|
|
79008
|
-
* @memberof google.protobuf.
|
|
82861
|
+
* @memberof google.protobuf.Duration
|
|
79009
82862
|
* @instance
|
|
79010
82863
|
*/
|
|
79011
|
-
|
|
82864
|
+
Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
79012
82865
|
|
|
79013
82866
|
/**
|
|
79014
|
-
*
|
|
82867
|
+
* Duration nanos.
|
|
79015
82868
|
* @member {number} nanos
|
|
79016
|
-
* @memberof google.protobuf.
|
|
82869
|
+
* @memberof google.protobuf.Duration
|
|
79017
82870
|
* @instance
|
|
79018
82871
|
*/
|
|
79019
|
-
|
|
82872
|
+
Duration.prototype.nanos = 0;
|
|
79020
82873
|
|
|
79021
82874
|
/**
|
|
79022
|
-
* Creates a new
|
|
82875
|
+
* Creates a new Duration instance using the specified properties.
|
|
79023
82876
|
* @function create
|
|
79024
|
-
* @memberof google.protobuf.
|
|
82877
|
+
* @memberof google.protobuf.Duration
|
|
79025
82878
|
* @static
|
|
79026
|
-
* @param {google.protobuf.
|
|
79027
|
-
* @returns {google.protobuf.
|
|
82879
|
+
* @param {google.protobuf.IDuration=} [properties] Properties to set
|
|
82880
|
+
* @returns {google.protobuf.Duration} Duration instance
|
|
79028
82881
|
*/
|
|
79029
|
-
|
|
79030
|
-
return new
|
|
82882
|
+
Duration.create = function create(properties) {
|
|
82883
|
+
return new Duration(properties);
|
|
79031
82884
|
};
|
|
79032
82885
|
|
|
79033
82886
|
/**
|
|
79034
|
-
* Encodes the specified
|
|
82887
|
+
* Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
79035
82888
|
* @function encode
|
|
79036
|
-
* @memberof google.protobuf.
|
|
82889
|
+
* @memberof google.protobuf.Duration
|
|
79037
82890
|
* @static
|
|
79038
|
-
* @param {google.protobuf.
|
|
82891
|
+
* @param {google.protobuf.IDuration} message Duration message or plain object to encode
|
|
79039
82892
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
79040
82893
|
* @returns {$protobuf.Writer} Writer
|
|
79041
82894
|
*/
|
|
79042
|
-
|
|
82895
|
+
Duration.encode = function encode(message, writer) {
|
|
79043
82896
|
if (!writer)
|
|
79044
82897
|
writer = $Writer.create();
|
|
79045
82898
|
if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds"))
|
|
@@ -79050,33 +82903,33 @@
|
|
|
79050
82903
|
};
|
|
79051
82904
|
|
|
79052
82905
|
/**
|
|
79053
|
-
* Encodes the specified
|
|
82906
|
+
* Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
79054
82907
|
* @function encodeDelimited
|
|
79055
|
-
* @memberof google.protobuf.
|
|
82908
|
+
* @memberof google.protobuf.Duration
|
|
79056
82909
|
* @static
|
|
79057
|
-
* @param {google.protobuf.
|
|
82910
|
+
* @param {google.protobuf.IDuration} message Duration message or plain object to encode
|
|
79058
82911
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
79059
82912
|
* @returns {$protobuf.Writer} Writer
|
|
79060
82913
|
*/
|
|
79061
|
-
|
|
82914
|
+
Duration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
79062
82915
|
return this.encode(message, writer).ldelim();
|
|
79063
82916
|
};
|
|
79064
82917
|
|
|
79065
82918
|
/**
|
|
79066
|
-
* Decodes a
|
|
82919
|
+
* Decodes a Duration message from the specified reader or buffer.
|
|
79067
82920
|
* @function decode
|
|
79068
|
-
* @memberof google.protobuf.
|
|
82921
|
+
* @memberof google.protobuf.Duration
|
|
79069
82922
|
* @static
|
|
79070
82923
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
79071
82924
|
* @param {number} [length] Message length if known beforehand
|
|
79072
|
-
* @returns {google.protobuf.
|
|
82925
|
+
* @returns {google.protobuf.Duration} Duration
|
|
79073
82926
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
79074
82927
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
79075
82928
|
*/
|
|
79076
|
-
|
|
82929
|
+
Duration.decode = function decode(reader, length) {
|
|
79077
82930
|
if (!(reader instanceof $Reader))
|
|
79078
82931
|
reader = $Reader.create(reader);
|
|
79079
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.
|
|
82932
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration();
|
|
79080
82933
|
while (reader.pos < end) {
|
|
79081
82934
|
var tag = reader.uint32();
|
|
79082
82935
|
switch (tag >>> 3) {
|
|
@@ -79097,30 +82950,30 @@
|
|
|
79097
82950
|
};
|
|
79098
82951
|
|
|
79099
82952
|
/**
|
|
79100
|
-
* Decodes a
|
|
82953
|
+
* Decodes a Duration message from the specified reader or buffer, length delimited.
|
|
79101
82954
|
* @function decodeDelimited
|
|
79102
|
-
* @memberof google.protobuf.
|
|
82955
|
+
* @memberof google.protobuf.Duration
|
|
79103
82956
|
* @static
|
|
79104
82957
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
79105
|
-
* @returns {google.protobuf.
|
|
82958
|
+
* @returns {google.protobuf.Duration} Duration
|
|
79106
82959
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
79107
82960
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
79108
82961
|
*/
|
|
79109
|
-
|
|
82962
|
+
Duration.decodeDelimited = function decodeDelimited(reader) {
|
|
79110
82963
|
if (!(reader instanceof $Reader))
|
|
79111
82964
|
reader = new $Reader(reader);
|
|
79112
82965
|
return this.decode(reader, reader.uint32());
|
|
79113
82966
|
};
|
|
79114
82967
|
|
|
79115
82968
|
/**
|
|
79116
|
-
* Verifies a
|
|
82969
|
+
* Verifies a Duration message.
|
|
79117
82970
|
* @function verify
|
|
79118
|
-
* @memberof google.protobuf.
|
|
82971
|
+
* @memberof google.protobuf.Duration
|
|
79119
82972
|
* @static
|
|
79120
82973
|
* @param {Object.<string,*>} message Plain object to verify
|
|
79121
82974
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
79122
82975
|
*/
|
|
79123
|
-
|
|
82976
|
+
Duration.verify = function verify(message) {
|
|
79124
82977
|
if (typeof message !== "object" || message === null)
|
|
79125
82978
|
return "object expected";
|
|
79126
82979
|
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
@@ -79133,17 +82986,17 @@
|
|
|
79133
82986
|
};
|
|
79134
82987
|
|
|
79135
82988
|
/**
|
|
79136
|
-
* Creates a
|
|
82989
|
+
* Creates a Duration message from a plain object. Also converts values to their respective internal types.
|
|
79137
82990
|
* @function fromObject
|
|
79138
|
-
* @memberof google.protobuf.
|
|
82991
|
+
* @memberof google.protobuf.Duration
|
|
79139
82992
|
* @static
|
|
79140
82993
|
* @param {Object.<string,*>} object Plain object
|
|
79141
|
-
* @returns {google.protobuf.
|
|
82994
|
+
* @returns {google.protobuf.Duration} Duration
|
|
79142
82995
|
*/
|
|
79143
|
-
|
|
79144
|
-
if (object instanceof $root.google.protobuf.
|
|
82996
|
+
Duration.fromObject = function fromObject(object) {
|
|
82997
|
+
if (object instanceof $root.google.protobuf.Duration)
|
|
79145
82998
|
return object;
|
|
79146
|
-
var message = new $root.google.protobuf.
|
|
82999
|
+
var message = new $root.google.protobuf.Duration();
|
|
79147
83000
|
if (object.seconds != null)
|
|
79148
83001
|
if ($util.Long)
|
|
79149
83002
|
(message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false;
|
|
@@ -79159,15 +83012,15 @@
|
|
|
79159
83012
|
};
|
|
79160
83013
|
|
|
79161
83014
|
/**
|
|
79162
|
-
* Creates a plain object from a
|
|
83015
|
+
* Creates a plain object from a Duration message. Also converts values to other types if specified.
|
|
79163
83016
|
* @function toObject
|
|
79164
|
-
* @memberof google.protobuf.
|
|
83017
|
+
* @memberof google.protobuf.Duration
|
|
79165
83018
|
* @static
|
|
79166
|
-
* @param {google.protobuf.
|
|
83019
|
+
* @param {google.protobuf.Duration} message Duration
|
|
79167
83020
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
79168
83021
|
* @returns {Object.<string,*>} Plain object
|
|
79169
83022
|
*/
|
|
79170
|
-
|
|
83023
|
+
Duration.toObject = function toObject(message, options) {
|
|
79171
83024
|
if (!options)
|
|
79172
83025
|
options = {};
|
|
79173
83026
|
var object = {};
|
|
@@ -79190,53 +83043,53 @@
|
|
|
79190
83043
|
};
|
|
79191
83044
|
|
|
79192
83045
|
/**
|
|
79193
|
-
* Converts this
|
|
83046
|
+
* Converts this Duration to JSON.
|
|
79194
83047
|
* @function toJSON
|
|
79195
|
-
* @memberof google.protobuf.
|
|
83048
|
+
* @memberof google.protobuf.Duration
|
|
79196
83049
|
* @instance
|
|
79197
83050
|
* @returns {Object.<string,*>} JSON object
|
|
79198
83051
|
*/
|
|
79199
|
-
|
|
83052
|
+
Duration.prototype.toJSON = function toJSON() {
|
|
79200
83053
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
79201
83054
|
};
|
|
79202
83055
|
|
|
79203
83056
|
/**
|
|
79204
|
-
* Gets the default type url for
|
|
83057
|
+
* Gets the default type url for Duration
|
|
79205
83058
|
* @function getTypeUrl
|
|
79206
|
-
* @memberof google.protobuf.
|
|
83059
|
+
* @memberof google.protobuf.Duration
|
|
79207
83060
|
* @static
|
|
79208
83061
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
79209
83062
|
* @returns {string} The default type url
|
|
79210
83063
|
*/
|
|
79211
|
-
|
|
83064
|
+
Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
79212
83065
|
if (typeUrlPrefix === undefined) {
|
|
79213
83066
|
typeUrlPrefix = "type.googleapis.com";
|
|
79214
83067
|
}
|
|
79215
|
-
return typeUrlPrefix + "/google.protobuf.
|
|
83068
|
+
return typeUrlPrefix + "/google.protobuf.Duration";
|
|
79216
83069
|
};
|
|
79217
83070
|
|
|
79218
|
-
return
|
|
83071
|
+
return Duration;
|
|
79219
83072
|
})();
|
|
79220
83073
|
|
|
79221
|
-
protobuf.
|
|
83074
|
+
protobuf.Timestamp = (function() {
|
|
79222
83075
|
|
|
79223
83076
|
/**
|
|
79224
|
-
* Properties of a
|
|
83077
|
+
* Properties of a Timestamp.
|
|
79225
83078
|
* @memberof google.protobuf
|
|
79226
|
-
* @interface
|
|
79227
|
-
* @property {number|Long|null} [seconds]
|
|
79228
|
-
* @property {number|null} [nanos]
|
|
83079
|
+
* @interface ITimestamp
|
|
83080
|
+
* @property {number|Long|null} [seconds] Timestamp seconds
|
|
83081
|
+
* @property {number|null} [nanos] Timestamp nanos
|
|
79229
83082
|
*/
|
|
79230
83083
|
|
|
79231
83084
|
/**
|
|
79232
|
-
* Constructs a new
|
|
83085
|
+
* Constructs a new Timestamp.
|
|
79233
83086
|
* @memberof google.protobuf
|
|
79234
|
-
* @classdesc Represents a
|
|
79235
|
-
* @implements
|
|
83087
|
+
* @classdesc Represents a Timestamp.
|
|
83088
|
+
* @implements ITimestamp
|
|
79236
83089
|
* @constructor
|
|
79237
|
-
* @param {google.protobuf.
|
|
83090
|
+
* @param {google.protobuf.ITimestamp=} [properties] Properties to set
|
|
79238
83091
|
*/
|
|
79239
|
-
function
|
|
83092
|
+
function Timestamp(properties) {
|
|
79240
83093
|
if (properties)
|
|
79241
83094
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
79242
83095
|
if (properties[keys[i]] != null)
|
|
@@ -79244,43 +83097,43 @@
|
|
|
79244
83097
|
}
|
|
79245
83098
|
|
|
79246
83099
|
/**
|
|
79247
|
-
*
|
|
83100
|
+
* Timestamp seconds.
|
|
79248
83101
|
* @member {number|Long} seconds
|
|
79249
|
-
* @memberof google.protobuf.
|
|
83102
|
+
* @memberof google.protobuf.Timestamp
|
|
79250
83103
|
* @instance
|
|
79251
83104
|
*/
|
|
79252
|
-
|
|
83105
|
+
Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
79253
83106
|
|
|
79254
83107
|
/**
|
|
79255
|
-
*
|
|
83108
|
+
* Timestamp nanos.
|
|
79256
83109
|
* @member {number} nanos
|
|
79257
|
-
* @memberof google.protobuf.
|
|
83110
|
+
* @memberof google.protobuf.Timestamp
|
|
79258
83111
|
* @instance
|
|
79259
83112
|
*/
|
|
79260
|
-
|
|
83113
|
+
Timestamp.prototype.nanos = 0;
|
|
79261
83114
|
|
|
79262
83115
|
/**
|
|
79263
|
-
* Creates a new
|
|
83116
|
+
* Creates a new Timestamp instance using the specified properties.
|
|
79264
83117
|
* @function create
|
|
79265
|
-
* @memberof google.protobuf.
|
|
83118
|
+
* @memberof google.protobuf.Timestamp
|
|
79266
83119
|
* @static
|
|
79267
|
-
* @param {google.protobuf.
|
|
79268
|
-
* @returns {google.protobuf.
|
|
83120
|
+
* @param {google.protobuf.ITimestamp=} [properties] Properties to set
|
|
83121
|
+
* @returns {google.protobuf.Timestamp} Timestamp instance
|
|
79269
83122
|
*/
|
|
79270
|
-
|
|
79271
|
-
return new
|
|
83123
|
+
Timestamp.create = function create(properties) {
|
|
83124
|
+
return new Timestamp(properties);
|
|
79272
83125
|
};
|
|
79273
83126
|
|
|
79274
83127
|
/**
|
|
79275
|
-
* Encodes the specified
|
|
83128
|
+
* Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
79276
83129
|
* @function encode
|
|
79277
|
-
* @memberof google.protobuf.
|
|
83130
|
+
* @memberof google.protobuf.Timestamp
|
|
79278
83131
|
* @static
|
|
79279
|
-
* @param {google.protobuf.
|
|
83132
|
+
* @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode
|
|
79280
83133
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
79281
83134
|
* @returns {$protobuf.Writer} Writer
|
|
79282
83135
|
*/
|
|
79283
|
-
|
|
83136
|
+
Timestamp.encode = function encode(message, writer) {
|
|
79284
83137
|
if (!writer)
|
|
79285
83138
|
writer = $Writer.create();
|
|
79286
83139
|
if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds"))
|
|
@@ -79291,33 +83144,33 @@
|
|
|
79291
83144
|
};
|
|
79292
83145
|
|
|
79293
83146
|
/**
|
|
79294
|
-
* Encodes the specified
|
|
83147
|
+
* Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
79295
83148
|
* @function encodeDelimited
|
|
79296
|
-
* @memberof google.protobuf.
|
|
83149
|
+
* @memberof google.protobuf.Timestamp
|
|
79297
83150
|
* @static
|
|
79298
|
-
* @param {google.protobuf.
|
|
83151
|
+
* @param {google.protobuf.ITimestamp} message Timestamp message or plain object to encode
|
|
79299
83152
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
79300
83153
|
* @returns {$protobuf.Writer} Writer
|
|
79301
83154
|
*/
|
|
79302
|
-
|
|
83155
|
+
Timestamp.encodeDelimited = function encodeDelimited(message, writer) {
|
|
79303
83156
|
return this.encode(message, writer).ldelim();
|
|
79304
83157
|
};
|
|
79305
83158
|
|
|
79306
83159
|
/**
|
|
79307
|
-
* Decodes a
|
|
83160
|
+
* Decodes a Timestamp message from the specified reader or buffer.
|
|
79308
83161
|
* @function decode
|
|
79309
|
-
* @memberof google.protobuf.
|
|
83162
|
+
* @memberof google.protobuf.Timestamp
|
|
79310
83163
|
* @static
|
|
79311
83164
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
79312
83165
|
* @param {number} [length] Message length if known beforehand
|
|
79313
|
-
* @returns {google.protobuf.
|
|
83166
|
+
* @returns {google.protobuf.Timestamp} Timestamp
|
|
79314
83167
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
79315
83168
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
79316
83169
|
*/
|
|
79317
|
-
|
|
83170
|
+
Timestamp.decode = function decode(reader, length) {
|
|
79318
83171
|
if (!(reader instanceof $Reader))
|
|
79319
83172
|
reader = $Reader.create(reader);
|
|
79320
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.
|
|
83173
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp();
|
|
79321
83174
|
while (reader.pos < end) {
|
|
79322
83175
|
var tag = reader.uint32();
|
|
79323
83176
|
switch (tag >>> 3) {
|
|
@@ -79338,30 +83191,30 @@
|
|
|
79338
83191
|
};
|
|
79339
83192
|
|
|
79340
83193
|
/**
|
|
79341
|
-
* Decodes a
|
|
83194
|
+
* Decodes a Timestamp message from the specified reader or buffer, length delimited.
|
|
79342
83195
|
* @function decodeDelimited
|
|
79343
|
-
* @memberof google.protobuf.
|
|
83196
|
+
* @memberof google.protobuf.Timestamp
|
|
79344
83197
|
* @static
|
|
79345
83198
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
79346
|
-
* @returns {google.protobuf.
|
|
83199
|
+
* @returns {google.protobuf.Timestamp} Timestamp
|
|
79347
83200
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
79348
83201
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
79349
83202
|
*/
|
|
79350
|
-
|
|
83203
|
+
Timestamp.decodeDelimited = function decodeDelimited(reader) {
|
|
79351
83204
|
if (!(reader instanceof $Reader))
|
|
79352
83205
|
reader = new $Reader(reader);
|
|
79353
83206
|
return this.decode(reader, reader.uint32());
|
|
79354
83207
|
};
|
|
79355
83208
|
|
|
79356
83209
|
/**
|
|
79357
|
-
* Verifies a
|
|
83210
|
+
* Verifies a Timestamp message.
|
|
79358
83211
|
* @function verify
|
|
79359
|
-
* @memberof google.protobuf.
|
|
83212
|
+
* @memberof google.protobuf.Timestamp
|
|
79360
83213
|
* @static
|
|
79361
83214
|
* @param {Object.<string,*>} message Plain object to verify
|
|
79362
83215
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
79363
83216
|
*/
|
|
79364
|
-
|
|
83217
|
+
Timestamp.verify = function verify(message) {
|
|
79365
83218
|
if (typeof message !== "object" || message === null)
|
|
79366
83219
|
return "object expected";
|
|
79367
83220
|
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
@@ -79374,17 +83227,17 @@
|
|
|
79374
83227
|
};
|
|
79375
83228
|
|
|
79376
83229
|
/**
|
|
79377
|
-
* Creates a
|
|
83230
|
+
* Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
|
|
79378
83231
|
* @function fromObject
|
|
79379
|
-
* @memberof google.protobuf.
|
|
83232
|
+
* @memberof google.protobuf.Timestamp
|
|
79380
83233
|
* @static
|
|
79381
83234
|
* @param {Object.<string,*>} object Plain object
|
|
79382
|
-
* @returns {google.protobuf.
|
|
83235
|
+
* @returns {google.protobuf.Timestamp} Timestamp
|
|
79383
83236
|
*/
|
|
79384
|
-
|
|
79385
|
-
if (object instanceof $root.google.protobuf.
|
|
83237
|
+
Timestamp.fromObject = function fromObject(object) {
|
|
83238
|
+
if (object instanceof $root.google.protobuf.Timestamp)
|
|
79386
83239
|
return object;
|
|
79387
|
-
var message = new $root.google.protobuf.
|
|
83240
|
+
var message = new $root.google.protobuf.Timestamp();
|
|
79388
83241
|
if (object.seconds != null)
|
|
79389
83242
|
if ($util.Long)
|
|
79390
83243
|
(message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false;
|
|
@@ -79400,15 +83253,15 @@
|
|
|
79400
83253
|
};
|
|
79401
83254
|
|
|
79402
83255
|
/**
|
|
79403
|
-
* Creates a plain object from a
|
|
83256
|
+
* Creates a plain object from a Timestamp message. Also converts values to other types if specified.
|
|
79404
83257
|
* @function toObject
|
|
79405
|
-
* @memberof google.protobuf.
|
|
83258
|
+
* @memberof google.protobuf.Timestamp
|
|
79406
83259
|
* @static
|
|
79407
|
-
* @param {google.protobuf.
|
|
83260
|
+
* @param {google.protobuf.Timestamp} message Timestamp
|
|
79408
83261
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
79409
83262
|
* @returns {Object.<string,*>} Plain object
|
|
79410
83263
|
*/
|
|
79411
|
-
|
|
83264
|
+
Timestamp.toObject = function toObject(message, options) {
|
|
79412
83265
|
if (!options)
|
|
79413
83266
|
options = {};
|
|
79414
83267
|
var object = {};
|
|
@@ -79431,32 +83284,32 @@
|
|
|
79431
83284
|
};
|
|
79432
83285
|
|
|
79433
83286
|
/**
|
|
79434
|
-
* Converts this
|
|
83287
|
+
* Converts this Timestamp to JSON.
|
|
79435
83288
|
* @function toJSON
|
|
79436
|
-
* @memberof google.protobuf.
|
|
83289
|
+
* @memberof google.protobuf.Timestamp
|
|
79437
83290
|
* @instance
|
|
79438
83291
|
* @returns {Object.<string,*>} JSON object
|
|
79439
83292
|
*/
|
|
79440
|
-
|
|
83293
|
+
Timestamp.prototype.toJSON = function toJSON() {
|
|
79441
83294
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
79442
83295
|
};
|
|
79443
83296
|
|
|
79444
83297
|
/**
|
|
79445
|
-
* Gets the default type url for
|
|
83298
|
+
* Gets the default type url for Timestamp
|
|
79446
83299
|
* @function getTypeUrl
|
|
79447
|
-
* @memberof google.protobuf.
|
|
83300
|
+
* @memberof google.protobuf.Timestamp
|
|
79448
83301
|
* @static
|
|
79449
83302
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
79450
83303
|
* @returns {string} The default type url
|
|
79451
83304
|
*/
|
|
79452
|
-
|
|
83305
|
+
Timestamp.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
79453
83306
|
if (typeUrlPrefix === undefined) {
|
|
79454
83307
|
typeUrlPrefix = "type.googleapis.com";
|
|
79455
83308
|
}
|
|
79456
|
-
return typeUrlPrefix + "/google.protobuf.
|
|
83309
|
+
return typeUrlPrefix + "/google.protobuf.Timestamp";
|
|
79457
83310
|
};
|
|
79458
83311
|
|
|
79459
|
-
return
|
|
83312
|
+
return Timestamp;
|
|
79460
83313
|
})();
|
|
79461
83314
|
|
|
79462
83315
|
protobuf.Empty = (function() {
|