@google-cloud/containeranalysis 4.4.1 → 4.4.2
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/CHANGELOG.md +7 -0
- package/README.md +49 -70
- package/build/protos/protos.d.ts +1597 -1
- package/build/protos/protos.js +4095 -1
- package/build/protos/protos.json +1 -6679
- package/build/src/index.d.ts +2 -5
- package/build/src/index.js +3 -5
- package/build/src/index.js.map +1 -1
- package/build/src/v1/container_analysis_client.d.ts +4 -4
- package/build/src/v1/container_analysis_client.js +3 -1
- package/build/src/v1/container_analysis_client.js.map +1 -1
- package/build/src/v1/grafeas_client.d.ts +764 -0
- package/build/src/v1/grafeas_client.js +928 -0
- package/build/src/v1/grafeas_client.js.map +1 -0
- package/build/src/v1/grafeas_client_config.json +82 -0
- package/build/src/v1/index.js +1 -1
- package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +8 -8
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js +5 -3
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js.map +1 -1
- package/build/src/v1beta1/grafeas_v1_beta1_client.d.ts +21 -21
- package/build/src/v1beta1/grafeas_v1_beta1_client.js +9 -7
- package/build/src/v1beta1/grafeas_v1_beta1_client.js.map +1 -1
- package/build/src/v1beta1/index.js +1 -1
- package/package.json +41 -41
package/build/protos/protos.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -57799,6 +57799,3615 @@
|
|
|
57799
57799
|
return CustomHttpPattern;
|
|
57800
57800
|
})();
|
|
57801
57801
|
|
|
57802
|
+
api.CommonLanguageSettings = (function() {
|
|
57803
|
+
|
|
57804
|
+
/**
|
|
57805
|
+
* Properties of a CommonLanguageSettings.
|
|
57806
|
+
* @memberof google.api
|
|
57807
|
+
* @interface ICommonLanguageSettings
|
|
57808
|
+
* @property {string|null} [referenceDocsUri] CommonLanguageSettings referenceDocsUri
|
|
57809
|
+
* @property {Array.<google.api.ClientLibraryDestination>|null} [destinations] CommonLanguageSettings destinations
|
|
57810
|
+
*/
|
|
57811
|
+
|
|
57812
|
+
/**
|
|
57813
|
+
* Constructs a new CommonLanguageSettings.
|
|
57814
|
+
* @memberof google.api
|
|
57815
|
+
* @classdesc Represents a CommonLanguageSettings.
|
|
57816
|
+
* @implements ICommonLanguageSettings
|
|
57817
|
+
* @constructor
|
|
57818
|
+
* @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
|
|
57819
|
+
*/
|
|
57820
|
+
function CommonLanguageSettings(properties) {
|
|
57821
|
+
this.destinations = [];
|
|
57822
|
+
if (properties)
|
|
57823
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57824
|
+
if (properties[keys[i]] != null)
|
|
57825
|
+
this[keys[i]] = properties[keys[i]];
|
|
57826
|
+
}
|
|
57827
|
+
|
|
57828
|
+
/**
|
|
57829
|
+
* CommonLanguageSettings referenceDocsUri.
|
|
57830
|
+
* @member {string} referenceDocsUri
|
|
57831
|
+
* @memberof google.api.CommonLanguageSettings
|
|
57832
|
+
* @instance
|
|
57833
|
+
*/
|
|
57834
|
+
CommonLanguageSettings.prototype.referenceDocsUri = "";
|
|
57835
|
+
|
|
57836
|
+
/**
|
|
57837
|
+
* CommonLanguageSettings destinations.
|
|
57838
|
+
* @member {Array.<google.api.ClientLibraryDestination>} destinations
|
|
57839
|
+
* @memberof google.api.CommonLanguageSettings
|
|
57840
|
+
* @instance
|
|
57841
|
+
*/
|
|
57842
|
+
CommonLanguageSettings.prototype.destinations = $util.emptyArray;
|
|
57843
|
+
|
|
57844
|
+
/**
|
|
57845
|
+
* Creates a new CommonLanguageSettings instance using the specified properties.
|
|
57846
|
+
* @function create
|
|
57847
|
+
* @memberof google.api.CommonLanguageSettings
|
|
57848
|
+
* @static
|
|
57849
|
+
* @param {google.api.ICommonLanguageSettings=} [properties] Properties to set
|
|
57850
|
+
* @returns {google.api.CommonLanguageSettings} CommonLanguageSettings instance
|
|
57851
|
+
*/
|
|
57852
|
+
CommonLanguageSettings.create = function create(properties) {
|
|
57853
|
+
return new CommonLanguageSettings(properties);
|
|
57854
|
+
};
|
|
57855
|
+
|
|
57856
|
+
/**
|
|
57857
|
+
* Encodes the specified CommonLanguageSettings message. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
|
|
57858
|
+
* @function encode
|
|
57859
|
+
* @memberof google.api.CommonLanguageSettings
|
|
57860
|
+
* @static
|
|
57861
|
+
* @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
|
|
57862
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57863
|
+
* @returns {$protobuf.Writer} Writer
|
|
57864
|
+
*/
|
|
57865
|
+
CommonLanguageSettings.encode = function encode(message, writer) {
|
|
57866
|
+
if (!writer)
|
|
57867
|
+
writer = $Writer.create();
|
|
57868
|
+
if (message.referenceDocsUri != null && Object.hasOwnProperty.call(message, "referenceDocsUri"))
|
|
57869
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.referenceDocsUri);
|
|
57870
|
+
if (message.destinations != null && message.destinations.length) {
|
|
57871
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork();
|
|
57872
|
+
for (var i = 0; i < message.destinations.length; ++i)
|
|
57873
|
+
writer.int32(message.destinations[i]);
|
|
57874
|
+
writer.ldelim();
|
|
57875
|
+
}
|
|
57876
|
+
return writer;
|
|
57877
|
+
};
|
|
57878
|
+
|
|
57879
|
+
/**
|
|
57880
|
+
* Encodes the specified CommonLanguageSettings message, length delimited. Does not implicitly {@link google.api.CommonLanguageSettings.verify|verify} messages.
|
|
57881
|
+
* @function encodeDelimited
|
|
57882
|
+
* @memberof google.api.CommonLanguageSettings
|
|
57883
|
+
* @static
|
|
57884
|
+
* @param {google.api.ICommonLanguageSettings} message CommonLanguageSettings message or plain object to encode
|
|
57885
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57886
|
+
* @returns {$protobuf.Writer} Writer
|
|
57887
|
+
*/
|
|
57888
|
+
CommonLanguageSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57889
|
+
return this.encode(message, writer).ldelim();
|
|
57890
|
+
};
|
|
57891
|
+
|
|
57892
|
+
/**
|
|
57893
|
+
* Decodes a CommonLanguageSettings message from the specified reader or buffer.
|
|
57894
|
+
* @function decode
|
|
57895
|
+
* @memberof google.api.CommonLanguageSettings
|
|
57896
|
+
* @static
|
|
57897
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57898
|
+
* @param {number} [length] Message length if known beforehand
|
|
57899
|
+
* @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
|
|
57900
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57901
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57902
|
+
*/
|
|
57903
|
+
CommonLanguageSettings.decode = function decode(reader, length) {
|
|
57904
|
+
if (!(reader instanceof $Reader))
|
|
57905
|
+
reader = $Reader.create(reader);
|
|
57906
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CommonLanguageSettings();
|
|
57907
|
+
while (reader.pos < end) {
|
|
57908
|
+
var tag = reader.uint32();
|
|
57909
|
+
switch (tag >>> 3) {
|
|
57910
|
+
case 1: {
|
|
57911
|
+
message.referenceDocsUri = reader.string();
|
|
57912
|
+
break;
|
|
57913
|
+
}
|
|
57914
|
+
case 2: {
|
|
57915
|
+
if (!(message.destinations && message.destinations.length))
|
|
57916
|
+
message.destinations = [];
|
|
57917
|
+
if ((tag & 7) === 2) {
|
|
57918
|
+
var end2 = reader.uint32() + reader.pos;
|
|
57919
|
+
while (reader.pos < end2)
|
|
57920
|
+
message.destinations.push(reader.int32());
|
|
57921
|
+
} else
|
|
57922
|
+
message.destinations.push(reader.int32());
|
|
57923
|
+
break;
|
|
57924
|
+
}
|
|
57925
|
+
default:
|
|
57926
|
+
reader.skipType(tag & 7);
|
|
57927
|
+
break;
|
|
57928
|
+
}
|
|
57929
|
+
}
|
|
57930
|
+
return message;
|
|
57931
|
+
};
|
|
57932
|
+
|
|
57933
|
+
/**
|
|
57934
|
+
* Decodes a CommonLanguageSettings message from the specified reader or buffer, length delimited.
|
|
57935
|
+
* @function decodeDelimited
|
|
57936
|
+
* @memberof google.api.CommonLanguageSettings
|
|
57937
|
+
* @static
|
|
57938
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57939
|
+
* @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
|
|
57940
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57941
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57942
|
+
*/
|
|
57943
|
+
CommonLanguageSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
57944
|
+
if (!(reader instanceof $Reader))
|
|
57945
|
+
reader = new $Reader(reader);
|
|
57946
|
+
return this.decode(reader, reader.uint32());
|
|
57947
|
+
};
|
|
57948
|
+
|
|
57949
|
+
/**
|
|
57950
|
+
* Verifies a CommonLanguageSettings message.
|
|
57951
|
+
* @function verify
|
|
57952
|
+
* @memberof google.api.CommonLanguageSettings
|
|
57953
|
+
* @static
|
|
57954
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
57955
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57956
|
+
*/
|
|
57957
|
+
CommonLanguageSettings.verify = function verify(message) {
|
|
57958
|
+
if (typeof message !== "object" || message === null)
|
|
57959
|
+
return "object expected";
|
|
57960
|
+
if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
|
|
57961
|
+
if (!$util.isString(message.referenceDocsUri))
|
|
57962
|
+
return "referenceDocsUri: string expected";
|
|
57963
|
+
if (message.destinations != null && message.hasOwnProperty("destinations")) {
|
|
57964
|
+
if (!Array.isArray(message.destinations))
|
|
57965
|
+
return "destinations: array expected";
|
|
57966
|
+
for (var i = 0; i < message.destinations.length; ++i)
|
|
57967
|
+
switch (message.destinations[i]) {
|
|
57968
|
+
default:
|
|
57969
|
+
return "destinations: enum value[] expected";
|
|
57970
|
+
case 0:
|
|
57971
|
+
case 10:
|
|
57972
|
+
case 20:
|
|
57973
|
+
break;
|
|
57974
|
+
}
|
|
57975
|
+
}
|
|
57976
|
+
return null;
|
|
57977
|
+
};
|
|
57978
|
+
|
|
57979
|
+
/**
|
|
57980
|
+
* Creates a CommonLanguageSettings message from a plain object. Also converts values to their respective internal types.
|
|
57981
|
+
* @function fromObject
|
|
57982
|
+
* @memberof google.api.CommonLanguageSettings
|
|
57983
|
+
* @static
|
|
57984
|
+
* @param {Object.<string,*>} object Plain object
|
|
57985
|
+
* @returns {google.api.CommonLanguageSettings} CommonLanguageSettings
|
|
57986
|
+
*/
|
|
57987
|
+
CommonLanguageSettings.fromObject = function fromObject(object) {
|
|
57988
|
+
if (object instanceof $root.google.api.CommonLanguageSettings)
|
|
57989
|
+
return object;
|
|
57990
|
+
var message = new $root.google.api.CommonLanguageSettings();
|
|
57991
|
+
if (object.referenceDocsUri != null)
|
|
57992
|
+
message.referenceDocsUri = String(object.referenceDocsUri);
|
|
57993
|
+
if (object.destinations) {
|
|
57994
|
+
if (!Array.isArray(object.destinations))
|
|
57995
|
+
throw TypeError(".google.api.CommonLanguageSettings.destinations: array expected");
|
|
57996
|
+
message.destinations = [];
|
|
57997
|
+
for (var i = 0; i < object.destinations.length; ++i)
|
|
57998
|
+
switch (object.destinations[i]) {
|
|
57999
|
+
default:
|
|
58000
|
+
if (typeof object.destinations[i] === "number") {
|
|
58001
|
+
message.destinations[i] = object.destinations[i];
|
|
58002
|
+
break;
|
|
58003
|
+
}
|
|
58004
|
+
case "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED":
|
|
58005
|
+
case 0:
|
|
58006
|
+
message.destinations[i] = 0;
|
|
58007
|
+
break;
|
|
58008
|
+
case "GITHUB":
|
|
58009
|
+
case 10:
|
|
58010
|
+
message.destinations[i] = 10;
|
|
58011
|
+
break;
|
|
58012
|
+
case "PACKAGE_MANAGER":
|
|
58013
|
+
case 20:
|
|
58014
|
+
message.destinations[i] = 20;
|
|
58015
|
+
break;
|
|
58016
|
+
}
|
|
58017
|
+
}
|
|
58018
|
+
return message;
|
|
58019
|
+
};
|
|
58020
|
+
|
|
58021
|
+
/**
|
|
58022
|
+
* Creates a plain object from a CommonLanguageSettings message. Also converts values to other types if specified.
|
|
58023
|
+
* @function toObject
|
|
58024
|
+
* @memberof google.api.CommonLanguageSettings
|
|
58025
|
+
* @static
|
|
58026
|
+
* @param {google.api.CommonLanguageSettings} message CommonLanguageSettings
|
|
58027
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58028
|
+
* @returns {Object.<string,*>} Plain object
|
|
58029
|
+
*/
|
|
58030
|
+
CommonLanguageSettings.toObject = function toObject(message, options) {
|
|
58031
|
+
if (!options)
|
|
58032
|
+
options = {};
|
|
58033
|
+
var object = {};
|
|
58034
|
+
if (options.arrays || options.defaults)
|
|
58035
|
+
object.destinations = [];
|
|
58036
|
+
if (options.defaults)
|
|
58037
|
+
object.referenceDocsUri = "";
|
|
58038
|
+
if (message.referenceDocsUri != null && message.hasOwnProperty("referenceDocsUri"))
|
|
58039
|
+
object.referenceDocsUri = message.referenceDocsUri;
|
|
58040
|
+
if (message.destinations && message.destinations.length) {
|
|
58041
|
+
object.destinations = [];
|
|
58042
|
+
for (var j = 0; j < message.destinations.length; ++j)
|
|
58043
|
+
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];
|
|
58044
|
+
}
|
|
58045
|
+
return object;
|
|
58046
|
+
};
|
|
58047
|
+
|
|
58048
|
+
/**
|
|
58049
|
+
* Converts this CommonLanguageSettings to JSON.
|
|
58050
|
+
* @function toJSON
|
|
58051
|
+
* @memberof google.api.CommonLanguageSettings
|
|
58052
|
+
* @instance
|
|
58053
|
+
* @returns {Object.<string,*>} JSON object
|
|
58054
|
+
*/
|
|
58055
|
+
CommonLanguageSettings.prototype.toJSON = function toJSON() {
|
|
58056
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58057
|
+
};
|
|
58058
|
+
|
|
58059
|
+
/**
|
|
58060
|
+
* Gets the default type url for CommonLanguageSettings
|
|
58061
|
+
* @function getTypeUrl
|
|
58062
|
+
* @memberof google.api.CommonLanguageSettings
|
|
58063
|
+
* @static
|
|
58064
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
58065
|
+
* @returns {string} The default type url
|
|
58066
|
+
*/
|
|
58067
|
+
CommonLanguageSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
58068
|
+
if (typeUrlPrefix === undefined) {
|
|
58069
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
58070
|
+
}
|
|
58071
|
+
return typeUrlPrefix + "/google.api.CommonLanguageSettings";
|
|
58072
|
+
};
|
|
58073
|
+
|
|
58074
|
+
return CommonLanguageSettings;
|
|
58075
|
+
})();
|
|
58076
|
+
|
|
58077
|
+
api.ClientLibrarySettings = (function() {
|
|
58078
|
+
|
|
58079
|
+
/**
|
|
58080
|
+
* Properties of a ClientLibrarySettings.
|
|
58081
|
+
* @memberof google.api
|
|
58082
|
+
* @interface IClientLibrarySettings
|
|
58083
|
+
* @property {string|null} [version] ClientLibrarySettings version
|
|
58084
|
+
* @property {google.api.LaunchStage|null} [launchStage] ClientLibrarySettings launchStage
|
|
58085
|
+
* @property {boolean|null} [restNumericEnums] ClientLibrarySettings restNumericEnums
|
|
58086
|
+
* @property {google.api.IJavaSettings|null} [javaSettings] ClientLibrarySettings javaSettings
|
|
58087
|
+
* @property {google.api.ICppSettings|null} [cppSettings] ClientLibrarySettings cppSettings
|
|
58088
|
+
* @property {google.api.IPhpSettings|null} [phpSettings] ClientLibrarySettings phpSettings
|
|
58089
|
+
* @property {google.api.IPythonSettings|null} [pythonSettings] ClientLibrarySettings pythonSettings
|
|
58090
|
+
* @property {google.api.INodeSettings|null} [nodeSettings] ClientLibrarySettings nodeSettings
|
|
58091
|
+
* @property {google.api.IDotnetSettings|null} [dotnetSettings] ClientLibrarySettings dotnetSettings
|
|
58092
|
+
* @property {google.api.IRubySettings|null} [rubySettings] ClientLibrarySettings rubySettings
|
|
58093
|
+
* @property {google.api.IGoSettings|null} [goSettings] ClientLibrarySettings goSettings
|
|
58094
|
+
*/
|
|
58095
|
+
|
|
58096
|
+
/**
|
|
58097
|
+
* Constructs a new ClientLibrarySettings.
|
|
58098
|
+
* @memberof google.api
|
|
58099
|
+
* @classdesc Represents a ClientLibrarySettings.
|
|
58100
|
+
* @implements IClientLibrarySettings
|
|
58101
|
+
* @constructor
|
|
58102
|
+
* @param {google.api.IClientLibrarySettings=} [properties] Properties to set
|
|
58103
|
+
*/
|
|
58104
|
+
function ClientLibrarySettings(properties) {
|
|
58105
|
+
if (properties)
|
|
58106
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58107
|
+
if (properties[keys[i]] != null)
|
|
58108
|
+
this[keys[i]] = properties[keys[i]];
|
|
58109
|
+
}
|
|
58110
|
+
|
|
58111
|
+
/**
|
|
58112
|
+
* ClientLibrarySettings version.
|
|
58113
|
+
* @member {string} version
|
|
58114
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58115
|
+
* @instance
|
|
58116
|
+
*/
|
|
58117
|
+
ClientLibrarySettings.prototype.version = "";
|
|
58118
|
+
|
|
58119
|
+
/**
|
|
58120
|
+
* ClientLibrarySettings launchStage.
|
|
58121
|
+
* @member {google.api.LaunchStage} launchStage
|
|
58122
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58123
|
+
* @instance
|
|
58124
|
+
*/
|
|
58125
|
+
ClientLibrarySettings.prototype.launchStage = 0;
|
|
58126
|
+
|
|
58127
|
+
/**
|
|
58128
|
+
* ClientLibrarySettings restNumericEnums.
|
|
58129
|
+
* @member {boolean} restNumericEnums
|
|
58130
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58131
|
+
* @instance
|
|
58132
|
+
*/
|
|
58133
|
+
ClientLibrarySettings.prototype.restNumericEnums = false;
|
|
58134
|
+
|
|
58135
|
+
/**
|
|
58136
|
+
* ClientLibrarySettings javaSettings.
|
|
58137
|
+
* @member {google.api.IJavaSettings|null|undefined} javaSettings
|
|
58138
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58139
|
+
* @instance
|
|
58140
|
+
*/
|
|
58141
|
+
ClientLibrarySettings.prototype.javaSettings = null;
|
|
58142
|
+
|
|
58143
|
+
/**
|
|
58144
|
+
* ClientLibrarySettings cppSettings.
|
|
58145
|
+
* @member {google.api.ICppSettings|null|undefined} cppSettings
|
|
58146
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58147
|
+
* @instance
|
|
58148
|
+
*/
|
|
58149
|
+
ClientLibrarySettings.prototype.cppSettings = null;
|
|
58150
|
+
|
|
58151
|
+
/**
|
|
58152
|
+
* ClientLibrarySettings phpSettings.
|
|
58153
|
+
* @member {google.api.IPhpSettings|null|undefined} phpSettings
|
|
58154
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58155
|
+
* @instance
|
|
58156
|
+
*/
|
|
58157
|
+
ClientLibrarySettings.prototype.phpSettings = null;
|
|
58158
|
+
|
|
58159
|
+
/**
|
|
58160
|
+
* ClientLibrarySettings pythonSettings.
|
|
58161
|
+
* @member {google.api.IPythonSettings|null|undefined} pythonSettings
|
|
58162
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58163
|
+
* @instance
|
|
58164
|
+
*/
|
|
58165
|
+
ClientLibrarySettings.prototype.pythonSettings = null;
|
|
58166
|
+
|
|
58167
|
+
/**
|
|
58168
|
+
* ClientLibrarySettings nodeSettings.
|
|
58169
|
+
* @member {google.api.INodeSettings|null|undefined} nodeSettings
|
|
58170
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58171
|
+
* @instance
|
|
58172
|
+
*/
|
|
58173
|
+
ClientLibrarySettings.prototype.nodeSettings = null;
|
|
58174
|
+
|
|
58175
|
+
/**
|
|
58176
|
+
* ClientLibrarySettings dotnetSettings.
|
|
58177
|
+
* @member {google.api.IDotnetSettings|null|undefined} dotnetSettings
|
|
58178
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58179
|
+
* @instance
|
|
58180
|
+
*/
|
|
58181
|
+
ClientLibrarySettings.prototype.dotnetSettings = null;
|
|
58182
|
+
|
|
58183
|
+
/**
|
|
58184
|
+
* ClientLibrarySettings rubySettings.
|
|
58185
|
+
* @member {google.api.IRubySettings|null|undefined} rubySettings
|
|
58186
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58187
|
+
* @instance
|
|
58188
|
+
*/
|
|
58189
|
+
ClientLibrarySettings.prototype.rubySettings = null;
|
|
58190
|
+
|
|
58191
|
+
/**
|
|
58192
|
+
* ClientLibrarySettings goSettings.
|
|
58193
|
+
* @member {google.api.IGoSettings|null|undefined} goSettings
|
|
58194
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58195
|
+
* @instance
|
|
58196
|
+
*/
|
|
58197
|
+
ClientLibrarySettings.prototype.goSettings = null;
|
|
58198
|
+
|
|
58199
|
+
/**
|
|
58200
|
+
* Creates a new ClientLibrarySettings instance using the specified properties.
|
|
58201
|
+
* @function create
|
|
58202
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58203
|
+
* @static
|
|
58204
|
+
* @param {google.api.IClientLibrarySettings=} [properties] Properties to set
|
|
58205
|
+
* @returns {google.api.ClientLibrarySettings} ClientLibrarySettings instance
|
|
58206
|
+
*/
|
|
58207
|
+
ClientLibrarySettings.create = function create(properties) {
|
|
58208
|
+
return new ClientLibrarySettings(properties);
|
|
58209
|
+
};
|
|
58210
|
+
|
|
58211
|
+
/**
|
|
58212
|
+
* Encodes the specified ClientLibrarySettings message. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
|
|
58213
|
+
* @function encode
|
|
58214
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58215
|
+
* @static
|
|
58216
|
+
* @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
|
|
58217
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58218
|
+
* @returns {$protobuf.Writer} Writer
|
|
58219
|
+
*/
|
|
58220
|
+
ClientLibrarySettings.encode = function encode(message, writer) {
|
|
58221
|
+
if (!writer)
|
|
58222
|
+
writer = $Writer.create();
|
|
58223
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
58224
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
|
|
58225
|
+
if (message.launchStage != null && Object.hasOwnProperty.call(message, "launchStage"))
|
|
58226
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.launchStage);
|
|
58227
|
+
if (message.restNumericEnums != null && Object.hasOwnProperty.call(message, "restNumericEnums"))
|
|
58228
|
+
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restNumericEnums);
|
|
58229
|
+
if (message.javaSettings != null && Object.hasOwnProperty.call(message, "javaSettings"))
|
|
58230
|
+
$root.google.api.JavaSettings.encode(message.javaSettings, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim();
|
|
58231
|
+
if (message.cppSettings != null && Object.hasOwnProperty.call(message, "cppSettings"))
|
|
58232
|
+
$root.google.api.CppSettings.encode(message.cppSettings, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim();
|
|
58233
|
+
if (message.phpSettings != null && Object.hasOwnProperty.call(message, "phpSettings"))
|
|
58234
|
+
$root.google.api.PhpSettings.encode(message.phpSettings, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim();
|
|
58235
|
+
if (message.pythonSettings != null && Object.hasOwnProperty.call(message, "pythonSettings"))
|
|
58236
|
+
$root.google.api.PythonSettings.encode(message.pythonSettings, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim();
|
|
58237
|
+
if (message.nodeSettings != null && Object.hasOwnProperty.call(message, "nodeSettings"))
|
|
58238
|
+
$root.google.api.NodeSettings.encode(message.nodeSettings, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim();
|
|
58239
|
+
if (message.dotnetSettings != null && Object.hasOwnProperty.call(message, "dotnetSettings"))
|
|
58240
|
+
$root.google.api.DotnetSettings.encode(message.dotnetSettings, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
58241
|
+
if (message.rubySettings != null && Object.hasOwnProperty.call(message, "rubySettings"))
|
|
58242
|
+
$root.google.api.RubySettings.encode(message.rubySettings, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
58243
|
+
if (message.goSettings != null && Object.hasOwnProperty.call(message, "goSettings"))
|
|
58244
|
+
$root.google.api.GoSettings.encode(message.goSettings, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
|
|
58245
|
+
return writer;
|
|
58246
|
+
};
|
|
58247
|
+
|
|
58248
|
+
/**
|
|
58249
|
+
* Encodes the specified ClientLibrarySettings message, length delimited. Does not implicitly {@link google.api.ClientLibrarySettings.verify|verify} messages.
|
|
58250
|
+
* @function encodeDelimited
|
|
58251
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58252
|
+
* @static
|
|
58253
|
+
* @param {google.api.IClientLibrarySettings} message ClientLibrarySettings message or plain object to encode
|
|
58254
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58255
|
+
* @returns {$protobuf.Writer} Writer
|
|
58256
|
+
*/
|
|
58257
|
+
ClientLibrarySettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58258
|
+
return this.encode(message, writer).ldelim();
|
|
58259
|
+
};
|
|
58260
|
+
|
|
58261
|
+
/**
|
|
58262
|
+
* Decodes a ClientLibrarySettings message from the specified reader or buffer.
|
|
58263
|
+
* @function decode
|
|
58264
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58265
|
+
* @static
|
|
58266
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58267
|
+
* @param {number} [length] Message length if known beforehand
|
|
58268
|
+
* @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
|
|
58269
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58270
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58271
|
+
*/
|
|
58272
|
+
ClientLibrarySettings.decode = function decode(reader, length) {
|
|
58273
|
+
if (!(reader instanceof $Reader))
|
|
58274
|
+
reader = $Reader.create(reader);
|
|
58275
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.ClientLibrarySettings();
|
|
58276
|
+
while (reader.pos < end) {
|
|
58277
|
+
var tag = reader.uint32();
|
|
58278
|
+
switch (tag >>> 3) {
|
|
58279
|
+
case 1: {
|
|
58280
|
+
message.version = reader.string();
|
|
58281
|
+
break;
|
|
58282
|
+
}
|
|
58283
|
+
case 2: {
|
|
58284
|
+
message.launchStage = reader.int32();
|
|
58285
|
+
break;
|
|
58286
|
+
}
|
|
58287
|
+
case 3: {
|
|
58288
|
+
message.restNumericEnums = reader.bool();
|
|
58289
|
+
break;
|
|
58290
|
+
}
|
|
58291
|
+
case 21: {
|
|
58292
|
+
message.javaSettings = $root.google.api.JavaSettings.decode(reader, reader.uint32());
|
|
58293
|
+
break;
|
|
58294
|
+
}
|
|
58295
|
+
case 22: {
|
|
58296
|
+
message.cppSettings = $root.google.api.CppSettings.decode(reader, reader.uint32());
|
|
58297
|
+
break;
|
|
58298
|
+
}
|
|
58299
|
+
case 23: {
|
|
58300
|
+
message.phpSettings = $root.google.api.PhpSettings.decode(reader, reader.uint32());
|
|
58301
|
+
break;
|
|
58302
|
+
}
|
|
58303
|
+
case 24: {
|
|
58304
|
+
message.pythonSettings = $root.google.api.PythonSettings.decode(reader, reader.uint32());
|
|
58305
|
+
break;
|
|
58306
|
+
}
|
|
58307
|
+
case 25: {
|
|
58308
|
+
message.nodeSettings = $root.google.api.NodeSettings.decode(reader, reader.uint32());
|
|
58309
|
+
break;
|
|
58310
|
+
}
|
|
58311
|
+
case 26: {
|
|
58312
|
+
message.dotnetSettings = $root.google.api.DotnetSettings.decode(reader, reader.uint32());
|
|
58313
|
+
break;
|
|
58314
|
+
}
|
|
58315
|
+
case 27: {
|
|
58316
|
+
message.rubySettings = $root.google.api.RubySettings.decode(reader, reader.uint32());
|
|
58317
|
+
break;
|
|
58318
|
+
}
|
|
58319
|
+
case 28: {
|
|
58320
|
+
message.goSettings = $root.google.api.GoSettings.decode(reader, reader.uint32());
|
|
58321
|
+
break;
|
|
58322
|
+
}
|
|
58323
|
+
default:
|
|
58324
|
+
reader.skipType(tag & 7);
|
|
58325
|
+
break;
|
|
58326
|
+
}
|
|
58327
|
+
}
|
|
58328
|
+
return message;
|
|
58329
|
+
};
|
|
58330
|
+
|
|
58331
|
+
/**
|
|
58332
|
+
* Decodes a ClientLibrarySettings message from the specified reader or buffer, length delimited.
|
|
58333
|
+
* @function decodeDelimited
|
|
58334
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58335
|
+
* @static
|
|
58336
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58337
|
+
* @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
|
|
58338
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58339
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58340
|
+
*/
|
|
58341
|
+
ClientLibrarySettings.decodeDelimited = function decodeDelimited(reader) {
|
|
58342
|
+
if (!(reader instanceof $Reader))
|
|
58343
|
+
reader = new $Reader(reader);
|
|
58344
|
+
return this.decode(reader, reader.uint32());
|
|
58345
|
+
};
|
|
58346
|
+
|
|
58347
|
+
/**
|
|
58348
|
+
* Verifies a ClientLibrarySettings message.
|
|
58349
|
+
* @function verify
|
|
58350
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58351
|
+
* @static
|
|
58352
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58353
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58354
|
+
*/
|
|
58355
|
+
ClientLibrarySettings.verify = function verify(message) {
|
|
58356
|
+
if (typeof message !== "object" || message === null)
|
|
58357
|
+
return "object expected";
|
|
58358
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
58359
|
+
if (!$util.isString(message.version))
|
|
58360
|
+
return "version: string expected";
|
|
58361
|
+
if (message.launchStage != null && message.hasOwnProperty("launchStage"))
|
|
58362
|
+
switch (message.launchStage) {
|
|
58363
|
+
default:
|
|
58364
|
+
return "launchStage: enum value expected";
|
|
58365
|
+
case 0:
|
|
58366
|
+
case 6:
|
|
58367
|
+
case 7:
|
|
58368
|
+
case 1:
|
|
58369
|
+
case 2:
|
|
58370
|
+
case 3:
|
|
58371
|
+
case 4:
|
|
58372
|
+
case 5:
|
|
58373
|
+
break;
|
|
58374
|
+
}
|
|
58375
|
+
if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
|
|
58376
|
+
if (typeof message.restNumericEnums !== "boolean")
|
|
58377
|
+
return "restNumericEnums: boolean expected";
|
|
58378
|
+
if (message.javaSettings != null && message.hasOwnProperty("javaSettings")) {
|
|
58379
|
+
var error = $root.google.api.JavaSettings.verify(message.javaSettings);
|
|
58380
|
+
if (error)
|
|
58381
|
+
return "javaSettings." + error;
|
|
58382
|
+
}
|
|
58383
|
+
if (message.cppSettings != null && message.hasOwnProperty("cppSettings")) {
|
|
58384
|
+
var error = $root.google.api.CppSettings.verify(message.cppSettings);
|
|
58385
|
+
if (error)
|
|
58386
|
+
return "cppSettings." + error;
|
|
58387
|
+
}
|
|
58388
|
+
if (message.phpSettings != null && message.hasOwnProperty("phpSettings")) {
|
|
58389
|
+
var error = $root.google.api.PhpSettings.verify(message.phpSettings);
|
|
58390
|
+
if (error)
|
|
58391
|
+
return "phpSettings." + error;
|
|
58392
|
+
}
|
|
58393
|
+
if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings")) {
|
|
58394
|
+
var error = $root.google.api.PythonSettings.verify(message.pythonSettings);
|
|
58395
|
+
if (error)
|
|
58396
|
+
return "pythonSettings." + error;
|
|
58397
|
+
}
|
|
58398
|
+
if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings")) {
|
|
58399
|
+
var error = $root.google.api.NodeSettings.verify(message.nodeSettings);
|
|
58400
|
+
if (error)
|
|
58401
|
+
return "nodeSettings." + error;
|
|
58402
|
+
}
|
|
58403
|
+
if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings")) {
|
|
58404
|
+
var error = $root.google.api.DotnetSettings.verify(message.dotnetSettings);
|
|
58405
|
+
if (error)
|
|
58406
|
+
return "dotnetSettings." + error;
|
|
58407
|
+
}
|
|
58408
|
+
if (message.rubySettings != null && message.hasOwnProperty("rubySettings")) {
|
|
58409
|
+
var error = $root.google.api.RubySettings.verify(message.rubySettings);
|
|
58410
|
+
if (error)
|
|
58411
|
+
return "rubySettings." + error;
|
|
58412
|
+
}
|
|
58413
|
+
if (message.goSettings != null && message.hasOwnProperty("goSettings")) {
|
|
58414
|
+
var error = $root.google.api.GoSettings.verify(message.goSettings);
|
|
58415
|
+
if (error)
|
|
58416
|
+
return "goSettings." + error;
|
|
58417
|
+
}
|
|
58418
|
+
return null;
|
|
58419
|
+
};
|
|
58420
|
+
|
|
58421
|
+
/**
|
|
58422
|
+
* Creates a ClientLibrarySettings message from a plain object. Also converts values to their respective internal types.
|
|
58423
|
+
* @function fromObject
|
|
58424
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58425
|
+
* @static
|
|
58426
|
+
* @param {Object.<string,*>} object Plain object
|
|
58427
|
+
* @returns {google.api.ClientLibrarySettings} ClientLibrarySettings
|
|
58428
|
+
*/
|
|
58429
|
+
ClientLibrarySettings.fromObject = function fromObject(object) {
|
|
58430
|
+
if (object instanceof $root.google.api.ClientLibrarySettings)
|
|
58431
|
+
return object;
|
|
58432
|
+
var message = new $root.google.api.ClientLibrarySettings();
|
|
58433
|
+
if (object.version != null)
|
|
58434
|
+
message.version = String(object.version);
|
|
58435
|
+
switch (object.launchStage) {
|
|
58436
|
+
default:
|
|
58437
|
+
if (typeof object.launchStage === "number") {
|
|
58438
|
+
message.launchStage = object.launchStage;
|
|
58439
|
+
break;
|
|
58440
|
+
}
|
|
58441
|
+
break;
|
|
58442
|
+
case "LAUNCH_STAGE_UNSPECIFIED":
|
|
58443
|
+
case 0:
|
|
58444
|
+
message.launchStage = 0;
|
|
58445
|
+
break;
|
|
58446
|
+
case "UNIMPLEMENTED":
|
|
58447
|
+
case 6:
|
|
58448
|
+
message.launchStage = 6;
|
|
58449
|
+
break;
|
|
58450
|
+
case "PRELAUNCH":
|
|
58451
|
+
case 7:
|
|
58452
|
+
message.launchStage = 7;
|
|
58453
|
+
break;
|
|
58454
|
+
case "EARLY_ACCESS":
|
|
58455
|
+
case 1:
|
|
58456
|
+
message.launchStage = 1;
|
|
58457
|
+
break;
|
|
58458
|
+
case "ALPHA":
|
|
58459
|
+
case 2:
|
|
58460
|
+
message.launchStage = 2;
|
|
58461
|
+
break;
|
|
58462
|
+
case "BETA":
|
|
58463
|
+
case 3:
|
|
58464
|
+
message.launchStage = 3;
|
|
58465
|
+
break;
|
|
58466
|
+
case "GA":
|
|
58467
|
+
case 4:
|
|
58468
|
+
message.launchStage = 4;
|
|
58469
|
+
break;
|
|
58470
|
+
case "DEPRECATED":
|
|
58471
|
+
case 5:
|
|
58472
|
+
message.launchStage = 5;
|
|
58473
|
+
break;
|
|
58474
|
+
}
|
|
58475
|
+
if (object.restNumericEnums != null)
|
|
58476
|
+
message.restNumericEnums = Boolean(object.restNumericEnums);
|
|
58477
|
+
if (object.javaSettings != null) {
|
|
58478
|
+
if (typeof object.javaSettings !== "object")
|
|
58479
|
+
throw TypeError(".google.api.ClientLibrarySettings.javaSettings: object expected");
|
|
58480
|
+
message.javaSettings = $root.google.api.JavaSettings.fromObject(object.javaSettings);
|
|
58481
|
+
}
|
|
58482
|
+
if (object.cppSettings != null) {
|
|
58483
|
+
if (typeof object.cppSettings !== "object")
|
|
58484
|
+
throw TypeError(".google.api.ClientLibrarySettings.cppSettings: object expected");
|
|
58485
|
+
message.cppSettings = $root.google.api.CppSettings.fromObject(object.cppSettings);
|
|
58486
|
+
}
|
|
58487
|
+
if (object.phpSettings != null) {
|
|
58488
|
+
if (typeof object.phpSettings !== "object")
|
|
58489
|
+
throw TypeError(".google.api.ClientLibrarySettings.phpSettings: object expected");
|
|
58490
|
+
message.phpSettings = $root.google.api.PhpSettings.fromObject(object.phpSettings);
|
|
58491
|
+
}
|
|
58492
|
+
if (object.pythonSettings != null) {
|
|
58493
|
+
if (typeof object.pythonSettings !== "object")
|
|
58494
|
+
throw TypeError(".google.api.ClientLibrarySettings.pythonSettings: object expected");
|
|
58495
|
+
message.pythonSettings = $root.google.api.PythonSettings.fromObject(object.pythonSettings);
|
|
58496
|
+
}
|
|
58497
|
+
if (object.nodeSettings != null) {
|
|
58498
|
+
if (typeof object.nodeSettings !== "object")
|
|
58499
|
+
throw TypeError(".google.api.ClientLibrarySettings.nodeSettings: object expected");
|
|
58500
|
+
message.nodeSettings = $root.google.api.NodeSettings.fromObject(object.nodeSettings);
|
|
58501
|
+
}
|
|
58502
|
+
if (object.dotnetSettings != null) {
|
|
58503
|
+
if (typeof object.dotnetSettings !== "object")
|
|
58504
|
+
throw TypeError(".google.api.ClientLibrarySettings.dotnetSettings: object expected");
|
|
58505
|
+
message.dotnetSettings = $root.google.api.DotnetSettings.fromObject(object.dotnetSettings);
|
|
58506
|
+
}
|
|
58507
|
+
if (object.rubySettings != null) {
|
|
58508
|
+
if (typeof object.rubySettings !== "object")
|
|
58509
|
+
throw TypeError(".google.api.ClientLibrarySettings.rubySettings: object expected");
|
|
58510
|
+
message.rubySettings = $root.google.api.RubySettings.fromObject(object.rubySettings);
|
|
58511
|
+
}
|
|
58512
|
+
if (object.goSettings != null) {
|
|
58513
|
+
if (typeof object.goSettings !== "object")
|
|
58514
|
+
throw TypeError(".google.api.ClientLibrarySettings.goSettings: object expected");
|
|
58515
|
+
message.goSettings = $root.google.api.GoSettings.fromObject(object.goSettings);
|
|
58516
|
+
}
|
|
58517
|
+
return message;
|
|
58518
|
+
};
|
|
58519
|
+
|
|
58520
|
+
/**
|
|
58521
|
+
* Creates a plain object from a ClientLibrarySettings message. Also converts values to other types if specified.
|
|
58522
|
+
* @function toObject
|
|
58523
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58524
|
+
* @static
|
|
58525
|
+
* @param {google.api.ClientLibrarySettings} message ClientLibrarySettings
|
|
58526
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
58527
|
+
* @returns {Object.<string,*>} Plain object
|
|
58528
|
+
*/
|
|
58529
|
+
ClientLibrarySettings.toObject = function toObject(message, options) {
|
|
58530
|
+
if (!options)
|
|
58531
|
+
options = {};
|
|
58532
|
+
var object = {};
|
|
58533
|
+
if (options.defaults) {
|
|
58534
|
+
object.version = "";
|
|
58535
|
+
object.launchStage = options.enums === String ? "LAUNCH_STAGE_UNSPECIFIED" : 0;
|
|
58536
|
+
object.restNumericEnums = false;
|
|
58537
|
+
object.javaSettings = null;
|
|
58538
|
+
object.cppSettings = null;
|
|
58539
|
+
object.phpSettings = null;
|
|
58540
|
+
object.pythonSettings = null;
|
|
58541
|
+
object.nodeSettings = null;
|
|
58542
|
+
object.dotnetSettings = null;
|
|
58543
|
+
object.rubySettings = null;
|
|
58544
|
+
object.goSettings = null;
|
|
58545
|
+
}
|
|
58546
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
58547
|
+
object.version = message.version;
|
|
58548
|
+
if (message.launchStage != null && message.hasOwnProperty("launchStage"))
|
|
58549
|
+
object.launchStage = options.enums === String ? $root.google.api.LaunchStage[message.launchStage] === undefined ? message.launchStage : $root.google.api.LaunchStage[message.launchStage] : message.launchStage;
|
|
58550
|
+
if (message.restNumericEnums != null && message.hasOwnProperty("restNumericEnums"))
|
|
58551
|
+
object.restNumericEnums = message.restNumericEnums;
|
|
58552
|
+
if (message.javaSettings != null && message.hasOwnProperty("javaSettings"))
|
|
58553
|
+
object.javaSettings = $root.google.api.JavaSettings.toObject(message.javaSettings, options);
|
|
58554
|
+
if (message.cppSettings != null && message.hasOwnProperty("cppSettings"))
|
|
58555
|
+
object.cppSettings = $root.google.api.CppSettings.toObject(message.cppSettings, options);
|
|
58556
|
+
if (message.phpSettings != null && message.hasOwnProperty("phpSettings"))
|
|
58557
|
+
object.phpSettings = $root.google.api.PhpSettings.toObject(message.phpSettings, options);
|
|
58558
|
+
if (message.pythonSettings != null && message.hasOwnProperty("pythonSettings"))
|
|
58559
|
+
object.pythonSettings = $root.google.api.PythonSettings.toObject(message.pythonSettings, options);
|
|
58560
|
+
if (message.nodeSettings != null && message.hasOwnProperty("nodeSettings"))
|
|
58561
|
+
object.nodeSettings = $root.google.api.NodeSettings.toObject(message.nodeSettings, options);
|
|
58562
|
+
if (message.dotnetSettings != null && message.hasOwnProperty("dotnetSettings"))
|
|
58563
|
+
object.dotnetSettings = $root.google.api.DotnetSettings.toObject(message.dotnetSettings, options);
|
|
58564
|
+
if (message.rubySettings != null && message.hasOwnProperty("rubySettings"))
|
|
58565
|
+
object.rubySettings = $root.google.api.RubySettings.toObject(message.rubySettings, options);
|
|
58566
|
+
if (message.goSettings != null && message.hasOwnProperty("goSettings"))
|
|
58567
|
+
object.goSettings = $root.google.api.GoSettings.toObject(message.goSettings, options);
|
|
58568
|
+
return object;
|
|
58569
|
+
};
|
|
58570
|
+
|
|
58571
|
+
/**
|
|
58572
|
+
* Converts this ClientLibrarySettings to JSON.
|
|
58573
|
+
* @function toJSON
|
|
58574
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58575
|
+
* @instance
|
|
58576
|
+
* @returns {Object.<string,*>} JSON object
|
|
58577
|
+
*/
|
|
58578
|
+
ClientLibrarySettings.prototype.toJSON = function toJSON() {
|
|
58579
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
58580
|
+
};
|
|
58581
|
+
|
|
58582
|
+
/**
|
|
58583
|
+
* Gets the default type url for ClientLibrarySettings
|
|
58584
|
+
* @function getTypeUrl
|
|
58585
|
+
* @memberof google.api.ClientLibrarySettings
|
|
58586
|
+
* @static
|
|
58587
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
58588
|
+
* @returns {string} The default type url
|
|
58589
|
+
*/
|
|
58590
|
+
ClientLibrarySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
58591
|
+
if (typeUrlPrefix === undefined) {
|
|
58592
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
58593
|
+
}
|
|
58594
|
+
return typeUrlPrefix + "/google.api.ClientLibrarySettings";
|
|
58595
|
+
};
|
|
58596
|
+
|
|
58597
|
+
return ClientLibrarySettings;
|
|
58598
|
+
})();
|
|
58599
|
+
|
|
58600
|
+
api.Publishing = (function() {
|
|
58601
|
+
|
|
58602
|
+
/**
|
|
58603
|
+
* Properties of a Publishing.
|
|
58604
|
+
* @memberof google.api
|
|
58605
|
+
* @interface IPublishing
|
|
58606
|
+
* @property {Array.<google.api.IMethodSettings>|null} [methodSettings] Publishing methodSettings
|
|
58607
|
+
* @property {string|null} [newIssueUri] Publishing newIssueUri
|
|
58608
|
+
* @property {string|null} [documentationUri] Publishing documentationUri
|
|
58609
|
+
* @property {string|null} [apiShortName] Publishing apiShortName
|
|
58610
|
+
* @property {string|null} [githubLabel] Publishing githubLabel
|
|
58611
|
+
* @property {Array.<string>|null} [codeownerGithubTeams] Publishing codeownerGithubTeams
|
|
58612
|
+
* @property {string|null} [docTagPrefix] Publishing docTagPrefix
|
|
58613
|
+
* @property {google.api.ClientLibraryOrganization|null} [organization] Publishing organization
|
|
58614
|
+
* @property {Array.<google.api.IClientLibrarySettings>|null} [librarySettings] Publishing librarySettings
|
|
58615
|
+
*/
|
|
58616
|
+
|
|
58617
|
+
/**
|
|
58618
|
+
* Constructs a new Publishing.
|
|
58619
|
+
* @memberof google.api
|
|
58620
|
+
* @classdesc Represents a Publishing.
|
|
58621
|
+
* @implements IPublishing
|
|
58622
|
+
* @constructor
|
|
58623
|
+
* @param {google.api.IPublishing=} [properties] Properties to set
|
|
58624
|
+
*/
|
|
58625
|
+
function Publishing(properties) {
|
|
58626
|
+
this.methodSettings = [];
|
|
58627
|
+
this.codeownerGithubTeams = [];
|
|
58628
|
+
this.librarySettings = [];
|
|
58629
|
+
if (properties)
|
|
58630
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58631
|
+
if (properties[keys[i]] != null)
|
|
58632
|
+
this[keys[i]] = properties[keys[i]];
|
|
58633
|
+
}
|
|
58634
|
+
|
|
58635
|
+
/**
|
|
58636
|
+
* Publishing methodSettings.
|
|
58637
|
+
* @member {Array.<google.api.IMethodSettings>} methodSettings
|
|
58638
|
+
* @memberof google.api.Publishing
|
|
58639
|
+
* @instance
|
|
58640
|
+
*/
|
|
58641
|
+
Publishing.prototype.methodSettings = $util.emptyArray;
|
|
58642
|
+
|
|
58643
|
+
/**
|
|
58644
|
+
* Publishing newIssueUri.
|
|
58645
|
+
* @member {string} newIssueUri
|
|
58646
|
+
* @memberof google.api.Publishing
|
|
58647
|
+
* @instance
|
|
58648
|
+
*/
|
|
58649
|
+
Publishing.prototype.newIssueUri = "";
|
|
58650
|
+
|
|
58651
|
+
/**
|
|
58652
|
+
* Publishing documentationUri.
|
|
58653
|
+
* @member {string} documentationUri
|
|
58654
|
+
* @memberof google.api.Publishing
|
|
58655
|
+
* @instance
|
|
58656
|
+
*/
|
|
58657
|
+
Publishing.prototype.documentationUri = "";
|
|
58658
|
+
|
|
58659
|
+
/**
|
|
58660
|
+
* Publishing apiShortName.
|
|
58661
|
+
* @member {string} apiShortName
|
|
58662
|
+
* @memberof google.api.Publishing
|
|
58663
|
+
* @instance
|
|
58664
|
+
*/
|
|
58665
|
+
Publishing.prototype.apiShortName = "";
|
|
58666
|
+
|
|
58667
|
+
/**
|
|
58668
|
+
* Publishing githubLabel.
|
|
58669
|
+
* @member {string} githubLabel
|
|
58670
|
+
* @memberof google.api.Publishing
|
|
58671
|
+
* @instance
|
|
58672
|
+
*/
|
|
58673
|
+
Publishing.prototype.githubLabel = "";
|
|
58674
|
+
|
|
58675
|
+
/**
|
|
58676
|
+
* Publishing codeownerGithubTeams.
|
|
58677
|
+
* @member {Array.<string>} codeownerGithubTeams
|
|
58678
|
+
* @memberof google.api.Publishing
|
|
58679
|
+
* @instance
|
|
58680
|
+
*/
|
|
58681
|
+
Publishing.prototype.codeownerGithubTeams = $util.emptyArray;
|
|
58682
|
+
|
|
58683
|
+
/**
|
|
58684
|
+
* Publishing docTagPrefix.
|
|
58685
|
+
* @member {string} docTagPrefix
|
|
58686
|
+
* @memberof google.api.Publishing
|
|
58687
|
+
* @instance
|
|
58688
|
+
*/
|
|
58689
|
+
Publishing.prototype.docTagPrefix = "";
|
|
58690
|
+
|
|
58691
|
+
/**
|
|
58692
|
+
* Publishing organization.
|
|
58693
|
+
* @member {google.api.ClientLibraryOrganization} organization
|
|
58694
|
+
* @memberof google.api.Publishing
|
|
58695
|
+
* @instance
|
|
58696
|
+
*/
|
|
58697
|
+
Publishing.prototype.organization = 0;
|
|
58698
|
+
|
|
58699
|
+
/**
|
|
58700
|
+
* Publishing librarySettings.
|
|
58701
|
+
* @member {Array.<google.api.IClientLibrarySettings>} librarySettings
|
|
58702
|
+
* @memberof google.api.Publishing
|
|
58703
|
+
* @instance
|
|
58704
|
+
*/
|
|
58705
|
+
Publishing.prototype.librarySettings = $util.emptyArray;
|
|
58706
|
+
|
|
58707
|
+
/**
|
|
58708
|
+
* Creates a new Publishing instance using the specified properties.
|
|
58709
|
+
* @function create
|
|
58710
|
+
* @memberof google.api.Publishing
|
|
58711
|
+
* @static
|
|
58712
|
+
* @param {google.api.IPublishing=} [properties] Properties to set
|
|
58713
|
+
* @returns {google.api.Publishing} Publishing instance
|
|
58714
|
+
*/
|
|
58715
|
+
Publishing.create = function create(properties) {
|
|
58716
|
+
return new Publishing(properties);
|
|
58717
|
+
};
|
|
58718
|
+
|
|
58719
|
+
/**
|
|
58720
|
+
* Encodes the specified Publishing message. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
|
|
58721
|
+
* @function encode
|
|
58722
|
+
* @memberof google.api.Publishing
|
|
58723
|
+
* @static
|
|
58724
|
+
* @param {google.api.IPublishing} message Publishing message or plain object to encode
|
|
58725
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58726
|
+
* @returns {$protobuf.Writer} Writer
|
|
58727
|
+
*/
|
|
58728
|
+
Publishing.encode = function encode(message, writer) {
|
|
58729
|
+
if (!writer)
|
|
58730
|
+
writer = $Writer.create();
|
|
58731
|
+
if (message.methodSettings != null && message.methodSettings.length)
|
|
58732
|
+
for (var i = 0; i < message.methodSettings.length; ++i)
|
|
58733
|
+
$root.google.api.MethodSettings.encode(message.methodSettings[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
58734
|
+
if (message.newIssueUri != null && Object.hasOwnProperty.call(message, "newIssueUri"))
|
|
58735
|
+
writer.uint32(/* id 101, wireType 2 =*/810).string(message.newIssueUri);
|
|
58736
|
+
if (message.documentationUri != null && Object.hasOwnProperty.call(message, "documentationUri"))
|
|
58737
|
+
writer.uint32(/* id 102, wireType 2 =*/818).string(message.documentationUri);
|
|
58738
|
+
if (message.apiShortName != null && Object.hasOwnProperty.call(message, "apiShortName"))
|
|
58739
|
+
writer.uint32(/* id 103, wireType 2 =*/826).string(message.apiShortName);
|
|
58740
|
+
if (message.githubLabel != null && Object.hasOwnProperty.call(message, "githubLabel"))
|
|
58741
|
+
writer.uint32(/* id 104, wireType 2 =*/834).string(message.githubLabel);
|
|
58742
|
+
if (message.codeownerGithubTeams != null && message.codeownerGithubTeams.length)
|
|
58743
|
+
for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
|
|
58744
|
+
writer.uint32(/* id 105, wireType 2 =*/842).string(message.codeownerGithubTeams[i]);
|
|
58745
|
+
if (message.docTagPrefix != null && Object.hasOwnProperty.call(message, "docTagPrefix"))
|
|
58746
|
+
writer.uint32(/* id 106, wireType 2 =*/850).string(message.docTagPrefix);
|
|
58747
|
+
if (message.organization != null && Object.hasOwnProperty.call(message, "organization"))
|
|
58748
|
+
writer.uint32(/* id 107, wireType 0 =*/856).int32(message.organization);
|
|
58749
|
+
if (message.librarySettings != null && message.librarySettings.length)
|
|
58750
|
+
for (var i = 0; i < message.librarySettings.length; ++i)
|
|
58751
|
+
$root.google.api.ClientLibrarySettings.encode(message.librarySettings[i], writer.uint32(/* id 109, wireType 2 =*/874).fork()).ldelim();
|
|
58752
|
+
return writer;
|
|
58753
|
+
};
|
|
58754
|
+
|
|
58755
|
+
/**
|
|
58756
|
+
* Encodes the specified Publishing message, length delimited. Does not implicitly {@link google.api.Publishing.verify|verify} messages.
|
|
58757
|
+
* @function encodeDelimited
|
|
58758
|
+
* @memberof google.api.Publishing
|
|
58759
|
+
* @static
|
|
58760
|
+
* @param {google.api.IPublishing} message Publishing message or plain object to encode
|
|
58761
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58762
|
+
* @returns {$protobuf.Writer} Writer
|
|
58763
|
+
*/
|
|
58764
|
+
Publishing.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58765
|
+
return this.encode(message, writer).ldelim();
|
|
58766
|
+
};
|
|
58767
|
+
|
|
58768
|
+
/**
|
|
58769
|
+
* Decodes a Publishing message from the specified reader or buffer.
|
|
58770
|
+
* @function decode
|
|
58771
|
+
* @memberof google.api.Publishing
|
|
58772
|
+
* @static
|
|
58773
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58774
|
+
* @param {number} [length] Message length if known beforehand
|
|
58775
|
+
* @returns {google.api.Publishing} Publishing
|
|
58776
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58777
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58778
|
+
*/
|
|
58779
|
+
Publishing.decode = function decode(reader, length) {
|
|
58780
|
+
if (!(reader instanceof $Reader))
|
|
58781
|
+
reader = $Reader.create(reader);
|
|
58782
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.Publishing();
|
|
58783
|
+
while (reader.pos < end) {
|
|
58784
|
+
var tag = reader.uint32();
|
|
58785
|
+
switch (tag >>> 3) {
|
|
58786
|
+
case 2: {
|
|
58787
|
+
if (!(message.methodSettings && message.methodSettings.length))
|
|
58788
|
+
message.methodSettings = [];
|
|
58789
|
+
message.methodSettings.push($root.google.api.MethodSettings.decode(reader, reader.uint32()));
|
|
58790
|
+
break;
|
|
58791
|
+
}
|
|
58792
|
+
case 101: {
|
|
58793
|
+
message.newIssueUri = reader.string();
|
|
58794
|
+
break;
|
|
58795
|
+
}
|
|
58796
|
+
case 102: {
|
|
58797
|
+
message.documentationUri = reader.string();
|
|
58798
|
+
break;
|
|
58799
|
+
}
|
|
58800
|
+
case 103: {
|
|
58801
|
+
message.apiShortName = reader.string();
|
|
58802
|
+
break;
|
|
58803
|
+
}
|
|
58804
|
+
case 104: {
|
|
58805
|
+
message.githubLabel = reader.string();
|
|
58806
|
+
break;
|
|
58807
|
+
}
|
|
58808
|
+
case 105: {
|
|
58809
|
+
if (!(message.codeownerGithubTeams && message.codeownerGithubTeams.length))
|
|
58810
|
+
message.codeownerGithubTeams = [];
|
|
58811
|
+
message.codeownerGithubTeams.push(reader.string());
|
|
58812
|
+
break;
|
|
58813
|
+
}
|
|
58814
|
+
case 106: {
|
|
58815
|
+
message.docTagPrefix = reader.string();
|
|
58816
|
+
break;
|
|
58817
|
+
}
|
|
58818
|
+
case 107: {
|
|
58819
|
+
message.organization = reader.int32();
|
|
58820
|
+
break;
|
|
58821
|
+
}
|
|
58822
|
+
case 109: {
|
|
58823
|
+
if (!(message.librarySettings && message.librarySettings.length))
|
|
58824
|
+
message.librarySettings = [];
|
|
58825
|
+
message.librarySettings.push($root.google.api.ClientLibrarySettings.decode(reader, reader.uint32()));
|
|
58826
|
+
break;
|
|
58827
|
+
}
|
|
58828
|
+
default:
|
|
58829
|
+
reader.skipType(tag & 7);
|
|
58830
|
+
break;
|
|
58831
|
+
}
|
|
58832
|
+
}
|
|
58833
|
+
return message;
|
|
58834
|
+
};
|
|
58835
|
+
|
|
58836
|
+
/**
|
|
58837
|
+
* Decodes a Publishing message from the specified reader or buffer, length delimited.
|
|
58838
|
+
* @function decodeDelimited
|
|
58839
|
+
* @memberof google.api.Publishing
|
|
58840
|
+
* @static
|
|
58841
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58842
|
+
* @returns {google.api.Publishing} Publishing
|
|
58843
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58844
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58845
|
+
*/
|
|
58846
|
+
Publishing.decodeDelimited = function decodeDelimited(reader) {
|
|
58847
|
+
if (!(reader instanceof $Reader))
|
|
58848
|
+
reader = new $Reader(reader);
|
|
58849
|
+
return this.decode(reader, reader.uint32());
|
|
58850
|
+
};
|
|
58851
|
+
|
|
58852
|
+
/**
|
|
58853
|
+
* Verifies a Publishing message.
|
|
58854
|
+
* @function verify
|
|
58855
|
+
* @memberof google.api.Publishing
|
|
58856
|
+
* @static
|
|
58857
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58858
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58859
|
+
*/
|
|
58860
|
+
Publishing.verify = function verify(message) {
|
|
58861
|
+
if (typeof message !== "object" || message === null)
|
|
58862
|
+
return "object expected";
|
|
58863
|
+
if (message.methodSettings != null && message.hasOwnProperty("methodSettings")) {
|
|
58864
|
+
if (!Array.isArray(message.methodSettings))
|
|
58865
|
+
return "methodSettings: array expected";
|
|
58866
|
+
for (var i = 0; i < message.methodSettings.length; ++i) {
|
|
58867
|
+
var error = $root.google.api.MethodSettings.verify(message.methodSettings[i]);
|
|
58868
|
+
if (error)
|
|
58869
|
+
return "methodSettings." + error;
|
|
58870
|
+
}
|
|
58871
|
+
}
|
|
58872
|
+
if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
|
|
58873
|
+
if (!$util.isString(message.newIssueUri))
|
|
58874
|
+
return "newIssueUri: string expected";
|
|
58875
|
+
if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
|
|
58876
|
+
if (!$util.isString(message.documentationUri))
|
|
58877
|
+
return "documentationUri: string expected";
|
|
58878
|
+
if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
|
|
58879
|
+
if (!$util.isString(message.apiShortName))
|
|
58880
|
+
return "apiShortName: string expected";
|
|
58881
|
+
if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
|
|
58882
|
+
if (!$util.isString(message.githubLabel))
|
|
58883
|
+
return "githubLabel: string expected";
|
|
58884
|
+
if (message.codeownerGithubTeams != null && message.hasOwnProperty("codeownerGithubTeams")) {
|
|
58885
|
+
if (!Array.isArray(message.codeownerGithubTeams))
|
|
58886
|
+
return "codeownerGithubTeams: array expected";
|
|
58887
|
+
for (var i = 0; i < message.codeownerGithubTeams.length; ++i)
|
|
58888
|
+
if (!$util.isString(message.codeownerGithubTeams[i]))
|
|
58889
|
+
return "codeownerGithubTeams: string[] expected";
|
|
58890
|
+
}
|
|
58891
|
+
if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
|
|
58892
|
+
if (!$util.isString(message.docTagPrefix))
|
|
58893
|
+
return "docTagPrefix: string expected";
|
|
58894
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
58895
|
+
switch (message.organization) {
|
|
58896
|
+
default:
|
|
58897
|
+
return "organization: enum value expected";
|
|
58898
|
+
case 0:
|
|
58899
|
+
case 1:
|
|
58900
|
+
case 2:
|
|
58901
|
+
case 3:
|
|
58902
|
+
case 4:
|
|
58903
|
+
break;
|
|
58904
|
+
}
|
|
58905
|
+
if (message.librarySettings != null && message.hasOwnProperty("librarySettings")) {
|
|
58906
|
+
if (!Array.isArray(message.librarySettings))
|
|
58907
|
+
return "librarySettings: array expected";
|
|
58908
|
+
for (var i = 0; i < message.librarySettings.length; ++i) {
|
|
58909
|
+
var error = $root.google.api.ClientLibrarySettings.verify(message.librarySettings[i]);
|
|
58910
|
+
if (error)
|
|
58911
|
+
return "librarySettings." + error;
|
|
58912
|
+
}
|
|
58913
|
+
}
|
|
58914
|
+
return null;
|
|
58915
|
+
};
|
|
58916
|
+
|
|
58917
|
+
/**
|
|
58918
|
+
* Creates a Publishing message from a plain object. Also converts values to their respective internal types.
|
|
58919
|
+
* @function fromObject
|
|
58920
|
+
* @memberof google.api.Publishing
|
|
58921
|
+
* @static
|
|
58922
|
+
* @param {Object.<string,*>} object Plain object
|
|
58923
|
+
* @returns {google.api.Publishing} Publishing
|
|
58924
|
+
*/
|
|
58925
|
+
Publishing.fromObject = function fromObject(object) {
|
|
58926
|
+
if (object instanceof $root.google.api.Publishing)
|
|
58927
|
+
return object;
|
|
58928
|
+
var message = new $root.google.api.Publishing();
|
|
58929
|
+
if (object.methodSettings) {
|
|
58930
|
+
if (!Array.isArray(object.methodSettings))
|
|
58931
|
+
throw TypeError(".google.api.Publishing.methodSettings: array expected");
|
|
58932
|
+
message.methodSettings = [];
|
|
58933
|
+
for (var i = 0; i < object.methodSettings.length; ++i) {
|
|
58934
|
+
if (typeof object.methodSettings[i] !== "object")
|
|
58935
|
+
throw TypeError(".google.api.Publishing.methodSettings: object expected");
|
|
58936
|
+
message.methodSettings[i] = $root.google.api.MethodSettings.fromObject(object.methodSettings[i]);
|
|
58937
|
+
}
|
|
58938
|
+
}
|
|
58939
|
+
if (object.newIssueUri != null)
|
|
58940
|
+
message.newIssueUri = String(object.newIssueUri);
|
|
58941
|
+
if (object.documentationUri != null)
|
|
58942
|
+
message.documentationUri = String(object.documentationUri);
|
|
58943
|
+
if (object.apiShortName != null)
|
|
58944
|
+
message.apiShortName = String(object.apiShortName);
|
|
58945
|
+
if (object.githubLabel != null)
|
|
58946
|
+
message.githubLabel = String(object.githubLabel);
|
|
58947
|
+
if (object.codeownerGithubTeams) {
|
|
58948
|
+
if (!Array.isArray(object.codeownerGithubTeams))
|
|
58949
|
+
throw TypeError(".google.api.Publishing.codeownerGithubTeams: array expected");
|
|
58950
|
+
message.codeownerGithubTeams = [];
|
|
58951
|
+
for (var i = 0; i < object.codeownerGithubTeams.length; ++i)
|
|
58952
|
+
message.codeownerGithubTeams[i] = String(object.codeownerGithubTeams[i]);
|
|
58953
|
+
}
|
|
58954
|
+
if (object.docTagPrefix != null)
|
|
58955
|
+
message.docTagPrefix = String(object.docTagPrefix);
|
|
58956
|
+
switch (object.organization) {
|
|
58957
|
+
default:
|
|
58958
|
+
if (typeof object.organization === "number") {
|
|
58959
|
+
message.organization = object.organization;
|
|
58960
|
+
break;
|
|
58961
|
+
}
|
|
58962
|
+
break;
|
|
58963
|
+
case "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED":
|
|
58964
|
+
case 0:
|
|
58965
|
+
message.organization = 0;
|
|
58966
|
+
break;
|
|
58967
|
+
case "CLOUD":
|
|
58968
|
+
case 1:
|
|
58969
|
+
message.organization = 1;
|
|
58970
|
+
break;
|
|
58971
|
+
case "ADS":
|
|
58972
|
+
case 2:
|
|
58973
|
+
message.organization = 2;
|
|
58974
|
+
break;
|
|
58975
|
+
case "PHOTOS":
|
|
58976
|
+
case 3:
|
|
58977
|
+
message.organization = 3;
|
|
58978
|
+
break;
|
|
58979
|
+
case "STREET_VIEW":
|
|
58980
|
+
case 4:
|
|
58981
|
+
message.organization = 4;
|
|
58982
|
+
break;
|
|
58983
|
+
}
|
|
58984
|
+
if (object.librarySettings) {
|
|
58985
|
+
if (!Array.isArray(object.librarySettings))
|
|
58986
|
+
throw TypeError(".google.api.Publishing.librarySettings: array expected");
|
|
58987
|
+
message.librarySettings = [];
|
|
58988
|
+
for (var i = 0; i < object.librarySettings.length; ++i) {
|
|
58989
|
+
if (typeof object.librarySettings[i] !== "object")
|
|
58990
|
+
throw TypeError(".google.api.Publishing.librarySettings: object expected");
|
|
58991
|
+
message.librarySettings[i] = $root.google.api.ClientLibrarySettings.fromObject(object.librarySettings[i]);
|
|
58992
|
+
}
|
|
58993
|
+
}
|
|
58994
|
+
return message;
|
|
58995
|
+
};
|
|
58996
|
+
|
|
58997
|
+
/**
|
|
58998
|
+
* Creates a plain object from a Publishing message. Also converts values to other types if specified.
|
|
58999
|
+
* @function toObject
|
|
59000
|
+
* @memberof google.api.Publishing
|
|
59001
|
+
* @static
|
|
59002
|
+
* @param {google.api.Publishing} message Publishing
|
|
59003
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59004
|
+
* @returns {Object.<string,*>} Plain object
|
|
59005
|
+
*/
|
|
59006
|
+
Publishing.toObject = function toObject(message, options) {
|
|
59007
|
+
if (!options)
|
|
59008
|
+
options = {};
|
|
59009
|
+
var object = {};
|
|
59010
|
+
if (options.arrays || options.defaults) {
|
|
59011
|
+
object.methodSettings = [];
|
|
59012
|
+
object.codeownerGithubTeams = [];
|
|
59013
|
+
object.librarySettings = [];
|
|
59014
|
+
}
|
|
59015
|
+
if (options.defaults) {
|
|
59016
|
+
object.newIssueUri = "";
|
|
59017
|
+
object.documentationUri = "";
|
|
59018
|
+
object.apiShortName = "";
|
|
59019
|
+
object.githubLabel = "";
|
|
59020
|
+
object.docTagPrefix = "";
|
|
59021
|
+
object.organization = options.enums === String ? "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED" : 0;
|
|
59022
|
+
}
|
|
59023
|
+
if (message.methodSettings && message.methodSettings.length) {
|
|
59024
|
+
object.methodSettings = [];
|
|
59025
|
+
for (var j = 0; j < message.methodSettings.length; ++j)
|
|
59026
|
+
object.methodSettings[j] = $root.google.api.MethodSettings.toObject(message.methodSettings[j], options);
|
|
59027
|
+
}
|
|
59028
|
+
if (message.newIssueUri != null && message.hasOwnProperty("newIssueUri"))
|
|
59029
|
+
object.newIssueUri = message.newIssueUri;
|
|
59030
|
+
if (message.documentationUri != null && message.hasOwnProperty("documentationUri"))
|
|
59031
|
+
object.documentationUri = message.documentationUri;
|
|
59032
|
+
if (message.apiShortName != null && message.hasOwnProperty("apiShortName"))
|
|
59033
|
+
object.apiShortName = message.apiShortName;
|
|
59034
|
+
if (message.githubLabel != null && message.hasOwnProperty("githubLabel"))
|
|
59035
|
+
object.githubLabel = message.githubLabel;
|
|
59036
|
+
if (message.codeownerGithubTeams && message.codeownerGithubTeams.length) {
|
|
59037
|
+
object.codeownerGithubTeams = [];
|
|
59038
|
+
for (var j = 0; j < message.codeownerGithubTeams.length; ++j)
|
|
59039
|
+
object.codeownerGithubTeams[j] = message.codeownerGithubTeams[j];
|
|
59040
|
+
}
|
|
59041
|
+
if (message.docTagPrefix != null && message.hasOwnProperty("docTagPrefix"))
|
|
59042
|
+
object.docTagPrefix = message.docTagPrefix;
|
|
59043
|
+
if (message.organization != null && message.hasOwnProperty("organization"))
|
|
59044
|
+
object.organization = options.enums === String ? $root.google.api.ClientLibraryOrganization[message.organization] === undefined ? message.organization : $root.google.api.ClientLibraryOrganization[message.organization] : message.organization;
|
|
59045
|
+
if (message.librarySettings && message.librarySettings.length) {
|
|
59046
|
+
object.librarySettings = [];
|
|
59047
|
+
for (var j = 0; j < message.librarySettings.length; ++j)
|
|
59048
|
+
object.librarySettings[j] = $root.google.api.ClientLibrarySettings.toObject(message.librarySettings[j], options);
|
|
59049
|
+
}
|
|
59050
|
+
return object;
|
|
59051
|
+
};
|
|
59052
|
+
|
|
59053
|
+
/**
|
|
59054
|
+
* Converts this Publishing to JSON.
|
|
59055
|
+
* @function toJSON
|
|
59056
|
+
* @memberof google.api.Publishing
|
|
59057
|
+
* @instance
|
|
59058
|
+
* @returns {Object.<string,*>} JSON object
|
|
59059
|
+
*/
|
|
59060
|
+
Publishing.prototype.toJSON = function toJSON() {
|
|
59061
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59062
|
+
};
|
|
59063
|
+
|
|
59064
|
+
/**
|
|
59065
|
+
* Gets the default type url for Publishing
|
|
59066
|
+
* @function getTypeUrl
|
|
59067
|
+
* @memberof google.api.Publishing
|
|
59068
|
+
* @static
|
|
59069
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
59070
|
+
* @returns {string} The default type url
|
|
59071
|
+
*/
|
|
59072
|
+
Publishing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
59073
|
+
if (typeUrlPrefix === undefined) {
|
|
59074
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
59075
|
+
}
|
|
59076
|
+
return typeUrlPrefix + "/google.api.Publishing";
|
|
59077
|
+
};
|
|
59078
|
+
|
|
59079
|
+
return Publishing;
|
|
59080
|
+
})();
|
|
59081
|
+
|
|
59082
|
+
api.JavaSettings = (function() {
|
|
59083
|
+
|
|
59084
|
+
/**
|
|
59085
|
+
* Properties of a JavaSettings.
|
|
59086
|
+
* @memberof google.api
|
|
59087
|
+
* @interface IJavaSettings
|
|
59088
|
+
* @property {string|null} [libraryPackage] JavaSettings libraryPackage
|
|
59089
|
+
* @property {Object.<string,string>|null} [serviceClassNames] JavaSettings serviceClassNames
|
|
59090
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] JavaSettings common
|
|
59091
|
+
*/
|
|
59092
|
+
|
|
59093
|
+
/**
|
|
59094
|
+
* Constructs a new JavaSettings.
|
|
59095
|
+
* @memberof google.api
|
|
59096
|
+
* @classdesc Represents a JavaSettings.
|
|
59097
|
+
* @implements IJavaSettings
|
|
59098
|
+
* @constructor
|
|
59099
|
+
* @param {google.api.IJavaSettings=} [properties] Properties to set
|
|
59100
|
+
*/
|
|
59101
|
+
function JavaSettings(properties) {
|
|
59102
|
+
this.serviceClassNames = {};
|
|
59103
|
+
if (properties)
|
|
59104
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59105
|
+
if (properties[keys[i]] != null)
|
|
59106
|
+
this[keys[i]] = properties[keys[i]];
|
|
59107
|
+
}
|
|
59108
|
+
|
|
59109
|
+
/**
|
|
59110
|
+
* JavaSettings libraryPackage.
|
|
59111
|
+
* @member {string} libraryPackage
|
|
59112
|
+
* @memberof google.api.JavaSettings
|
|
59113
|
+
* @instance
|
|
59114
|
+
*/
|
|
59115
|
+
JavaSettings.prototype.libraryPackage = "";
|
|
59116
|
+
|
|
59117
|
+
/**
|
|
59118
|
+
* JavaSettings serviceClassNames.
|
|
59119
|
+
* @member {Object.<string,string>} serviceClassNames
|
|
59120
|
+
* @memberof google.api.JavaSettings
|
|
59121
|
+
* @instance
|
|
59122
|
+
*/
|
|
59123
|
+
JavaSettings.prototype.serviceClassNames = $util.emptyObject;
|
|
59124
|
+
|
|
59125
|
+
/**
|
|
59126
|
+
* JavaSettings common.
|
|
59127
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
59128
|
+
* @memberof google.api.JavaSettings
|
|
59129
|
+
* @instance
|
|
59130
|
+
*/
|
|
59131
|
+
JavaSettings.prototype.common = null;
|
|
59132
|
+
|
|
59133
|
+
/**
|
|
59134
|
+
* Creates a new JavaSettings instance using the specified properties.
|
|
59135
|
+
* @function create
|
|
59136
|
+
* @memberof google.api.JavaSettings
|
|
59137
|
+
* @static
|
|
59138
|
+
* @param {google.api.IJavaSettings=} [properties] Properties to set
|
|
59139
|
+
* @returns {google.api.JavaSettings} JavaSettings instance
|
|
59140
|
+
*/
|
|
59141
|
+
JavaSettings.create = function create(properties) {
|
|
59142
|
+
return new JavaSettings(properties);
|
|
59143
|
+
};
|
|
59144
|
+
|
|
59145
|
+
/**
|
|
59146
|
+
* Encodes the specified JavaSettings message. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
|
|
59147
|
+
* @function encode
|
|
59148
|
+
* @memberof google.api.JavaSettings
|
|
59149
|
+
* @static
|
|
59150
|
+
* @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
|
|
59151
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59152
|
+
* @returns {$protobuf.Writer} Writer
|
|
59153
|
+
*/
|
|
59154
|
+
JavaSettings.encode = function encode(message, writer) {
|
|
59155
|
+
if (!writer)
|
|
59156
|
+
writer = $Writer.create();
|
|
59157
|
+
if (message.libraryPackage != null && Object.hasOwnProperty.call(message, "libraryPackage"))
|
|
59158
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.libraryPackage);
|
|
59159
|
+
if (message.serviceClassNames != null && Object.hasOwnProperty.call(message, "serviceClassNames"))
|
|
59160
|
+
for (var keys = Object.keys(message.serviceClassNames), i = 0; i < keys.length; ++i)
|
|
59161
|
+
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();
|
|
59162
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
59163
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
59164
|
+
return writer;
|
|
59165
|
+
};
|
|
59166
|
+
|
|
59167
|
+
/**
|
|
59168
|
+
* Encodes the specified JavaSettings message, length delimited. Does not implicitly {@link google.api.JavaSettings.verify|verify} messages.
|
|
59169
|
+
* @function encodeDelimited
|
|
59170
|
+
* @memberof google.api.JavaSettings
|
|
59171
|
+
* @static
|
|
59172
|
+
* @param {google.api.IJavaSettings} message JavaSettings message or plain object to encode
|
|
59173
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59174
|
+
* @returns {$protobuf.Writer} Writer
|
|
59175
|
+
*/
|
|
59176
|
+
JavaSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59177
|
+
return this.encode(message, writer).ldelim();
|
|
59178
|
+
};
|
|
59179
|
+
|
|
59180
|
+
/**
|
|
59181
|
+
* Decodes a JavaSettings message from the specified reader or buffer.
|
|
59182
|
+
* @function decode
|
|
59183
|
+
* @memberof google.api.JavaSettings
|
|
59184
|
+
* @static
|
|
59185
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59186
|
+
* @param {number} [length] Message length if known beforehand
|
|
59187
|
+
* @returns {google.api.JavaSettings} JavaSettings
|
|
59188
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59189
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59190
|
+
*/
|
|
59191
|
+
JavaSettings.decode = function decode(reader, length) {
|
|
59192
|
+
if (!(reader instanceof $Reader))
|
|
59193
|
+
reader = $Reader.create(reader);
|
|
59194
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.JavaSettings(), key, value;
|
|
59195
|
+
while (reader.pos < end) {
|
|
59196
|
+
var tag = reader.uint32();
|
|
59197
|
+
switch (tag >>> 3) {
|
|
59198
|
+
case 1: {
|
|
59199
|
+
message.libraryPackage = reader.string();
|
|
59200
|
+
break;
|
|
59201
|
+
}
|
|
59202
|
+
case 2: {
|
|
59203
|
+
if (message.serviceClassNames === $util.emptyObject)
|
|
59204
|
+
message.serviceClassNames = {};
|
|
59205
|
+
var end2 = reader.uint32() + reader.pos;
|
|
59206
|
+
key = "";
|
|
59207
|
+
value = "";
|
|
59208
|
+
while (reader.pos < end2) {
|
|
59209
|
+
var tag2 = reader.uint32();
|
|
59210
|
+
switch (tag2 >>> 3) {
|
|
59211
|
+
case 1:
|
|
59212
|
+
key = reader.string();
|
|
59213
|
+
break;
|
|
59214
|
+
case 2:
|
|
59215
|
+
value = reader.string();
|
|
59216
|
+
break;
|
|
59217
|
+
default:
|
|
59218
|
+
reader.skipType(tag2 & 7);
|
|
59219
|
+
break;
|
|
59220
|
+
}
|
|
59221
|
+
}
|
|
59222
|
+
message.serviceClassNames[key] = value;
|
|
59223
|
+
break;
|
|
59224
|
+
}
|
|
59225
|
+
case 3: {
|
|
59226
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
59227
|
+
break;
|
|
59228
|
+
}
|
|
59229
|
+
default:
|
|
59230
|
+
reader.skipType(tag & 7);
|
|
59231
|
+
break;
|
|
59232
|
+
}
|
|
59233
|
+
}
|
|
59234
|
+
return message;
|
|
59235
|
+
};
|
|
59236
|
+
|
|
59237
|
+
/**
|
|
59238
|
+
* Decodes a JavaSettings message from the specified reader or buffer, length delimited.
|
|
59239
|
+
* @function decodeDelimited
|
|
59240
|
+
* @memberof google.api.JavaSettings
|
|
59241
|
+
* @static
|
|
59242
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59243
|
+
* @returns {google.api.JavaSettings} JavaSettings
|
|
59244
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59245
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59246
|
+
*/
|
|
59247
|
+
JavaSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
59248
|
+
if (!(reader instanceof $Reader))
|
|
59249
|
+
reader = new $Reader(reader);
|
|
59250
|
+
return this.decode(reader, reader.uint32());
|
|
59251
|
+
};
|
|
59252
|
+
|
|
59253
|
+
/**
|
|
59254
|
+
* Verifies a JavaSettings message.
|
|
59255
|
+
* @function verify
|
|
59256
|
+
* @memberof google.api.JavaSettings
|
|
59257
|
+
* @static
|
|
59258
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59259
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59260
|
+
*/
|
|
59261
|
+
JavaSettings.verify = function verify(message) {
|
|
59262
|
+
if (typeof message !== "object" || message === null)
|
|
59263
|
+
return "object expected";
|
|
59264
|
+
if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
|
|
59265
|
+
if (!$util.isString(message.libraryPackage))
|
|
59266
|
+
return "libraryPackage: string expected";
|
|
59267
|
+
if (message.serviceClassNames != null && message.hasOwnProperty("serviceClassNames")) {
|
|
59268
|
+
if (!$util.isObject(message.serviceClassNames))
|
|
59269
|
+
return "serviceClassNames: object expected";
|
|
59270
|
+
var key = Object.keys(message.serviceClassNames);
|
|
59271
|
+
for (var i = 0; i < key.length; ++i)
|
|
59272
|
+
if (!$util.isString(message.serviceClassNames[key[i]]))
|
|
59273
|
+
return "serviceClassNames: string{k:string} expected";
|
|
59274
|
+
}
|
|
59275
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
59276
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
59277
|
+
if (error)
|
|
59278
|
+
return "common." + error;
|
|
59279
|
+
}
|
|
59280
|
+
return null;
|
|
59281
|
+
};
|
|
59282
|
+
|
|
59283
|
+
/**
|
|
59284
|
+
* Creates a JavaSettings message from a plain object. Also converts values to their respective internal types.
|
|
59285
|
+
* @function fromObject
|
|
59286
|
+
* @memberof google.api.JavaSettings
|
|
59287
|
+
* @static
|
|
59288
|
+
* @param {Object.<string,*>} object Plain object
|
|
59289
|
+
* @returns {google.api.JavaSettings} JavaSettings
|
|
59290
|
+
*/
|
|
59291
|
+
JavaSettings.fromObject = function fromObject(object) {
|
|
59292
|
+
if (object instanceof $root.google.api.JavaSettings)
|
|
59293
|
+
return object;
|
|
59294
|
+
var message = new $root.google.api.JavaSettings();
|
|
59295
|
+
if (object.libraryPackage != null)
|
|
59296
|
+
message.libraryPackage = String(object.libraryPackage);
|
|
59297
|
+
if (object.serviceClassNames) {
|
|
59298
|
+
if (typeof object.serviceClassNames !== "object")
|
|
59299
|
+
throw TypeError(".google.api.JavaSettings.serviceClassNames: object expected");
|
|
59300
|
+
message.serviceClassNames = {};
|
|
59301
|
+
for (var keys = Object.keys(object.serviceClassNames), i = 0; i < keys.length; ++i)
|
|
59302
|
+
message.serviceClassNames[keys[i]] = String(object.serviceClassNames[keys[i]]);
|
|
59303
|
+
}
|
|
59304
|
+
if (object.common != null) {
|
|
59305
|
+
if (typeof object.common !== "object")
|
|
59306
|
+
throw TypeError(".google.api.JavaSettings.common: object expected");
|
|
59307
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
59308
|
+
}
|
|
59309
|
+
return message;
|
|
59310
|
+
};
|
|
59311
|
+
|
|
59312
|
+
/**
|
|
59313
|
+
* Creates a plain object from a JavaSettings message. Also converts values to other types if specified.
|
|
59314
|
+
* @function toObject
|
|
59315
|
+
* @memberof google.api.JavaSettings
|
|
59316
|
+
* @static
|
|
59317
|
+
* @param {google.api.JavaSettings} message JavaSettings
|
|
59318
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59319
|
+
* @returns {Object.<string,*>} Plain object
|
|
59320
|
+
*/
|
|
59321
|
+
JavaSettings.toObject = function toObject(message, options) {
|
|
59322
|
+
if (!options)
|
|
59323
|
+
options = {};
|
|
59324
|
+
var object = {};
|
|
59325
|
+
if (options.objects || options.defaults)
|
|
59326
|
+
object.serviceClassNames = {};
|
|
59327
|
+
if (options.defaults) {
|
|
59328
|
+
object.libraryPackage = "";
|
|
59329
|
+
object.common = null;
|
|
59330
|
+
}
|
|
59331
|
+
if (message.libraryPackage != null && message.hasOwnProperty("libraryPackage"))
|
|
59332
|
+
object.libraryPackage = message.libraryPackage;
|
|
59333
|
+
var keys2;
|
|
59334
|
+
if (message.serviceClassNames && (keys2 = Object.keys(message.serviceClassNames)).length) {
|
|
59335
|
+
object.serviceClassNames = {};
|
|
59336
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
59337
|
+
object.serviceClassNames[keys2[j]] = message.serviceClassNames[keys2[j]];
|
|
59338
|
+
}
|
|
59339
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
59340
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
59341
|
+
return object;
|
|
59342
|
+
};
|
|
59343
|
+
|
|
59344
|
+
/**
|
|
59345
|
+
* Converts this JavaSettings to JSON.
|
|
59346
|
+
* @function toJSON
|
|
59347
|
+
* @memberof google.api.JavaSettings
|
|
59348
|
+
* @instance
|
|
59349
|
+
* @returns {Object.<string,*>} JSON object
|
|
59350
|
+
*/
|
|
59351
|
+
JavaSettings.prototype.toJSON = function toJSON() {
|
|
59352
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59353
|
+
};
|
|
59354
|
+
|
|
59355
|
+
/**
|
|
59356
|
+
* Gets the default type url for JavaSettings
|
|
59357
|
+
* @function getTypeUrl
|
|
59358
|
+
* @memberof google.api.JavaSettings
|
|
59359
|
+
* @static
|
|
59360
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
59361
|
+
* @returns {string} The default type url
|
|
59362
|
+
*/
|
|
59363
|
+
JavaSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
59364
|
+
if (typeUrlPrefix === undefined) {
|
|
59365
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
59366
|
+
}
|
|
59367
|
+
return typeUrlPrefix + "/google.api.JavaSettings";
|
|
59368
|
+
};
|
|
59369
|
+
|
|
59370
|
+
return JavaSettings;
|
|
59371
|
+
})();
|
|
59372
|
+
|
|
59373
|
+
api.CppSettings = (function() {
|
|
59374
|
+
|
|
59375
|
+
/**
|
|
59376
|
+
* Properties of a CppSettings.
|
|
59377
|
+
* @memberof google.api
|
|
59378
|
+
* @interface ICppSettings
|
|
59379
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] CppSettings common
|
|
59380
|
+
*/
|
|
59381
|
+
|
|
59382
|
+
/**
|
|
59383
|
+
* Constructs a new CppSettings.
|
|
59384
|
+
* @memberof google.api
|
|
59385
|
+
* @classdesc Represents a CppSettings.
|
|
59386
|
+
* @implements ICppSettings
|
|
59387
|
+
* @constructor
|
|
59388
|
+
* @param {google.api.ICppSettings=} [properties] Properties to set
|
|
59389
|
+
*/
|
|
59390
|
+
function CppSettings(properties) {
|
|
59391
|
+
if (properties)
|
|
59392
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59393
|
+
if (properties[keys[i]] != null)
|
|
59394
|
+
this[keys[i]] = properties[keys[i]];
|
|
59395
|
+
}
|
|
59396
|
+
|
|
59397
|
+
/**
|
|
59398
|
+
* CppSettings common.
|
|
59399
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
59400
|
+
* @memberof google.api.CppSettings
|
|
59401
|
+
* @instance
|
|
59402
|
+
*/
|
|
59403
|
+
CppSettings.prototype.common = null;
|
|
59404
|
+
|
|
59405
|
+
/**
|
|
59406
|
+
* Creates a new CppSettings instance using the specified properties.
|
|
59407
|
+
* @function create
|
|
59408
|
+
* @memberof google.api.CppSettings
|
|
59409
|
+
* @static
|
|
59410
|
+
* @param {google.api.ICppSettings=} [properties] Properties to set
|
|
59411
|
+
* @returns {google.api.CppSettings} CppSettings instance
|
|
59412
|
+
*/
|
|
59413
|
+
CppSettings.create = function create(properties) {
|
|
59414
|
+
return new CppSettings(properties);
|
|
59415
|
+
};
|
|
59416
|
+
|
|
59417
|
+
/**
|
|
59418
|
+
* Encodes the specified CppSettings message. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
|
|
59419
|
+
* @function encode
|
|
59420
|
+
* @memberof google.api.CppSettings
|
|
59421
|
+
* @static
|
|
59422
|
+
* @param {google.api.ICppSettings} message CppSettings message or plain object to encode
|
|
59423
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59424
|
+
* @returns {$protobuf.Writer} Writer
|
|
59425
|
+
*/
|
|
59426
|
+
CppSettings.encode = function encode(message, writer) {
|
|
59427
|
+
if (!writer)
|
|
59428
|
+
writer = $Writer.create();
|
|
59429
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
59430
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59431
|
+
return writer;
|
|
59432
|
+
};
|
|
59433
|
+
|
|
59434
|
+
/**
|
|
59435
|
+
* Encodes the specified CppSettings message, length delimited. Does not implicitly {@link google.api.CppSettings.verify|verify} messages.
|
|
59436
|
+
* @function encodeDelimited
|
|
59437
|
+
* @memberof google.api.CppSettings
|
|
59438
|
+
* @static
|
|
59439
|
+
* @param {google.api.ICppSettings} message CppSettings message or plain object to encode
|
|
59440
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59441
|
+
* @returns {$protobuf.Writer} Writer
|
|
59442
|
+
*/
|
|
59443
|
+
CppSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59444
|
+
return this.encode(message, writer).ldelim();
|
|
59445
|
+
};
|
|
59446
|
+
|
|
59447
|
+
/**
|
|
59448
|
+
* Decodes a CppSettings message from the specified reader or buffer.
|
|
59449
|
+
* @function decode
|
|
59450
|
+
* @memberof google.api.CppSettings
|
|
59451
|
+
* @static
|
|
59452
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59453
|
+
* @param {number} [length] Message length if known beforehand
|
|
59454
|
+
* @returns {google.api.CppSettings} CppSettings
|
|
59455
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59456
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59457
|
+
*/
|
|
59458
|
+
CppSettings.decode = function decode(reader, length) {
|
|
59459
|
+
if (!(reader instanceof $Reader))
|
|
59460
|
+
reader = $Reader.create(reader);
|
|
59461
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.CppSettings();
|
|
59462
|
+
while (reader.pos < end) {
|
|
59463
|
+
var tag = reader.uint32();
|
|
59464
|
+
switch (tag >>> 3) {
|
|
59465
|
+
case 1: {
|
|
59466
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
59467
|
+
break;
|
|
59468
|
+
}
|
|
59469
|
+
default:
|
|
59470
|
+
reader.skipType(tag & 7);
|
|
59471
|
+
break;
|
|
59472
|
+
}
|
|
59473
|
+
}
|
|
59474
|
+
return message;
|
|
59475
|
+
};
|
|
59476
|
+
|
|
59477
|
+
/**
|
|
59478
|
+
* Decodes a CppSettings message from the specified reader or buffer, length delimited.
|
|
59479
|
+
* @function decodeDelimited
|
|
59480
|
+
* @memberof google.api.CppSettings
|
|
59481
|
+
* @static
|
|
59482
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59483
|
+
* @returns {google.api.CppSettings} CppSettings
|
|
59484
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59485
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59486
|
+
*/
|
|
59487
|
+
CppSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
59488
|
+
if (!(reader instanceof $Reader))
|
|
59489
|
+
reader = new $Reader(reader);
|
|
59490
|
+
return this.decode(reader, reader.uint32());
|
|
59491
|
+
};
|
|
59492
|
+
|
|
59493
|
+
/**
|
|
59494
|
+
* Verifies a CppSettings message.
|
|
59495
|
+
* @function verify
|
|
59496
|
+
* @memberof google.api.CppSettings
|
|
59497
|
+
* @static
|
|
59498
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59499
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59500
|
+
*/
|
|
59501
|
+
CppSettings.verify = function verify(message) {
|
|
59502
|
+
if (typeof message !== "object" || message === null)
|
|
59503
|
+
return "object expected";
|
|
59504
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
59505
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
59506
|
+
if (error)
|
|
59507
|
+
return "common." + error;
|
|
59508
|
+
}
|
|
59509
|
+
return null;
|
|
59510
|
+
};
|
|
59511
|
+
|
|
59512
|
+
/**
|
|
59513
|
+
* Creates a CppSettings message from a plain object. Also converts values to their respective internal types.
|
|
59514
|
+
* @function fromObject
|
|
59515
|
+
* @memberof google.api.CppSettings
|
|
59516
|
+
* @static
|
|
59517
|
+
* @param {Object.<string,*>} object Plain object
|
|
59518
|
+
* @returns {google.api.CppSettings} CppSettings
|
|
59519
|
+
*/
|
|
59520
|
+
CppSettings.fromObject = function fromObject(object) {
|
|
59521
|
+
if (object instanceof $root.google.api.CppSettings)
|
|
59522
|
+
return object;
|
|
59523
|
+
var message = new $root.google.api.CppSettings();
|
|
59524
|
+
if (object.common != null) {
|
|
59525
|
+
if (typeof object.common !== "object")
|
|
59526
|
+
throw TypeError(".google.api.CppSettings.common: object expected");
|
|
59527
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
59528
|
+
}
|
|
59529
|
+
return message;
|
|
59530
|
+
};
|
|
59531
|
+
|
|
59532
|
+
/**
|
|
59533
|
+
* Creates a plain object from a CppSettings message. Also converts values to other types if specified.
|
|
59534
|
+
* @function toObject
|
|
59535
|
+
* @memberof google.api.CppSettings
|
|
59536
|
+
* @static
|
|
59537
|
+
* @param {google.api.CppSettings} message CppSettings
|
|
59538
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59539
|
+
* @returns {Object.<string,*>} Plain object
|
|
59540
|
+
*/
|
|
59541
|
+
CppSettings.toObject = function toObject(message, options) {
|
|
59542
|
+
if (!options)
|
|
59543
|
+
options = {};
|
|
59544
|
+
var object = {};
|
|
59545
|
+
if (options.defaults)
|
|
59546
|
+
object.common = null;
|
|
59547
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
59548
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
59549
|
+
return object;
|
|
59550
|
+
};
|
|
59551
|
+
|
|
59552
|
+
/**
|
|
59553
|
+
* Converts this CppSettings to JSON.
|
|
59554
|
+
* @function toJSON
|
|
59555
|
+
* @memberof google.api.CppSettings
|
|
59556
|
+
* @instance
|
|
59557
|
+
* @returns {Object.<string,*>} JSON object
|
|
59558
|
+
*/
|
|
59559
|
+
CppSettings.prototype.toJSON = function toJSON() {
|
|
59560
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59561
|
+
};
|
|
59562
|
+
|
|
59563
|
+
/**
|
|
59564
|
+
* Gets the default type url for CppSettings
|
|
59565
|
+
* @function getTypeUrl
|
|
59566
|
+
* @memberof google.api.CppSettings
|
|
59567
|
+
* @static
|
|
59568
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
59569
|
+
* @returns {string} The default type url
|
|
59570
|
+
*/
|
|
59571
|
+
CppSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
59572
|
+
if (typeUrlPrefix === undefined) {
|
|
59573
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
59574
|
+
}
|
|
59575
|
+
return typeUrlPrefix + "/google.api.CppSettings";
|
|
59576
|
+
};
|
|
59577
|
+
|
|
59578
|
+
return CppSettings;
|
|
59579
|
+
})();
|
|
59580
|
+
|
|
59581
|
+
api.PhpSettings = (function() {
|
|
59582
|
+
|
|
59583
|
+
/**
|
|
59584
|
+
* Properties of a PhpSettings.
|
|
59585
|
+
* @memberof google.api
|
|
59586
|
+
* @interface IPhpSettings
|
|
59587
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] PhpSettings common
|
|
59588
|
+
*/
|
|
59589
|
+
|
|
59590
|
+
/**
|
|
59591
|
+
* Constructs a new PhpSettings.
|
|
59592
|
+
* @memberof google.api
|
|
59593
|
+
* @classdesc Represents a PhpSettings.
|
|
59594
|
+
* @implements IPhpSettings
|
|
59595
|
+
* @constructor
|
|
59596
|
+
* @param {google.api.IPhpSettings=} [properties] Properties to set
|
|
59597
|
+
*/
|
|
59598
|
+
function PhpSettings(properties) {
|
|
59599
|
+
if (properties)
|
|
59600
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59601
|
+
if (properties[keys[i]] != null)
|
|
59602
|
+
this[keys[i]] = properties[keys[i]];
|
|
59603
|
+
}
|
|
59604
|
+
|
|
59605
|
+
/**
|
|
59606
|
+
* PhpSettings common.
|
|
59607
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
59608
|
+
* @memberof google.api.PhpSettings
|
|
59609
|
+
* @instance
|
|
59610
|
+
*/
|
|
59611
|
+
PhpSettings.prototype.common = null;
|
|
59612
|
+
|
|
59613
|
+
/**
|
|
59614
|
+
* Creates a new PhpSettings instance using the specified properties.
|
|
59615
|
+
* @function create
|
|
59616
|
+
* @memberof google.api.PhpSettings
|
|
59617
|
+
* @static
|
|
59618
|
+
* @param {google.api.IPhpSettings=} [properties] Properties to set
|
|
59619
|
+
* @returns {google.api.PhpSettings} PhpSettings instance
|
|
59620
|
+
*/
|
|
59621
|
+
PhpSettings.create = function create(properties) {
|
|
59622
|
+
return new PhpSettings(properties);
|
|
59623
|
+
};
|
|
59624
|
+
|
|
59625
|
+
/**
|
|
59626
|
+
* Encodes the specified PhpSettings message. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
|
|
59627
|
+
* @function encode
|
|
59628
|
+
* @memberof google.api.PhpSettings
|
|
59629
|
+
* @static
|
|
59630
|
+
* @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
|
|
59631
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59632
|
+
* @returns {$protobuf.Writer} Writer
|
|
59633
|
+
*/
|
|
59634
|
+
PhpSettings.encode = function encode(message, writer) {
|
|
59635
|
+
if (!writer)
|
|
59636
|
+
writer = $Writer.create();
|
|
59637
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
59638
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59639
|
+
return writer;
|
|
59640
|
+
};
|
|
59641
|
+
|
|
59642
|
+
/**
|
|
59643
|
+
* Encodes the specified PhpSettings message, length delimited. Does not implicitly {@link google.api.PhpSettings.verify|verify} messages.
|
|
59644
|
+
* @function encodeDelimited
|
|
59645
|
+
* @memberof google.api.PhpSettings
|
|
59646
|
+
* @static
|
|
59647
|
+
* @param {google.api.IPhpSettings} message PhpSettings message or plain object to encode
|
|
59648
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59649
|
+
* @returns {$protobuf.Writer} Writer
|
|
59650
|
+
*/
|
|
59651
|
+
PhpSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59652
|
+
return this.encode(message, writer).ldelim();
|
|
59653
|
+
};
|
|
59654
|
+
|
|
59655
|
+
/**
|
|
59656
|
+
* Decodes a PhpSettings message from the specified reader or buffer.
|
|
59657
|
+
* @function decode
|
|
59658
|
+
* @memberof google.api.PhpSettings
|
|
59659
|
+
* @static
|
|
59660
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59661
|
+
* @param {number} [length] Message length if known beforehand
|
|
59662
|
+
* @returns {google.api.PhpSettings} PhpSettings
|
|
59663
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59664
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59665
|
+
*/
|
|
59666
|
+
PhpSettings.decode = function decode(reader, length) {
|
|
59667
|
+
if (!(reader instanceof $Reader))
|
|
59668
|
+
reader = $Reader.create(reader);
|
|
59669
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PhpSettings();
|
|
59670
|
+
while (reader.pos < end) {
|
|
59671
|
+
var tag = reader.uint32();
|
|
59672
|
+
switch (tag >>> 3) {
|
|
59673
|
+
case 1: {
|
|
59674
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
59675
|
+
break;
|
|
59676
|
+
}
|
|
59677
|
+
default:
|
|
59678
|
+
reader.skipType(tag & 7);
|
|
59679
|
+
break;
|
|
59680
|
+
}
|
|
59681
|
+
}
|
|
59682
|
+
return message;
|
|
59683
|
+
};
|
|
59684
|
+
|
|
59685
|
+
/**
|
|
59686
|
+
* Decodes a PhpSettings message from the specified reader or buffer, length delimited.
|
|
59687
|
+
* @function decodeDelimited
|
|
59688
|
+
* @memberof google.api.PhpSettings
|
|
59689
|
+
* @static
|
|
59690
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59691
|
+
* @returns {google.api.PhpSettings} PhpSettings
|
|
59692
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59693
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59694
|
+
*/
|
|
59695
|
+
PhpSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
59696
|
+
if (!(reader instanceof $Reader))
|
|
59697
|
+
reader = new $Reader(reader);
|
|
59698
|
+
return this.decode(reader, reader.uint32());
|
|
59699
|
+
};
|
|
59700
|
+
|
|
59701
|
+
/**
|
|
59702
|
+
* Verifies a PhpSettings message.
|
|
59703
|
+
* @function verify
|
|
59704
|
+
* @memberof google.api.PhpSettings
|
|
59705
|
+
* @static
|
|
59706
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59707
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59708
|
+
*/
|
|
59709
|
+
PhpSettings.verify = function verify(message) {
|
|
59710
|
+
if (typeof message !== "object" || message === null)
|
|
59711
|
+
return "object expected";
|
|
59712
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
59713
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
59714
|
+
if (error)
|
|
59715
|
+
return "common." + error;
|
|
59716
|
+
}
|
|
59717
|
+
return null;
|
|
59718
|
+
};
|
|
59719
|
+
|
|
59720
|
+
/**
|
|
59721
|
+
* Creates a PhpSettings message from a plain object. Also converts values to their respective internal types.
|
|
59722
|
+
* @function fromObject
|
|
59723
|
+
* @memberof google.api.PhpSettings
|
|
59724
|
+
* @static
|
|
59725
|
+
* @param {Object.<string,*>} object Plain object
|
|
59726
|
+
* @returns {google.api.PhpSettings} PhpSettings
|
|
59727
|
+
*/
|
|
59728
|
+
PhpSettings.fromObject = function fromObject(object) {
|
|
59729
|
+
if (object instanceof $root.google.api.PhpSettings)
|
|
59730
|
+
return object;
|
|
59731
|
+
var message = new $root.google.api.PhpSettings();
|
|
59732
|
+
if (object.common != null) {
|
|
59733
|
+
if (typeof object.common !== "object")
|
|
59734
|
+
throw TypeError(".google.api.PhpSettings.common: object expected");
|
|
59735
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
59736
|
+
}
|
|
59737
|
+
return message;
|
|
59738
|
+
};
|
|
59739
|
+
|
|
59740
|
+
/**
|
|
59741
|
+
* Creates a plain object from a PhpSettings message. Also converts values to other types if specified.
|
|
59742
|
+
* @function toObject
|
|
59743
|
+
* @memberof google.api.PhpSettings
|
|
59744
|
+
* @static
|
|
59745
|
+
* @param {google.api.PhpSettings} message PhpSettings
|
|
59746
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59747
|
+
* @returns {Object.<string,*>} Plain object
|
|
59748
|
+
*/
|
|
59749
|
+
PhpSettings.toObject = function toObject(message, options) {
|
|
59750
|
+
if (!options)
|
|
59751
|
+
options = {};
|
|
59752
|
+
var object = {};
|
|
59753
|
+
if (options.defaults)
|
|
59754
|
+
object.common = null;
|
|
59755
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
59756
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
59757
|
+
return object;
|
|
59758
|
+
};
|
|
59759
|
+
|
|
59760
|
+
/**
|
|
59761
|
+
* Converts this PhpSettings to JSON.
|
|
59762
|
+
* @function toJSON
|
|
59763
|
+
* @memberof google.api.PhpSettings
|
|
59764
|
+
* @instance
|
|
59765
|
+
* @returns {Object.<string,*>} JSON object
|
|
59766
|
+
*/
|
|
59767
|
+
PhpSettings.prototype.toJSON = function toJSON() {
|
|
59768
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59769
|
+
};
|
|
59770
|
+
|
|
59771
|
+
/**
|
|
59772
|
+
* Gets the default type url for PhpSettings
|
|
59773
|
+
* @function getTypeUrl
|
|
59774
|
+
* @memberof google.api.PhpSettings
|
|
59775
|
+
* @static
|
|
59776
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
59777
|
+
* @returns {string} The default type url
|
|
59778
|
+
*/
|
|
59779
|
+
PhpSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
59780
|
+
if (typeUrlPrefix === undefined) {
|
|
59781
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
59782
|
+
}
|
|
59783
|
+
return typeUrlPrefix + "/google.api.PhpSettings";
|
|
59784
|
+
};
|
|
59785
|
+
|
|
59786
|
+
return PhpSettings;
|
|
59787
|
+
})();
|
|
59788
|
+
|
|
59789
|
+
api.PythonSettings = (function() {
|
|
59790
|
+
|
|
59791
|
+
/**
|
|
59792
|
+
* Properties of a PythonSettings.
|
|
59793
|
+
* @memberof google.api
|
|
59794
|
+
* @interface IPythonSettings
|
|
59795
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] PythonSettings common
|
|
59796
|
+
*/
|
|
59797
|
+
|
|
59798
|
+
/**
|
|
59799
|
+
* Constructs a new PythonSettings.
|
|
59800
|
+
* @memberof google.api
|
|
59801
|
+
* @classdesc Represents a PythonSettings.
|
|
59802
|
+
* @implements IPythonSettings
|
|
59803
|
+
* @constructor
|
|
59804
|
+
* @param {google.api.IPythonSettings=} [properties] Properties to set
|
|
59805
|
+
*/
|
|
59806
|
+
function PythonSettings(properties) {
|
|
59807
|
+
if (properties)
|
|
59808
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59809
|
+
if (properties[keys[i]] != null)
|
|
59810
|
+
this[keys[i]] = properties[keys[i]];
|
|
59811
|
+
}
|
|
59812
|
+
|
|
59813
|
+
/**
|
|
59814
|
+
* PythonSettings common.
|
|
59815
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
59816
|
+
* @memberof google.api.PythonSettings
|
|
59817
|
+
* @instance
|
|
59818
|
+
*/
|
|
59819
|
+
PythonSettings.prototype.common = null;
|
|
59820
|
+
|
|
59821
|
+
/**
|
|
59822
|
+
* Creates a new PythonSettings instance using the specified properties.
|
|
59823
|
+
* @function create
|
|
59824
|
+
* @memberof google.api.PythonSettings
|
|
59825
|
+
* @static
|
|
59826
|
+
* @param {google.api.IPythonSettings=} [properties] Properties to set
|
|
59827
|
+
* @returns {google.api.PythonSettings} PythonSettings instance
|
|
59828
|
+
*/
|
|
59829
|
+
PythonSettings.create = function create(properties) {
|
|
59830
|
+
return new PythonSettings(properties);
|
|
59831
|
+
};
|
|
59832
|
+
|
|
59833
|
+
/**
|
|
59834
|
+
* Encodes the specified PythonSettings message. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
|
|
59835
|
+
* @function encode
|
|
59836
|
+
* @memberof google.api.PythonSettings
|
|
59837
|
+
* @static
|
|
59838
|
+
* @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
|
|
59839
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59840
|
+
* @returns {$protobuf.Writer} Writer
|
|
59841
|
+
*/
|
|
59842
|
+
PythonSettings.encode = function encode(message, writer) {
|
|
59843
|
+
if (!writer)
|
|
59844
|
+
writer = $Writer.create();
|
|
59845
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
59846
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
59847
|
+
return writer;
|
|
59848
|
+
};
|
|
59849
|
+
|
|
59850
|
+
/**
|
|
59851
|
+
* Encodes the specified PythonSettings message, length delimited. Does not implicitly {@link google.api.PythonSettings.verify|verify} messages.
|
|
59852
|
+
* @function encodeDelimited
|
|
59853
|
+
* @memberof google.api.PythonSettings
|
|
59854
|
+
* @static
|
|
59855
|
+
* @param {google.api.IPythonSettings} message PythonSettings message or plain object to encode
|
|
59856
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59857
|
+
* @returns {$protobuf.Writer} Writer
|
|
59858
|
+
*/
|
|
59859
|
+
PythonSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59860
|
+
return this.encode(message, writer).ldelim();
|
|
59861
|
+
};
|
|
59862
|
+
|
|
59863
|
+
/**
|
|
59864
|
+
* Decodes a PythonSettings message from the specified reader or buffer.
|
|
59865
|
+
* @function decode
|
|
59866
|
+
* @memberof google.api.PythonSettings
|
|
59867
|
+
* @static
|
|
59868
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59869
|
+
* @param {number} [length] Message length if known beforehand
|
|
59870
|
+
* @returns {google.api.PythonSettings} PythonSettings
|
|
59871
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59872
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59873
|
+
*/
|
|
59874
|
+
PythonSettings.decode = function decode(reader, length) {
|
|
59875
|
+
if (!(reader instanceof $Reader))
|
|
59876
|
+
reader = $Reader.create(reader);
|
|
59877
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.PythonSettings();
|
|
59878
|
+
while (reader.pos < end) {
|
|
59879
|
+
var tag = reader.uint32();
|
|
59880
|
+
switch (tag >>> 3) {
|
|
59881
|
+
case 1: {
|
|
59882
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
59883
|
+
break;
|
|
59884
|
+
}
|
|
59885
|
+
default:
|
|
59886
|
+
reader.skipType(tag & 7);
|
|
59887
|
+
break;
|
|
59888
|
+
}
|
|
59889
|
+
}
|
|
59890
|
+
return message;
|
|
59891
|
+
};
|
|
59892
|
+
|
|
59893
|
+
/**
|
|
59894
|
+
* Decodes a PythonSettings message from the specified reader or buffer, length delimited.
|
|
59895
|
+
* @function decodeDelimited
|
|
59896
|
+
* @memberof google.api.PythonSettings
|
|
59897
|
+
* @static
|
|
59898
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59899
|
+
* @returns {google.api.PythonSettings} PythonSettings
|
|
59900
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59901
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59902
|
+
*/
|
|
59903
|
+
PythonSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
59904
|
+
if (!(reader instanceof $Reader))
|
|
59905
|
+
reader = new $Reader(reader);
|
|
59906
|
+
return this.decode(reader, reader.uint32());
|
|
59907
|
+
};
|
|
59908
|
+
|
|
59909
|
+
/**
|
|
59910
|
+
* Verifies a PythonSettings message.
|
|
59911
|
+
* @function verify
|
|
59912
|
+
* @memberof google.api.PythonSettings
|
|
59913
|
+
* @static
|
|
59914
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59915
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59916
|
+
*/
|
|
59917
|
+
PythonSettings.verify = function verify(message) {
|
|
59918
|
+
if (typeof message !== "object" || message === null)
|
|
59919
|
+
return "object expected";
|
|
59920
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
59921
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
59922
|
+
if (error)
|
|
59923
|
+
return "common." + error;
|
|
59924
|
+
}
|
|
59925
|
+
return null;
|
|
59926
|
+
};
|
|
59927
|
+
|
|
59928
|
+
/**
|
|
59929
|
+
* Creates a PythonSettings message from a plain object. Also converts values to their respective internal types.
|
|
59930
|
+
* @function fromObject
|
|
59931
|
+
* @memberof google.api.PythonSettings
|
|
59932
|
+
* @static
|
|
59933
|
+
* @param {Object.<string,*>} object Plain object
|
|
59934
|
+
* @returns {google.api.PythonSettings} PythonSettings
|
|
59935
|
+
*/
|
|
59936
|
+
PythonSettings.fromObject = function fromObject(object) {
|
|
59937
|
+
if (object instanceof $root.google.api.PythonSettings)
|
|
59938
|
+
return object;
|
|
59939
|
+
var message = new $root.google.api.PythonSettings();
|
|
59940
|
+
if (object.common != null) {
|
|
59941
|
+
if (typeof object.common !== "object")
|
|
59942
|
+
throw TypeError(".google.api.PythonSettings.common: object expected");
|
|
59943
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
59944
|
+
}
|
|
59945
|
+
return message;
|
|
59946
|
+
};
|
|
59947
|
+
|
|
59948
|
+
/**
|
|
59949
|
+
* Creates a plain object from a PythonSettings message. Also converts values to other types if specified.
|
|
59950
|
+
* @function toObject
|
|
59951
|
+
* @memberof google.api.PythonSettings
|
|
59952
|
+
* @static
|
|
59953
|
+
* @param {google.api.PythonSettings} message PythonSettings
|
|
59954
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59955
|
+
* @returns {Object.<string,*>} Plain object
|
|
59956
|
+
*/
|
|
59957
|
+
PythonSettings.toObject = function toObject(message, options) {
|
|
59958
|
+
if (!options)
|
|
59959
|
+
options = {};
|
|
59960
|
+
var object = {};
|
|
59961
|
+
if (options.defaults)
|
|
59962
|
+
object.common = null;
|
|
59963
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
59964
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
59965
|
+
return object;
|
|
59966
|
+
};
|
|
59967
|
+
|
|
59968
|
+
/**
|
|
59969
|
+
* Converts this PythonSettings to JSON.
|
|
59970
|
+
* @function toJSON
|
|
59971
|
+
* @memberof google.api.PythonSettings
|
|
59972
|
+
* @instance
|
|
59973
|
+
* @returns {Object.<string,*>} JSON object
|
|
59974
|
+
*/
|
|
59975
|
+
PythonSettings.prototype.toJSON = function toJSON() {
|
|
59976
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59977
|
+
};
|
|
59978
|
+
|
|
59979
|
+
/**
|
|
59980
|
+
* Gets the default type url for PythonSettings
|
|
59981
|
+
* @function getTypeUrl
|
|
59982
|
+
* @memberof google.api.PythonSettings
|
|
59983
|
+
* @static
|
|
59984
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
59985
|
+
* @returns {string} The default type url
|
|
59986
|
+
*/
|
|
59987
|
+
PythonSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
59988
|
+
if (typeUrlPrefix === undefined) {
|
|
59989
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
59990
|
+
}
|
|
59991
|
+
return typeUrlPrefix + "/google.api.PythonSettings";
|
|
59992
|
+
};
|
|
59993
|
+
|
|
59994
|
+
return PythonSettings;
|
|
59995
|
+
})();
|
|
59996
|
+
|
|
59997
|
+
api.NodeSettings = (function() {
|
|
59998
|
+
|
|
59999
|
+
/**
|
|
60000
|
+
* Properties of a NodeSettings.
|
|
60001
|
+
* @memberof google.api
|
|
60002
|
+
* @interface INodeSettings
|
|
60003
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] NodeSettings common
|
|
60004
|
+
*/
|
|
60005
|
+
|
|
60006
|
+
/**
|
|
60007
|
+
* Constructs a new NodeSettings.
|
|
60008
|
+
* @memberof google.api
|
|
60009
|
+
* @classdesc Represents a NodeSettings.
|
|
60010
|
+
* @implements INodeSettings
|
|
60011
|
+
* @constructor
|
|
60012
|
+
* @param {google.api.INodeSettings=} [properties] Properties to set
|
|
60013
|
+
*/
|
|
60014
|
+
function NodeSettings(properties) {
|
|
60015
|
+
if (properties)
|
|
60016
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60017
|
+
if (properties[keys[i]] != null)
|
|
60018
|
+
this[keys[i]] = properties[keys[i]];
|
|
60019
|
+
}
|
|
60020
|
+
|
|
60021
|
+
/**
|
|
60022
|
+
* NodeSettings common.
|
|
60023
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
60024
|
+
* @memberof google.api.NodeSettings
|
|
60025
|
+
* @instance
|
|
60026
|
+
*/
|
|
60027
|
+
NodeSettings.prototype.common = null;
|
|
60028
|
+
|
|
60029
|
+
/**
|
|
60030
|
+
* Creates a new NodeSettings instance using the specified properties.
|
|
60031
|
+
* @function create
|
|
60032
|
+
* @memberof google.api.NodeSettings
|
|
60033
|
+
* @static
|
|
60034
|
+
* @param {google.api.INodeSettings=} [properties] Properties to set
|
|
60035
|
+
* @returns {google.api.NodeSettings} NodeSettings instance
|
|
60036
|
+
*/
|
|
60037
|
+
NodeSettings.create = function create(properties) {
|
|
60038
|
+
return new NodeSettings(properties);
|
|
60039
|
+
};
|
|
60040
|
+
|
|
60041
|
+
/**
|
|
60042
|
+
* Encodes the specified NodeSettings message. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
|
|
60043
|
+
* @function encode
|
|
60044
|
+
* @memberof google.api.NodeSettings
|
|
60045
|
+
* @static
|
|
60046
|
+
* @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
|
|
60047
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60048
|
+
* @returns {$protobuf.Writer} Writer
|
|
60049
|
+
*/
|
|
60050
|
+
NodeSettings.encode = function encode(message, writer) {
|
|
60051
|
+
if (!writer)
|
|
60052
|
+
writer = $Writer.create();
|
|
60053
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
60054
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
60055
|
+
return writer;
|
|
60056
|
+
};
|
|
60057
|
+
|
|
60058
|
+
/**
|
|
60059
|
+
* Encodes the specified NodeSettings message, length delimited. Does not implicitly {@link google.api.NodeSettings.verify|verify} messages.
|
|
60060
|
+
* @function encodeDelimited
|
|
60061
|
+
* @memberof google.api.NodeSettings
|
|
60062
|
+
* @static
|
|
60063
|
+
* @param {google.api.INodeSettings} message NodeSettings message or plain object to encode
|
|
60064
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60065
|
+
* @returns {$protobuf.Writer} Writer
|
|
60066
|
+
*/
|
|
60067
|
+
NodeSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60068
|
+
return this.encode(message, writer).ldelim();
|
|
60069
|
+
};
|
|
60070
|
+
|
|
60071
|
+
/**
|
|
60072
|
+
* Decodes a NodeSettings message from the specified reader or buffer.
|
|
60073
|
+
* @function decode
|
|
60074
|
+
* @memberof google.api.NodeSettings
|
|
60075
|
+
* @static
|
|
60076
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60077
|
+
* @param {number} [length] Message length if known beforehand
|
|
60078
|
+
* @returns {google.api.NodeSettings} NodeSettings
|
|
60079
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60080
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60081
|
+
*/
|
|
60082
|
+
NodeSettings.decode = function decode(reader, length) {
|
|
60083
|
+
if (!(reader instanceof $Reader))
|
|
60084
|
+
reader = $Reader.create(reader);
|
|
60085
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.NodeSettings();
|
|
60086
|
+
while (reader.pos < end) {
|
|
60087
|
+
var tag = reader.uint32();
|
|
60088
|
+
switch (tag >>> 3) {
|
|
60089
|
+
case 1: {
|
|
60090
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
60091
|
+
break;
|
|
60092
|
+
}
|
|
60093
|
+
default:
|
|
60094
|
+
reader.skipType(tag & 7);
|
|
60095
|
+
break;
|
|
60096
|
+
}
|
|
60097
|
+
}
|
|
60098
|
+
return message;
|
|
60099
|
+
};
|
|
60100
|
+
|
|
60101
|
+
/**
|
|
60102
|
+
* Decodes a NodeSettings message from the specified reader or buffer, length delimited.
|
|
60103
|
+
* @function decodeDelimited
|
|
60104
|
+
* @memberof google.api.NodeSettings
|
|
60105
|
+
* @static
|
|
60106
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60107
|
+
* @returns {google.api.NodeSettings} NodeSettings
|
|
60108
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60109
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60110
|
+
*/
|
|
60111
|
+
NodeSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
60112
|
+
if (!(reader instanceof $Reader))
|
|
60113
|
+
reader = new $Reader(reader);
|
|
60114
|
+
return this.decode(reader, reader.uint32());
|
|
60115
|
+
};
|
|
60116
|
+
|
|
60117
|
+
/**
|
|
60118
|
+
* Verifies a NodeSettings message.
|
|
60119
|
+
* @function verify
|
|
60120
|
+
* @memberof google.api.NodeSettings
|
|
60121
|
+
* @static
|
|
60122
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60123
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60124
|
+
*/
|
|
60125
|
+
NodeSettings.verify = function verify(message) {
|
|
60126
|
+
if (typeof message !== "object" || message === null)
|
|
60127
|
+
return "object expected";
|
|
60128
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
60129
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
60130
|
+
if (error)
|
|
60131
|
+
return "common." + error;
|
|
60132
|
+
}
|
|
60133
|
+
return null;
|
|
60134
|
+
};
|
|
60135
|
+
|
|
60136
|
+
/**
|
|
60137
|
+
* Creates a NodeSettings message from a plain object. Also converts values to their respective internal types.
|
|
60138
|
+
* @function fromObject
|
|
60139
|
+
* @memberof google.api.NodeSettings
|
|
60140
|
+
* @static
|
|
60141
|
+
* @param {Object.<string,*>} object Plain object
|
|
60142
|
+
* @returns {google.api.NodeSettings} NodeSettings
|
|
60143
|
+
*/
|
|
60144
|
+
NodeSettings.fromObject = function fromObject(object) {
|
|
60145
|
+
if (object instanceof $root.google.api.NodeSettings)
|
|
60146
|
+
return object;
|
|
60147
|
+
var message = new $root.google.api.NodeSettings();
|
|
60148
|
+
if (object.common != null) {
|
|
60149
|
+
if (typeof object.common !== "object")
|
|
60150
|
+
throw TypeError(".google.api.NodeSettings.common: object expected");
|
|
60151
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
60152
|
+
}
|
|
60153
|
+
return message;
|
|
60154
|
+
};
|
|
60155
|
+
|
|
60156
|
+
/**
|
|
60157
|
+
* Creates a plain object from a NodeSettings message. Also converts values to other types if specified.
|
|
60158
|
+
* @function toObject
|
|
60159
|
+
* @memberof google.api.NodeSettings
|
|
60160
|
+
* @static
|
|
60161
|
+
* @param {google.api.NodeSettings} message NodeSettings
|
|
60162
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60163
|
+
* @returns {Object.<string,*>} Plain object
|
|
60164
|
+
*/
|
|
60165
|
+
NodeSettings.toObject = function toObject(message, options) {
|
|
60166
|
+
if (!options)
|
|
60167
|
+
options = {};
|
|
60168
|
+
var object = {};
|
|
60169
|
+
if (options.defaults)
|
|
60170
|
+
object.common = null;
|
|
60171
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
60172
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
60173
|
+
return object;
|
|
60174
|
+
};
|
|
60175
|
+
|
|
60176
|
+
/**
|
|
60177
|
+
* Converts this NodeSettings to JSON.
|
|
60178
|
+
* @function toJSON
|
|
60179
|
+
* @memberof google.api.NodeSettings
|
|
60180
|
+
* @instance
|
|
60181
|
+
* @returns {Object.<string,*>} JSON object
|
|
60182
|
+
*/
|
|
60183
|
+
NodeSettings.prototype.toJSON = function toJSON() {
|
|
60184
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60185
|
+
};
|
|
60186
|
+
|
|
60187
|
+
/**
|
|
60188
|
+
* Gets the default type url for NodeSettings
|
|
60189
|
+
* @function getTypeUrl
|
|
60190
|
+
* @memberof google.api.NodeSettings
|
|
60191
|
+
* @static
|
|
60192
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
60193
|
+
* @returns {string} The default type url
|
|
60194
|
+
*/
|
|
60195
|
+
NodeSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
60196
|
+
if (typeUrlPrefix === undefined) {
|
|
60197
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
60198
|
+
}
|
|
60199
|
+
return typeUrlPrefix + "/google.api.NodeSettings";
|
|
60200
|
+
};
|
|
60201
|
+
|
|
60202
|
+
return NodeSettings;
|
|
60203
|
+
})();
|
|
60204
|
+
|
|
60205
|
+
api.DotnetSettings = (function() {
|
|
60206
|
+
|
|
60207
|
+
/**
|
|
60208
|
+
* Properties of a DotnetSettings.
|
|
60209
|
+
* @memberof google.api
|
|
60210
|
+
* @interface IDotnetSettings
|
|
60211
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] DotnetSettings common
|
|
60212
|
+
*/
|
|
60213
|
+
|
|
60214
|
+
/**
|
|
60215
|
+
* Constructs a new DotnetSettings.
|
|
60216
|
+
* @memberof google.api
|
|
60217
|
+
* @classdesc Represents a DotnetSettings.
|
|
60218
|
+
* @implements IDotnetSettings
|
|
60219
|
+
* @constructor
|
|
60220
|
+
* @param {google.api.IDotnetSettings=} [properties] Properties to set
|
|
60221
|
+
*/
|
|
60222
|
+
function DotnetSettings(properties) {
|
|
60223
|
+
if (properties)
|
|
60224
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60225
|
+
if (properties[keys[i]] != null)
|
|
60226
|
+
this[keys[i]] = properties[keys[i]];
|
|
60227
|
+
}
|
|
60228
|
+
|
|
60229
|
+
/**
|
|
60230
|
+
* DotnetSettings common.
|
|
60231
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
60232
|
+
* @memberof google.api.DotnetSettings
|
|
60233
|
+
* @instance
|
|
60234
|
+
*/
|
|
60235
|
+
DotnetSettings.prototype.common = null;
|
|
60236
|
+
|
|
60237
|
+
/**
|
|
60238
|
+
* Creates a new DotnetSettings instance using the specified properties.
|
|
60239
|
+
* @function create
|
|
60240
|
+
* @memberof google.api.DotnetSettings
|
|
60241
|
+
* @static
|
|
60242
|
+
* @param {google.api.IDotnetSettings=} [properties] Properties to set
|
|
60243
|
+
* @returns {google.api.DotnetSettings} DotnetSettings instance
|
|
60244
|
+
*/
|
|
60245
|
+
DotnetSettings.create = function create(properties) {
|
|
60246
|
+
return new DotnetSettings(properties);
|
|
60247
|
+
};
|
|
60248
|
+
|
|
60249
|
+
/**
|
|
60250
|
+
* Encodes the specified DotnetSettings message. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
|
|
60251
|
+
* @function encode
|
|
60252
|
+
* @memberof google.api.DotnetSettings
|
|
60253
|
+
* @static
|
|
60254
|
+
* @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
|
|
60255
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60256
|
+
* @returns {$protobuf.Writer} Writer
|
|
60257
|
+
*/
|
|
60258
|
+
DotnetSettings.encode = function encode(message, writer) {
|
|
60259
|
+
if (!writer)
|
|
60260
|
+
writer = $Writer.create();
|
|
60261
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
60262
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
60263
|
+
return writer;
|
|
60264
|
+
};
|
|
60265
|
+
|
|
60266
|
+
/**
|
|
60267
|
+
* Encodes the specified DotnetSettings message, length delimited. Does not implicitly {@link google.api.DotnetSettings.verify|verify} messages.
|
|
60268
|
+
* @function encodeDelimited
|
|
60269
|
+
* @memberof google.api.DotnetSettings
|
|
60270
|
+
* @static
|
|
60271
|
+
* @param {google.api.IDotnetSettings} message DotnetSettings message or plain object to encode
|
|
60272
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60273
|
+
* @returns {$protobuf.Writer} Writer
|
|
60274
|
+
*/
|
|
60275
|
+
DotnetSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60276
|
+
return this.encode(message, writer).ldelim();
|
|
60277
|
+
};
|
|
60278
|
+
|
|
60279
|
+
/**
|
|
60280
|
+
* Decodes a DotnetSettings message from the specified reader or buffer.
|
|
60281
|
+
* @function decode
|
|
60282
|
+
* @memberof google.api.DotnetSettings
|
|
60283
|
+
* @static
|
|
60284
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60285
|
+
* @param {number} [length] Message length if known beforehand
|
|
60286
|
+
* @returns {google.api.DotnetSettings} DotnetSettings
|
|
60287
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60288
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60289
|
+
*/
|
|
60290
|
+
DotnetSettings.decode = function decode(reader, length) {
|
|
60291
|
+
if (!(reader instanceof $Reader))
|
|
60292
|
+
reader = $Reader.create(reader);
|
|
60293
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.DotnetSettings();
|
|
60294
|
+
while (reader.pos < end) {
|
|
60295
|
+
var tag = reader.uint32();
|
|
60296
|
+
switch (tag >>> 3) {
|
|
60297
|
+
case 1: {
|
|
60298
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
60299
|
+
break;
|
|
60300
|
+
}
|
|
60301
|
+
default:
|
|
60302
|
+
reader.skipType(tag & 7);
|
|
60303
|
+
break;
|
|
60304
|
+
}
|
|
60305
|
+
}
|
|
60306
|
+
return message;
|
|
60307
|
+
};
|
|
60308
|
+
|
|
60309
|
+
/**
|
|
60310
|
+
* Decodes a DotnetSettings message from the specified reader or buffer, length delimited.
|
|
60311
|
+
* @function decodeDelimited
|
|
60312
|
+
* @memberof google.api.DotnetSettings
|
|
60313
|
+
* @static
|
|
60314
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60315
|
+
* @returns {google.api.DotnetSettings} DotnetSettings
|
|
60316
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60317
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60318
|
+
*/
|
|
60319
|
+
DotnetSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
60320
|
+
if (!(reader instanceof $Reader))
|
|
60321
|
+
reader = new $Reader(reader);
|
|
60322
|
+
return this.decode(reader, reader.uint32());
|
|
60323
|
+
};
|
|
60324
|
+
|
|
60325
|
+
/**
|
|
60326
|
+
* Verifies a DotnetSettings message.
|
|
60327
|
+
* @function verify
|
|
60328
|
+
* @memberof google.api.DotnetSettings
|
|
60329
|
+
* @static
|
|
60330
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60331
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60332
|
+
*/
|
|
60333
|
+
DotnetSettings.verify = function verify(message) {
|
|
60334
|
+
if (typeof message !== "object" || message === null)
|
|
60335
|
+
return "object expected";
|
|
60336
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
60337
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
60338
|
+
if (error)
|
|
60339
|
+
return "common." + error;
|
|
60340
|
+
}
|
|
60341
|
+
return null;
|
|
60342
|
+
};
|
|
60343
|
+
|
|
60344
|
+
/**
|
|
60345
|
+
* Creates a DotnetSettings message from a plain object. Also converts values to their respective internal types.
|
|
60346
|
+
* @function fromObject
|
|
60347
|
+
* @memberof google.api.DotnetSettings
|
|
60348
|
+
* @static
|
|
60349
|
+
* @param {Object.<string,*>} object Plain object
|
|
60350
|
+
* @returns {google.api.DotnetSettings} DotnetSettings
|
|
60351
|
+
*/
|
|
60352
|
+
DotnetSettings.fromObject = function fromObject(object) {
|
|
60353
|
+
if (object instanceof $root.google.api.DotnetSettings)
|
|
60354
|
+
return object;
|
|
60355
|
+
var message = new $root.google.api.DotnetSettings();
|
|
60356
|
+
if (object.common != null) {
|
|
60357
|
+
if (typeof object.common !== "object")
|
|
60358
|
+
throw TypeError(".google.api.DotnetSettings.common: object expected");
|
|
60359
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
60360
|
+
}
|
|
60361
|
+
return message;
|
|
60362
|
+
};
|
|
60363
|
+
|
|
60364
|
+
/**
|
|
60365
|
+
* Creates a plain object from a DotnetSettings message. Also converts values to other types if specified.
|
|
60366
|
+
* @function toObject
|
|
60367
|
+
* @memberof google.api.DotnetSettings
|
|
60368
|
+
* @static
|
|
60369
|
+
* @param {google.api.DotnetSettings} message DotnetSettings
|
|
60370
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60371
|
+
* @returns {Object.<string,*>} Plain object
|
|
60372
|
+
*/
|
|
60373
|
+
DotnetSettings.toObject = function toObject(message, options) {
|
|
60374
|
+
if (!options)
|
|
60375
|
+
options = {};
|
|
60376
|
+
var object = {};
|
|
60377
|
+
if (options.defaults)
|
|
60378
|
+
object.common = null;
|
|
60379
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
60380
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
60381
|
+
return object;
|
|
60382
|
+
};
|
|
60383
|
+
|
|
60384
|
+
/**
|
|
60385
|
+
* Converts this DotnetSettings to JSON.
|
|
60386
|
+
* @function toJSON
|
|
60387
|
+
* @memberof google.api.DotnetSettings
|
|
60388
|
+
* @instance
|
|
60389
|
+
* @returns {Object.<string,*>} JSON object
|
|
60390
|
+
*/
|
|
60391
|
+
DotnetSettings.prototype.toJSON = function toJSON() {
|
|
60392
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60393
|
+
};
|
|
60394
|
+
|
|
60395
|
+
/**
|
|
60396
|
+
* Gets the default type url for DotnetSettings
|
|
60397
|
+
* @function getTypeUrl
|
|
60398
|
+
* @memberof google.api.DotnetSettings
|
|
60399
|
+
* @static
|
|
60400
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
60401
|
+
* @returns {string} The default type url
|
|
60402
|
+
*/
|
|
60403
|
+
DotnetSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
60404
|
+
if (typeUrlPrefix === undefined) {
|
|
60405
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
60406
|
+
}
|
|
60407
|
+
return typeUrlPrefix + "/google.api.DotnetSettings";
|
|
60408
|
+
};
|
|
60409
|
+
|
|
60410
|
+
return DotnetSettings;
|
|
60411
|
+
})();
|
|
60412
|
+
|
|
60413
|
+
api.RubySettings = (function() {
|
|
60414
|
+
|
|
60415
|
+
/**
|
|
60416
|
+
* Properties of a RubySettings.
|
|
60417
|
+
* @memberof google.api
|
|
60418
|
+
* @interface IRubySettings
|
|
60419
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] RubySettings common
|
|
60420
|
+
*/
|
|
60421
|
+
|
|
60422
|
+
/**
|
|
60423
|
+
* Constructs a new RubySettings.
|
|
60424
|
+
* @memberof google.api
|
|
60425
|
+
* @classdesc Represents a RubySettings.
|
|
60426
|
+
* @implements IRubySettings
|
|
60427
|
+
* @constructor
|
|
60428
|
+
* @param {google.api.IRubySettings=} [properties] Properties to set
|
|
60429
|
+
*/
|
|
60430
|
+
function RubySettings(properties) {
|
|
60431
|
+
if (properties)
|
|
60432
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60433
|
+
if (properties[keys[i]] != null)
|
|
60434
|
+
this[keys[i]] = properties[keys[i]];
|
|
60435
|
+
}
|
|
60436
|
+
|
|
60437
|
+
/**
|
|
60438
|
+
* RubySettings common.
|
|
60439
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
60440
|
+
* @memberof google.api.RubySettings
|
|
60441
|
+
* @instance
|
|
60442
|
+
*/
|
|
60443
|
+
RubySettings.prototype.common = null;
|
|
60444
|
+
|
|
60445
|
+
/**
|
|
60446
|
+
* Creates a new RubySettings instance using the specified properties.
|
|
60447
|
+
* @function create
|
|
60448
|
+
* @memberof google.api.RubySettings
|
|
60449
|
+
* @static
|
|
60450
|
+
* @param {google.api.IRubySettings=} [properties] Properties to set
|
|
60451
|
+
* @returns {google.api.RubySettings} RubySettings instance
|
|
60452
|
+
*/
|
|
60453
|
+
RubySettings.create = function create(properties) {
|
|
60454
|
+
return new RubySettings(properties);
|
|
60455
|
+
};
|
|
60456
|
+
|
|
60457
|
+
/**
|
|
60458
|
+
* Encodes the specified RubySettings message. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
|
|
60459
|
+
* @function encode
|
|
60460
|
+
* @memberof google.api.RubySettings
|
|
60461
|
+
* @static
|
|
60462
|
+
* @param {google.api.IRubySettings} message RubySettings message or plain object to encode
|
|
60463
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60464
|
+
* @returns {$protobuf.Writer} Writer
|
|
60465
|
+
*/
|
|
60466
|
+
RubySettings.encode = function encode(message, writer) {
|
|
60467
|
+
if (!writer)
|
|
60468
|
+
writer = $Writer.create();
|
|
60469
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
60470
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
60471
|
+
return writer;
|
|
60472
|
+
};
|
|
60473
|
+
|
|
60474
|
+
/**
|
|
60475
|
+
* Encodes the specified RubySettings message, length delimited. Does not implicitly {@link google.api.RubySettings.verify|verify} messages.
|
|
60476
|
+
* @function encodeDelimited
|
|
60477
|
+
* @memberof google.api.RubySettings
|
|
60478
|
+
* @static
|
|
60479
|
+
* @param {google.api.IRubySettings} message RubySettings message or plain object to encode
|
|
60480
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60481
|
+
* @returns {$protobuf.Writer} Writer
|
|
60482
|
+
*/
|
|
60483
|
+
RubySettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60484
|
+
return this.encode(message, writer).ldelim();
|
|
60485
|
+
};
|
|
60486
|
+
|
|
60487
|
+
/**
|
|
60488
|
+
* Decodes a RubySettings message from the specified reader or buffer.
|
|
60489
|
+
* @function decode
|
|
60490
|
+
* @memberof google.api.RubySettings
|
|
60491
|
+
* @static
|
|
60492
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60493
|
+
* @param {number} [length] Message length if known beforehand
|
|
60494
|
+
* @returns {google.api.RubySettings} RubySettings
|
|
60495
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60496
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60497
|
+
*/
|
|
60498
|
+
RubySettings.decode = function decode(reader, length) {
|
|
60499
|
+
if (!(reader instanceof $Reader))
|
|
60500
|
+
reader = $Reader.create(reader);
|
|
60501
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.RubySettings();
|
|
60502
|
+
while (reader.pos < end) {
|
|
60503
|
+
var tag = reader.uint32();
|
|
60504
|
+
switch (tag >>> 3) {
|
|
60505
|
+
case 1: {
|
|
60506
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
60507
|
+
break;
|
|
60508
|
+
}
|
|
60509
|
+
default:
|
|
60510
|
+
reader.skipType(tag & 7);
|
|
60511
|
+
break;
|
|
60512
|
+
}
|
|
60513
|
+
}
|
|
60514
|
+
return message;
|
|
60515
|
+
};
|
|
60516
|
+
|
|
60517
|
+
/**
|
|
60518
|
+
* Decodes a RubySettings message from the specified reader or buffer, length delimited.
|
|
60519
|
+
* @function decodeDelimited
|
|
60520
|
+
* @memberof google.api.RubySettings
|
|
60521
|
+
* @static
|
|
60522
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60523
|
+
* @returns {google.api.RubySettings} RubySettings
|
|
60524
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60525
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60526
|
+
*/
|
|
60527
|
+
RubySettings.decodeDelimited = function decodeDelimited(reader) {
|
|
60528
|
+
if (!(reader instanceof $Reader))
|
|
60529
|
+
reader = new $Reader(reader);
|
|
60530
|
+
return this.decode(reader, reader.uint32());
|
|
60531
|
+
};
|
|
60532
|
+
|
|
60533
|
+
/**
|
|
60534
|
+
* Verifies a RubySettings message.
|
|
60535
|
+
* @function verify
|
|
60536
|
+
* @memberof google.api.RubySettings
|
|
60537
|
+
* @static
|
|
60538
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60539
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60540
|
+
*/
|
|
60541
|
+
RubySettings.verify = function verify(message) {
|
|
60542
|
+
if (typeof message !== "object" || message === null)
|
|
60543
|
+
return "object expected";
|
|
60544
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
60545
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
60546
|
+
if (error)
|
|
60547
|
+
return "common." + error;
|
|
60548
|
+
}
|
|
60549
|
+
return null;
|
|
60550
|
+
};
|
|
60551
|
+
|
|
60552
|
+
/**
|
|
60553
|
+
* Creates a RubySettings message from a plain object. Also converts values to their respective internal types.
|
|
60554
|
+
* @function fromObject
|
|
60555
|
+
* @memberof google.api.RubySettings
|
|
60556
|
+
* @static
|
|
60557
|
+
* @param {Object.<string,*>} object Plain object
|
|
60558
|
+
* @returns {google.api.RubySettings} RubySettings
|
|
60559
|
+
*/
|
|
60560
|
+
RubySettings.fromObject = function fromObject(object) {
|
|
60561
|
+
if (object instanceof $root.google.api.RubySettings)
|
|
60562
|
+
return object;
|
|
60563
|
+
var message = new $root.google.api.RubySettings();
|
|
60564
|
+
if (object.common != null) {
|
|
60565
|
+
if (typeof object.common !== "object")
|
|
60566
|
+
throw TypeError(".google.api.RubySettings.common: object expected");
|
|
60567
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
60568
|
+
}
|
|
60569
|
+
return message;
|
|
60570
|
+
};
|
|
60571
|
+
|
|
60572
|
+
/**
|
|
60573
|
+
* Creates a plain object from a RubySettings message. Also converts values to other types if specified.
|
|
60574
|
+
* @function toObject
|
|
60575
|
+
* @memberof google.api.RubySettings
|
|
60576
|
+
* @static
|
|
60577
|
+
* @param {google.api.RubySettings} message RubySettings
|
|
60578
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60579
|
+
* @returns {Object.<string,*>} Plain object
|
|
60580
|
+
*/
|
|
60581
|
+
RubySettings.toObject = function toObject(message, options) {
|
|
60582
|
+
if (!options)
|
|
60583
|
+
options = {};
|
|
60584
|
+
var object = {};
|
|
60585
|
+
if (options.defaults)
|
|
60586
|
+
object.common = null;
|
|
60587
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
60588
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
60589
|
+
return object;
|
|
60590
|
+
};
|
|
60591
|
+
|
|
60592
|
+
/**
|
|
60593
|
+
* Converts this RubySettings to JSON.
|
|
60594
|
+
* @function toJSON
|
|
60595
|
+
* @memberof google.api.RubySettings
|
|
60596
|
+
* @instance
|
|
60597
|
+
* @returns {Object.<string,*>} JSON object
|
|
60598
|
+
*/
|
|
60599
|
+
RubySettings.prototype.toJSON = function toJSON() {
|
|
60600
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60601
|
+
};
|
|
60602
|
+
|
|
60603
|
+
/**
|
|
60604
|
+
* Gets the default type url for RubySettings
|
|
60605
|
+
* @function getTypeUrl
|
|
60606
|
+
* @memberof google.api.RubySettings
|
|
60607
|
+
* @static
|
|
60608
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
60609
|
+
* @returns {string} The default type url
|
|
60610
|
+
*/
|
|
60611
|
+
RubySettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
60612
|
+
if (typeUrlPrefix === undefined) {
|
|
60613
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
60614
|
+
}
|
|
60615
|
+
return typeUrlPrefix + "/google.api.RubySettings";
|
|
60616
|
+
};
|
|
60617
|
+
|
|
60618
|
+
return RubySettings;
|
|
60619
|
+
})();
|
|
60620
|
+
|
|
60621
|
+
api.GoSettings = (function() {
|
|
60622
|
+
|
|
60623
|
+
/**
|
|
60624
|
+
* Properties of a GoSettings.
|
|
60625
|
+
* @memberof google.api
|
|
60626
|
+
* @interface IGoSettings
|
|
60627
|
+
* @property {google.api.ICommonLanguageSettings|null} [common] GoSettings common
|
|
60628
|
+
*/
|
|
60629
|
+
|
|
60630
|
+
/**
|
|
60631
|
+
* Constructs a new GoSettings.
|
|
60632
|
+
* @memberof google.api
|
|
60633
|
+
* @classdesc Represents a GoSettings.
|
|
60634
|
+
* @implements IGoSettings
|
|
60635
|
+
* @constructor
|
|
60636
|
+
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
60637
|
+
*/
|
|
60638
|
+
function GoSettings(properties) {
|
|
60639
|
+
if (properties)
|
|
60640
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60641
|
+
if (properties[keys[i]] != null)
|
|
60642
|
+
this[keys[i]] = properties[keys[i]];
|
|
60643
|
+
}
|
|
60644
|
+
|
|
60645
|
+
/**
|
|
60646
|
+
* GoSettings common.
|
|
60647
|
+
* @member {google.api.ICommonLanguageSettings|null|undefined} common
|
|
60648
|
+
* @memberof google.api.GoSettings
|
|
60649
|
+
* @instance
|
|
60650
|
+
*/
|
|
60651
|
+
GoSettings.prototype.common = null;
|
|
60652
|
+
|
|
60653
|
+
/**
|
|
60654
|
+
* Creates a new GoSettings instance using the specified properties.
|
|
60655
|
+
* @function create
|
|
60656
|
+
* @memberof google.api.GoSettings
|
|
60657
|
+
* @static
|
|
60658
|
+
* @param {google.api.IGoSettings=} [properties] Properties to set
|
|
60659
|
+
* @returns {google.api.GoSettings} GoSettings instance
|
|
60660
|
+
*/
|
|
60661
|
+
GoSettings.create = function create(properties) {
|
|
60662
|
+
return new GoSettings(properties);
|
|
60663
|
+
};
|
|
60664
|
+
|
|
60665
|
+
/**
|
|
60666
|
+
* Encodes the specified GoSettings message. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
|
|
60667
|
+
* @function encode
|
|
60668
|
+
* @memberof google.api.GoSettings
|
|
60669
|
+
* @static
|
|
60670
|
+
* @param {google.api.IGoSettings} message GoSettings message or plain object to encode
|
|
60671
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60672
|
+
* @returns {$protobuf.Writer} Writer
|
|
60673
|
+
*/
|
|
60674
|
+
GoSettings.encode = function encode(message, writer) {
|
|
60675
|
+
if (!writer)
|
|
60676
|
+
writer = $Writer.create();
|
|
60677
|
+
if (message.common != null && Object.hasOwnProperty.call(message, "common"))
|
|
60678
|
+
$root.google.api.CommonLanguageSettings.encode(message.common, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
60679
|
+
return writer;
|
|
60680
|
+
};
|
|
60681
|
+
|
|
60682
|
+
/**
|
|
60683
|
+
* Encodes the specified GoSettings message, length delimited. Does not implicitly {@link google.api.GoSettings.verify|verify} messages.
|
|
60684
|
+
* @function encodeDelimited
|
|
60685
|
+
* @memberof google.api.GoSettings
|
|
60686
|
+
* @static
|
|
60687
|
+
* @param {google.api.IGoSettings} message GoSettings message or plain object to encode
|
|
60688
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60689
|
+
* @returns {$protobuf.Writer} Writer
|
|
60690
|
+
*/
|
|
60691
|
+
GoSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60692
|
+
return this.encode(message, writer).ldelim();
|
|
60693
|
+
};
|
|
60694
|
+
|
|
60695
|
+
/**
|
|
60696
|
+
* Decodes a GoSettings message from the specified reader or buffer.
|
|
60697
|
+
* @function decode
|
|
60698
|
+
* @memberof google.api.GoSettings
|
|
60699
|
+
* @static
|
|
60700
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60701
|
+
* @param {number} [length] Message length if known beforehand
|
|
60702
|
+
* @returns {google.api.GoSettings} GoSettings
|
|
60703
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60704
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60705
|
+
*/
|
|
60706
|
+
GoSettings.decode = function decode(reader, length) {
|
|
60707
|
+
if (!(reader instanceof $Reader))
|
|
60708
|
+
reader = $Reader.create(reader);
|
|
60709
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.GoSettings();
|
|
60710
|
+
while (reader.pos < end) {
|
|
60711
|
+
var tag = reader.uint32();
|
|
60712
|
+
switch (tag >>> 3) {
|
|
60713
|
+
case 1: {
|
|
60714
|
+
message.common = $root.google.api.CommonLanguageSettings.decode(reader, reader.uint32());
|
|
60715
|
+
break;
|
|
60716
|
+
}
|
|
60717
|
+
default:
|
|
60718
|
+
reader.skipType(tag & 7);
|
|
60719
|
+
break;
|
|
60720
|
+
}
|
|
60721
|
+
}
|
|
60722
|
+
return message;
|
|
60723
|
+
};
|
|
60724
|
+
|
|
60725
|
+
/**
|
|
60726
|
+
* Decodes a GoSettings message from the specified reader or buffer, length delimited.
|
|
60727
|
+
* @function decodeDelimited
|
|
60728
|
+
* @memberof google.api.GoSettings
|
|
60729
|
+
* @static
|
|
60730
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60731
|
+
* @returns {google.api.GoSettings} GoSettings
|
|
60732
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60733
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60734
|
+
*/
|
|
60735
|
+
GoSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
60736
|
+
if (!(reader instanceof $Reader))
|
|
60737
|
+
reader = new $Reader(reader);
|
|
60738
|
+
return this.decode(reader, reader.uint32());
|
|
60739
|
+
};
|
|
60740
|
+
|
|
60741
|
+
/**
|
|
60742
|
+
* Verifies a GoSettings message.
|
|
60743
|
+
* @function verify
|
|
60744
|
+
* @memberof google.api.GoSettings
|
|
60745
|
+
* @static
|
|
60746
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60747
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60748
|
+
*/
|
|
60749
|
+
GoSettings.verify = function verify(message) {
|
|
60750
|
+
if (typeof message !== "object" || message === null)
|
|
60751
|
+
return "object expected";
|
|
60752
|
+
if (message.common != null && message.hasOwnProperty("common")) {
|
|
60753
|
+
var error = $root.google.api.CommonLanguageSettings.verify(message.common);
|
|
60754
|
+
if (error)
|
|
60755
|
+
return "common." + error;
|
|
60756
|
+
}
|
|
60757
|
+
return null;
|
|
60758
|
+
};
|
|
60759
|
+
|
|
60760
|
+
/**
|
|
60761
|
+
* Creates a GoSettings message from a plain object. Also converts values to their respective internal types.
|
|
60762
|
+
* @function fromObject
|
|
60763
|
+
* @memberof google.api.GoSettings
|
|
60764
|
+
* @static
|
|
60765
|
+
* @param {Object.<string,*>} object Plain object
|
|
60766
|
+
* @returns {google.api.GoSettings} GoSettings
|
|
60767
|
+
*/
|
|
60768
|
+
GoSettings.fromObject = function fromObject(object) {
|
|
60769
|
+
if (object instanceof $root.google.api.GoSettings)
|
|
60770
|
+
return object;
|
|
60771
|
+
var message = new $root.google.api.GoSettings();
|
|
60772
|
+
if (object.common != null) {
|
|
60773
|
+
if (typeof object.common !== "object")
|
|
60774
|
+
throw TypeError(".google.api.GoSettings.common: object expected");
|
|
60775
|
+
message.common = $root.google.api.CommonLanguageSettings.fromObject(object.common);
|
|
60776
|
+
}
|
|
60777
|
+
return message;
|
|
60778
|
+
};
|
|
60779
|
+
|
|
60780
|
+
/**
|
|
60781
|
+
* Creates a plain object from a GoSettings message. Also converts values to other types if specified.
|
|
60782
|
+
* @function toObject
|
|
60783
|
+
* @memberof google.api.GoSettings
|
|
60784
|
+
* @static
|
|
60785
|
+
* @param {google.api.GoSettings} message GoSettings
|
|
60786
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
60787
|
+
* @returns {Object.<string,*>} Plain object
|
|
60788
|
+
*/
|
|
60789
|
+
GoSettings.toObject = function toObject(message, options) {
|
|
60790
|
+
if (!options)
|
|
60791
|
+
options = {};
|
|
60792
|
+
var object = {};
|
|
60793
|
+
if (options.defaults)
|
|
60794
|
+
object.common = null;
|
|
60795
|
+
if (message.common != null && message.hasOwnProperty("common"))
|
|
60796
|
+
object.common = $root.google.api.CommonLanguageSettings.toObject(message.common, options);
|
|
60797
|
+
return object;
|
|
60798
|
+
};
|
|
60799
|
+
|
|
60800
|
+
/**
|
|
60801
|
+
* Converts this GoSettings to JSON.
|
|
60802
|
+
* @function toJSON
|
|
60803
|
+
* @memberof google.api.GoSettings
|
|
60804
|
+
* @instance
|
|
60805
|
+
* @returns {Object.<string,*>} JSON object
|
|
60806
|
+
*/
|
|
60807
|
+
GoSettings.prototype.toJSON = function toJSON() {
|
|
60808
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
60809
|
+
};
|
|
60810
|
+
|
|
60811
|
+
/**
|
|
60812
|
+
* Gets the default type url for GoSettings
|
|
60813
|
+
* @function getTypeUrl
|
|
60814
|
+
* @memberof google.api.GoSettings
|
|
60815
|
+
* @static
|
|
60816
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
60817
|
+
* @returns {string} The default type url
|
|
60818
|
+
*/
|
|
60819
|
+
GoSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
60820
|
+
if (typeUrlPrefix === undefined) {
|
|
60821
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
60822
|
+
}
|
|
60823
|
+
return typeUrlPrefix + "/google.api.GoSettings";
|
|
60824
|
+
};
|
|
60825
|
+
|
|
60826
|
+
return GoSettings;
|
|
60827
|
+
})();
|
|
60828
|
+
|
|
60829
|
+
api.MethodSettings = (function() {
|
|
60830
|
+
|
|
60831
|
+
/**
|
|
60832
|
+
* Properties of a MethodSettings.
|
|
60833
|
+
* @memberof google.api
|
|
60834
|
+
* @interface IMethodSettings
|
|
60835
|
+
* @property {string|null} [selector] MethodSettings selector
|
|
60836
|
+
* @property {google.api.MethodSettings.ILongRunning|null} [longRunning] MethodSettings longRunning
|
|
60837
|
+
*/
|
|
60838
|
+
|
|
60839
|
+
/**
|
|
60840
|
+
* Constructs a new MethodSettings.
|
|
60841
|
+
* @memberof google.api
|
|
60842
|
+
* @classdesc Represents a MethodSettings.
|
|
60843
|
+
* @implements IMethodSettings
|
|
60844
|
+
* @constructor
|
|
60845
|
+
* @param {google.api.IMethodSettings=} [properties] Properties to set
|
|
60846
|
+
*/
|
|
60847
|
+
function MethodSettings(properties) {
|
|
60848
|
+
if (properties)
|
|
60849
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
60850
|
+
if (properties[keys[i]] != null)
|
|
60851
|
+
this[keys[i]] = properties[keys[i]];
|
|
60852
|
+
}
|
|
60853
|
+
|
|
60854
|
+
/**
|
|
60855
|
+
* MethodSettings selector.
|
|
60856
|
+
* @member {string} selector
|
|
60857
|
+
* @memberof google.api.MethodSettings
|
|
60858
|
+
* @instance
|
|
60859
|
+
*/
|
|
60860
|
+
MethodSettings.prototype.selector = "";
|
|
60861
|
+
|
|
60862
|
+
/**
|
|
60863
|
+
* MethodSettings longRunning.
|
|
60864
|
+
* @member {google.api.MethodSettings.ILongRunning|null|undefined} longRunning
|
|
60865
|
+
* @memberof google.api.MethodSettings
|
|
60866
|
+
* @instance
|
|
60867
|
+
*/
|
|
60868
|
+
MethodSettings.prototype.longRunning = null;
|
|
60869
|
+
|
|
60870
|
+
/**
|
|
60871
|
+
* Creates a new MethodSettings instance using the specified properties.
|
|
60872
|
+
* @function create
|
|
60873
|
+
* @memberof google.api.MethodSettings
|
|
60874
|
+
* @static
|
|
60875
|
+
* @param {google.api.IMethodSettings=} [properties] Properties to set
|
|
60876
|
+
* @returns {google.api.MethodSettings} MethodSettings instance
|
|
60877
|
+
*/
|
|
60878
|
+
MethodSettings.create = function create(properties) {
|
|
60879
|
+
return new MethodSettings(properties);
|
|
60880
|
+
};
|
|
60881
|
+
|
|
60882
|
+
/**
|
|
60883
|
+
* Encodes the specified MethodSettings message. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
|
|
60884
|
+
* @function encode
|
|
60885
|
+
* @memberof google.api.MethodSettings
|
|
60886
|
+
* @static
|
|
60887
|
+
* @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
|
|
60888
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60889
|
+
* @returns {$protobuf.Writer} Writer
|
|
60890
|
+
*/
|
|
60891
|
+
MethodSettings.encode = function encode(message, writer) {
|
|
60892
|
+
if (!writer)
|
|
60893
|
+
writer = $Writer.create();
|
|
60894
|
+
if (message.selector != null && Object.hasOwnProperty.call(message, "selector"))
|
|
60895
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.selector);
|
|
60896
|
+
if (message.longRunning != null && Object.hasOwnProperty.call(message, "longRunning"))
|
|
60897
|
+
$root.google.api.MethodSettings.LongRunning.encode(message.longRunning, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
60898
|
+
return writer;
|
|
60899
|
+
};
|
|
60900
|
+
|
|
60901
|
+
/**
|
|
60902
|
+
* Encodes the specified MethodSettings message, length delimited. Does not implicitly {@link google.api.MethodSettings.verify|verify} messages.
|
|
60903
|
+
* @function encodeDelimited
|
|
60904
|
+
* @memberof google.api.MethodSettings
|
|
60905
|
+
* @static
|
|
60906
|
+
* @param {google.api.IMethodSettings} message MethodSettings message or plain object to encode
|
|
60907
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
60908
|
+
* @returns {$protobuf.Writer} Writer
|
|
60909
|
+
*/
|
|
60910
|
+
MethodSettings.encodeDelimited = function encodeDelimited(message, writer) {
|
|
60911
|
+
return this.encode(message, writer).ldelim();
|
|
60912
|
+
};
|
|
60913
|
+
|
|
60914
|
+
/**
|
|
60915
|
+
* Decodes a MethodSettings message from the specified reader or buffer.
|
|
60916
|
+
* @function decode
|
|
60917
|
+
* @memberof google.api.MethodSettings
|
|
60918
|
+
* @static
|
|
60919
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60920
|
+
* @param {number} [length] Message length if known beforehand
|
|
60921
|
+
* @returns {google.api.MethodSettings} MethodSettings
|
|
60922
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60923
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60924
|
+
*/
|
|
60925
|
+
MethodSettings.decode = function decode(reader, length) {
|
|
60926
|
+
if (!(reader instanceof $Reader))
|
|
60927
|
+
reader = $Reader.create(reader);
|
|
60928
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings();
|
|
60929
|
+
while (reader.pos < end) {
|
|
60930
|
+
var tag = reader.uint32();
|
|
60931
|
+
switch (tag >>> 3) {
|
|
60932
|
+
case 1: {
|
|
60933
|
+
message.selector = reader.string();
|
|
60934
|
+
break;
|
|
60935
|
+
}
|
|
60936
|
+
case 2: {
|
|
60937
|
+
message.longRunning = $root.google.api.MethodSettings.LongRunning.decode(reader, reader.uint32());
|
|
60938
|
+
break;
|
|
60939
|
+
}
|
|
60940
|
+
default:
|
|
60941
|
+
reader.skipType(tag & 7);
|
|
60942
|
+
break;
|
|
60943
|
+
}
|
|
60944
|
+
}
|
|
60945
|
+
return message;
|
|
60946
|
+
};
|
|
60947
|
+
|
|
60948
|
+
/**
|
|
60949
|
+
* Decodes a MethodSettings message from the specified reader or buffer, length delimited.
|
|
60950
|
+
* @function decodeDelimited
|
|
60951
|
+
* @memberof google.api.MethodSettings
|
|
60952
|
+
* @static
|
|
60953
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
60954
|
+
* @returns {google.api.MethodSettings} MethodSettings
|
|
60955
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
60956
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
60957
|
+
*/
|
|
60958
|
+
MethodSettings.decodeDelimited = function decodeDelimited(reader) {
|
|
60959
|
+
if (!(reader instanceof $Reader))
|
|
60960
|
+
reader = new $Reader(reader);
|
|
60961
|
+
return this.decode(reader, reader.uint32());
|
|
60962
|
+
};
|
|
60963
|
+
|
|
60964
|
+
/**
|
|
60965
|
+
* Verifies a MethodSettings message.
|
|
60966
|
+
* @function verify
|
|
60967
|
+
* @memberof google.api.MethodSettings
|
|
60968
|
+
* @static
|
|
60969
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
60970
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
60971
|
+
*/
|
|
60972
|
+
MethodSettings.verify = function verify(message) {
|
|
60973
|
+
if (typeof message !== "object" || message === null)
|
|
60974
|
+
return "object expected";
|
|
60975
|
+
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
60976
|
+
if (!$util.isString(message.selector))
|
|
60977
|
+
return "selector: string expected";
|
|
60978
|
+
if (message.longRunning != null && message.hasOwnProperty("longRunning")) {
|
|
60979
|
+
var error = $root.google.api.MethodSettings.LongRunning.verify(message.longRunning);
|
|
60980
|
+
if (error)
|
|
60981
|
+
return "longRunning." + error;
|
|
60982
|
+
}
|
|
60983
|
+
return null;
|
|
60984
|
+
};
|
|
60985
|
+
|
|
60986
|
+
/**
|
|
60987
|
+
* Creates a MethodSettings message from a plain object. Also converts values to their respective internal types.
|
|
60988
|
+
* @function fromObject
|
|
60989
|
+
* @memberof google.api.MethodSettings
|
|
60990
|
+
* @static
|
|
60991
|
+
* @param {Object.<string,*>} object Plain object
|
|
60992
|
+
* @returns {google.api.MethodSettings} MethodSettings
|
|
60993
|
+
*/
|
|
60994
|
+
MethodSettings.fromObject = function fromObject(object) {
|
|
60995
|
+
if (object instanceof $root.google.api.MethodSettings)
|
|
60996
|
+
return object;
|
|
60997
|
+
var message = new $root.google.api.MethodSettings();
|
|
60998
|
+
if (object.selector != null)
|
|
60999
|
+
message.selector = String(object.selector);
|
|
61000
|
+
if (object.longRunning != null) {
|
|
61001
|
+
if (typeof object.longRunning !== "object")
|
|
61002
|
+
throw TypeError(".google.api.MethodSettings.longRunning: object expected");
|
|
61003
|
+
message.longRunning = $root.google.api.MethodSettings.LongRunning.fromObject(object.longRunning);
|
|
61004
|
+
}
|
|
61005
|
+
return message;
|
|
61006
|
+
};
|
|
61007
|
+
|
|
61008
|
+
/**
|
|
61009
|
+
* Creates a plain object from a MethodSettings message. Also converts values to other types if specified.
|
|
61010
|
+
* @function toObject
|
|
61011
|
+
* @memberof google.api.MethodSettings
|
|
61012
|
+
* @static
|
|
61013
|
+
* @param {google.api.MethodSettings} message MethodSettings
|
|
61014
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
61015
|
+
* @returns {Object.<string,*>} Plain object
|
|
61016
|
+
*/
|
|
61017
|
+
MethodSettings.toObject = function toObject(message, options) {
|
|
61018
|
+
if (!options)
|
|
61019
|
+
options = {};
|
|
61020
|
+
var object = {};
|
|
61021
|
+
if (options.defaults) {
|
|
61022
|
+
object.selector = "";
|
|
61023
|
+
object.longRunning = null;
|
|
61024
|
+
}
|
|
61025
|
+
if (message.selector != null && message.hasOwnProperty("selector"))
|
|
61026
|
+
object.selector = message.selector;
|
|
61027
|
+
if (message.longRunning != null && message.hasOwnProperty("longRunning"))
|
|
61028
|
+
object.longRunning = $root.google.api.MethodSettings.LongRunning.toObject(message.longRunning, options);
|
|
61029
|
+
return object;
|
|
61030
|
+
};
|
|
61031
|
+
|
|
61032
|
+
/**
|
|
61033
|
+
* Converts this MethodSettings to JSON.
|
|
61034
|
+
* @function toJSON
|
|
61035
|
+
* @memberof google.api.MethodSettings
|
|
61036
|
+
* @instance
|
|
61037
|
+
* @returns {Object.<string,*>} JSON object
|
|
61038
|
+
*/
|
|
61039
|
+
MethodSettings.prototype.toJSON = function toJSON() {
|
|
61040
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
61041
|
+
};
|
|
61042
|
+
|
|
61043
|
+
/**
|
|
61044
|
+
* Gets the default type url for MethodSettings
|
|
61045
|
+
* @function getTypeUrl
|
|
61046
|
+
* @memberof google.api.MethodSettings
|
|
61047
|
+
* @static
|
|
61048
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
61049
|
+
* @returns {string} The default type url
|
|
61050
|
+
*/
|
|
61051
|
+
MethodSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
61052
|
+
if (typeUrlPrefix === undefined) {
|
|
61053
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
61054
|
+
}
|
|
61055
|
+
return typeUrlPrefix + "/google.api.MethodSettings";
|
|
61056
|
+
};
|
|
61057
|
+
|
|
61058
|
+
MethodSettings.LongRunning = (function() {
|
|
61059
|
+
|
|
61060
|
+
/**
|
|
61061
|
+
* Properties of a LongRunning.
|
|
61062
|
+
* @memberof google.api.MethodSettings
|
|
61063
|
+
* @interface ILongRunning
|
|
61064
|
+
* @property {google.protobuf.IDuration|null} [initialPollDelay] LongRunning initialPollDelay
|
|
61065
|
+
* @property {number|null} [pollDelayMultiplier] LongRunning pollDelayMultiplier
|
|
61066
|
+
* @property {google.protobuf.IDuration|null} [maxPollDelay] LongRunning maxPollDelay
|
|
61067
|
+
* @property {google.protobuf.IDuration|null} [totalPollTimeout] LongRunning totalPollTimeout
|
|
61068
|
+
*/
|
|
61069
|
+
|
|
61070
|
+
/**
|
|
61071
|
+
* Constructs a new LongRunning.
|
|
61072
|
+
* @memberof google.api.MethodSettings
|
|
61073
|
+
* @classdesc Represents a LongRunning.
|
|
61074
|
+
* @implements ILongRunning
|
|
61075
|
+
* @constructor
|
|
61076
|
+
* @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
|
|
61077
|
+
*/
|
|
61078
|
+
function LongRunning(properties) {
|
|
61079
|
+
if (properties)
|
|
61080
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
61081
|
+
if (properties[keys[i]] != null)
|
|
61082
|
+
this[keys[i]] = properties[keys[i]];
|
|
61083
|
+
}
|
|
61084
|
+
|
|
61085
|
+
/**
|
|
61086
|
+
* LongRunning initialPollDelay.
|
|
61087
|
+
* @member {google.protobuf.IDuration|null|undefined} initialPollDelay
|
|
61088
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61089
|
+
* @instance
|
|
61090
|
+
*/
|
|
61091
|
+
LongRunning.prototype.initialPollDelay = null;
|
|
61092
|
+
|
|
61093
|
+
/**
|
|
61094
|
+
* LongRunning pollDelayMultiplier.
|
|
61095
|
+
* @member {number} pollDelayMultiplier
|
|
61096
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61097
|
+
* @instance
|
|
61098
|
+
*/
|
|
61099
|
+
LongRunning.prototype.pollDelayMultiplier = 0;
|
|
61100
|
+
|
|
61101
|
+
/**
|
|
61102
|
+
* LongRunning maxPollDelay.
|
|
61103
|
+
* @member {google.protobuf.IDuration|null|undefined} maxPollDelay
|
|
61104
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61105
|
+
* @instance
|
|
61106
|
+
*/
|
|
61107
|
+
LongRunning.prototype.maxPollDelay = null;
|
|
61108
|
+
|
|
61109
|
+
/**
|
|
61110
|
+
* LongRunning totalPollTimeout.
|
|
61111
|
+
* @member {google.protobuf.IDuration|null|undefined} totalPollTimeout
|
|
61112
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61113
|
+
* @instance
|
|
61114
|
+
*/
|
|
61115
|
+
LongRunning.prototype.totalPollTimeout = null;
|
|
61116
|
+
|
|
61117
|
+
/**
|
|
61118
|
+
* Creates a new LongRunning instance using the specified properties.
|
|
61119
|
+
* @function create
|
|
61120
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61121
|
+
* @static
|
|
61122
|
+
* @param {google.api.MethodSettings.ILongRunning=} [properties] Properties to set
|
|
61123
|
+
* @returns {google.api.MethodSettings.LongRunning} LongRunning instance
|
|
61124
|
+
*/
|
|
61125
|
+
LongRunning.create = function create(properties) {
|
|
61126
|
+
return new LongRunning(properties);
|
|
61127
|
+
};
|
|
61128
|
+
|
|
61129
|
+
/**
|
|
61130
|
+
* Encodes the specified LongRunning message. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
|
|
61131
|
+
* @function encode
|
|
61132
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61133
|
+
* @static
|
|
61134
|
+
* @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
|
|
61135
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61136
|
+
* @returns {$protobuf.Writer} Writer
|
|
61137
|
+
*/
|
|
61138
|
+
LongRunning.encode = function encode(message, writer) {
|
|
61139
|
+
if (!writer)
|
|
61140
|
+
writer = $Writer.create();
|
|
61141
|
+
if (message.initialPollDelay != null && Object.hasOwnProperty.call(message, "initialPollDelay"))
|
|
61142
|
+
$root.google.protobuf.Duration.encode(message.initialPollDelay, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
61143
|
+
if (message.pollDelayMultiplier != null && Object.hasOwnProperty.call(message, "pollDelayMultiplier"))
|
|
61144
|
+
writer.uint32(/* id 2, wireType 5 =*/21).float(message.pollDelayMultiplier);
|
|
61145
|
+
if (message.maxPollDelay != null && Object.hasOwnProperty.call(message, "maxPollDelay"))
|
|
61146
|
+
$root.google.protobuf.Duration.encode(message.maxPollDelay, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
61147
|
+
if (message.totalPollTimeout != null && Object.hasOwnProperty.call(message, "totalPollTimeout"))
|
|
61148
|
+
$root.google.protobuf.Duration.encode(message.totalPollTimeout, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
61149
|
+
return writer;
|
|
61150
|
+
};
|
|
61151
|
+
|
|
61152
|
+
/**
|
|
61153
|
+
* Encodes the specified LongRunning message, length delimited. Does not implicitly {@link google.api.MethodSettings.LongRunning.verify|verify} messages.
|
|
61154
|
+
* @function encodeDelimited
|
|
61155
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61156
|
+
* @static
|
|
61157
|
+
* @param {google.api.MethodSettings.ILongRunning} message LongRunning message or plain object to encode
|
|
61158
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
61159
|
+
* @returns {$protobuf.Writer} Writer
|
|
61160
|
+
*/
|
|
61161
|
+
LongRunning.encodeDelimited = function encodeDelimited(message, writer) {
|
|
61162
|
+
return this.encode(message, writer).ldelim();
|
|
61163
|
+
};
|
|
61164
|
+
|
|
61165
|
+
/**
|
|
61166
|
+
* Decodes a LongRunning message from the specified reader or buffer.
|
|
61167
|
+
* @function decode
|
|
61168
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61169
|
+
* @static
|
|
61170
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61171
|
+
* @param {number} [length] Message length if known beforehand
|
|
61172
|
+
* @returns {google.api.MethodSettings.LongRunning} LongRunning
|
|
61173
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61174
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61175
|
+
*/
|
|
61176
|
+
LongRunning.decode = function decode(reader, length) {
|
|
61177
|
+
if (!(reader instanceof $Reader))
|
|
61178
|
+
reader = $Reader.create(reader);
|
|
61179
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.api.MethodSettings.LongRunning();
|
|
61180
|
+
while (reader.pos < end) {
|
|
61181
|
+
var tag = reader.uint32();
|
|
61182
|
+
switch (tag >>> 3) {
|
|
61183
|
+
case 1: {
|
|
61184
|
+
message.initialPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
61185
|
+
break;
|
|
61186
|
+
}
|
|
61187
|
+
case 2: {
|
|
61188
|
+
message.pollDelayMultiplier = reader.float();
|
|
61189
|
+
break;
|
|
61190
|
+
}
|
|
61191
|
+
case 3: {
|
|
61192
|
+
message.maxPollDelay = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
61193
|
+
break;
|
|
61194
|
+
}
|
|
61195
|
+
case 4: {
|
|
61196
|
+
message.totalPollTimeout = $root.google.protobuf.Duration.decode(reader, reader.uint32());
|
|
61197
|
+
break;
|
|
61198
|
+
}
|
|
61199
|
+
default:
|
|
61200
|
+
reader.skipType(tag & 7);
|
|
61201
|
+
break;
|
|
61202
|
+
}
|
|
61203
|
+
}
|
|
61204
|
+
return message;
|
|
61205
|
+
};
|
|
61206
|
+
|
|
61207
|
+
/**
|
|
61208
|
+
* Decodes a LongRunning message from the specified reader or buffer, length delimited.
|
|
61209
|
+
* @function decodeDelimited
|
|
61210
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61211
|
+
* @static
|
|
61212
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
61213
|
+
* @returns {google.api.MethodSettings.LongRunning} LongRunning
|
|
61214
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
61215
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
61216
|
+
*/
|
|
61217
|
+
LongRunning.decodeDelimited = function decodeDelimited(reader) {
|
|
61218
|
+
if (!(reader instanceof $Reader))
|
|
61219
|
+
reader = new $Reader(reader);
|
|
61220
|
+
return this.decode(reader, reader.uint32());
|
|
61221
|
+
};
|
|
61222
|
+
|
|
61223
|
+
/**
|
|
61224
|
+
* Verifies a LongRunning message.
|
|
61225
|
+
* @function verify
|
|
61226
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61227
|
+
* @static
|
|
61228
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
61229
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
61230
|
+
*/
|
|
61231
|
+
LongRunning.verify = function verify(message) {
|
|
61232
|
+
if (typeof message !== "object" || message === null)
|
|
61233
|
+
return "object expected";
|
|
61234
|
+
if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay")) {
|
|
61235
|
+
var error = $root.google.protobuf.Duration.verify(message.initialPollDelay);
|
|
61236
|
+
if (error)
|
|
61237
|
+
return "initialPollDelay." + error;
|
|
61238
|
+
}
|
|
61239
|
+
if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
|
|
61240
|
+
if (typeof message.pollDelayMultiplier !== "number")
|
|
61241
|
+
return "pollDelayMultiplier: number expected";
|
|
61242
|
+
if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay")) {
|
|
61243
|
+
var error = $root.google.protobuf.Duration.verify(message.maxPollDelay);
|
|
61244
|
+
if (error)
|
|
61245
|
+
return "maxPollDelay." + error;
|
|
61246
|
+
}
|
|
61247
|
+
if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout")) {
|
|
61248
|
+
var error = $root.google.protobuf.Duration.verify(message.totalPollTimeout);
|
|
61249
|
+
if (error)
|
|
61250
|
+
return "totalPollTimeout." + error;
|
|
61251
|
+
}
|
|
61252
|
+
return null;
|
|
61253
|
+
};
|
|
61254
|
+
|
|
61255
|
+
/**
|
|
61256
|
+
* Creates a LongRunning message from a plain object. Also converts values to their respective internal types.
|
|
61257
|
+
* @function fromObject
|
|
61258
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61259
|
+
* @static
|
|
61260
|
+
* @param {Object.<string,*>} object Plain object
|
|
61261
|
+
* @returns {google.api.MethodSettings.LongRunning} LongRunning
|
|
61262
|
+
*/
|
|
61263
|
+
LongRunning.fromObject = function fromObject(object) {
|
|
61264
|
+
if (object instanceof $root.google.api.MethodSettings.LongRunning)
|
|
61265
|
+
return object;
|
|
61266
|
+
var message = new $root.google.api.MethodSettings.LongRunning();
|
|
61267
|
+
if (object.initialPollDelay != null) {
|
|
61268
|
+
if (typeof object.initialPollDelay !== "object")
|
|
61269
|
+
throw TypeError(".google.api.MethodSettings.LongRunning.initialPollDelay: object expected");
|
|
61270
|
+
message.initialPollDelay = $root.google.protobuf.Duration.fromObject(object.initialPollDelay);
|
|
61271
|
+
}
|
|
61272
|
+
if (object.pollDelayMultiplier != null)
|
|
61273
|
+
message.pollDelayMultiplier = Number(object.pollDelayMultiplier);
|
|
61274
|
+
if (object.maxPollDelay != null) {
|
|
61275
|
+
if (typeof object.maxPollDelay !== "object")
|
|
61276
|
+
throw TypeError(".google.api.MethodSettings.LongRunning.maxPollDelay: object expected");
|
|
61277
|
+
message.maxPollDelay = $root.google.protobuf.Duration.fromObject(object.maxPollDelay);
|
|
61278
|
+
}
|
|
61279
|
+
if (object.totalPollTimeout != null) {
|
|
61280
|
+
if (typeof object.totalPollTimeout !== "object")
|
|
61281
|
+
throw TypeError(".google.api.MethodSettings.LongRunning.totalPollTimeout: object expected");
|
|
61282
|
+
message.totalPollTimeout = $root.google.protobuf.Duration.fromObject(object.totalPollTimeout);
|
|
61283
|
+
}
|
|
61284
|
+
return message;
|
|
61285
|
+
};
|
|
61286
|
+
|
|
61287
|
+
/**
|
|
61288
|
+
* Creates a plain object from a LongRunning message. Also converts values to other types if specified.
|
|
61289
|
+
* @function toObject
|
|
61290
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61291
|
+
* @static
|
|
61292
|
+
* @param {google.api.MethodSettings.LongRunning} message LongRunning
|
|
61293
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
61294
|
+
* @returns {Object.<string,*>} Plain object
|
|
61295
|
+
*/
|
|
61296
|
+
LongRunning.toObject = function toObject(message, options) {
|
|
61297
|
+
if (!options)
|
|
61298
|
+
options = {};
|
|
61299
|
+
var object = {};
|
|
61300
|
+
if (options.defaults) {
|
|
61301
|
+
object.initialPollDelay = null;
|
|
61302
|
+
object.pollDelayMultiplier = 0;
|
|
61303
|
+
object.maxPollDelay = null;
|
|
61304
|
+
object.totalPollTimeout = null;
|
|
61305
|
+
}
|
|
61306
|
+
if (message.initialPollDelay != null && message.hasOwnProperty("initialPollDelay"))
|
|
61307
|
+
object.initialPollDelay = $root.google.protobuf.Duration.toObject(message.initialPollDelay, options);
|
|
61308
|
+
if (message.pollDelayMultiplier != null && message.hasOwnProperty("pollDelayMultiplier"))
|
|
61309
|
+
object.pollDelayMultiplier = options.json && !isFinite(message.pollDelayMultiplier) ? String(message.pollDelayMultiplier) : message.pollDelayMultiplier;
|
|
61310
|
+
if (message.maxPollDelay != null && message.hasOwnProperty("maxPollDelay"))
|
|
61311
|
+
object.maxPollDelay = $root.google.protobuf.Duration.toObject(message.maxPollDelay, options);
|
|
61312
|
+
if (message.totalPollTimeout != null && message.hasOwnProperty("totalPollTimeout"))
|
|
61313
|
+
object.totalPollTimeout = $root.google.protobuf.Duration.toObject(message.totalPollTimeout, options);
|
|
61314
|
+
return object;
|
|
61315
|
+
};
|
|
61316
|
+
|
|
61317
|
+
/**
|
|
61318
|
+
* Converts this LongRunning to JSON.
|
|
61319
|
+
* @function toJSON
|
|
61320
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61321
|
+
* @instance
|
|
61322
|
+
* @returns {Object.<string,*>} JSON object
|
|
61323
|
+
*/
|
|
61324
|
+
LongRunning.prototype.toJSON = function toJSON() {
|
|
61325
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
61326
|
+
};
|
|
61327
|
+
|
|
61328
|
+
/**
|
|
61329
|
+
* Gets the default type url for LongRunning
|
|
61330
|
+
* @function getTypeUrl
|
|
61331
|
+
* @memberof google.api.MethodSettings.LongRunning
|
|
61332
|
+
* @static
|
|
61333
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
61334
|
+
* @returns {string} The default type url
|
|
61335
|
+
*/
|
|
61336
|
+
LongRunning.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
61337
|
+
if (typeUrlPrefix === undefined) {
|
|
61338
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
61339
|
+
}
|
|
61340
|
+
return typeUrlPrefix + "/google.api.MethodSettings.LongRunning";
|
|
61341
|
+
};
|
|
61342
|
+
|
|
61343
|
+
return LongRunning;
|
|
61344
|
+
})();
|
|
61345
|
+
|
|
61346
|
+
return MethodSettings;
|
|
61347
|
+
})();
|
|
61348
|
+
|
|
61349
|
+
/**
|
|
61350
|
+
* ClientLibraryOrganization enum.
|
|
61351
|
+
* @name google.api.ClientLibraryOrganization
|
|
61352
|
+
* @enum {number}
|
|
61353
|
+
* @property {number} CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED=0 CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED value
|
|
61354
|
+
* @property {number} CLOUD=1 CLOUD value
|
|
61355
|
+
* @property {number} ADS=2 ADS value
|
|
61356
|
+
* @property {number} PHOTOS=3 PHOTOS value
|
|
61357
|
+
* @property {number} STREET_VIEW=4 STREET_VIEW value
|
|
61358
|
+
*/
|
|
61359
|
+
api.ClientLibraryOrganization = (function() {
|
|
61360
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
61361
|
+
values[valuesById[0] = "CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED"] = 0;
|
|
61362
|
+
values[valuesById[1] = "CLOUD"] = 1;
|
|
61363
|
+
values[valuesById[2] = "ADS"] = 2;
|
|
61364
|
+
values[valuesById[3] = "PHOTOS"] = 3;
|
|
61365
|
+
values[valuesById[4] = "STREET_VIEW"] = 4;
|
|
61366
|
+
return values;
|
|
61367
|
+
})();
|
|
61368
|
+
|
|
61369
|
+
/**
|
|
61370
|
+
* ClientLibraryDestination enum.
|
|
61371
|
+
* @name google.api.ClientLibraryDestination
|
|
61372
|
+
* @enum {number}
|
|
61373
|
+
* @property {number} CLIENT_LIBRARY_DESTINATION_UNSPECIFIED=0 CLIENT_LIBRARY_DESTINATION_UNSPECIFIED value
|
|
61374
|
+
* @property {number} GITHUB=10 GITHUB value
|
|
61375
|
+
* @property {number} PACKAGE_MANAGER=20 PACKAGE_MANAGER value
|
|
61376
|
+
*/
|
|
61377
|
+
api.ClientLibraryDestination = (function() {
|
|
61378
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
61379
|
+
values[valuesById[0] = "CLIENT_LIBRARY_DESTINATION_UNSPECIFIED"] = 0;
|
|
61380
|
+
values[valuesById[10] = "GITHUB"] = 10;
|
|
61381
|
+
values[valuesById[20] = "PACKAGE_MANAGER"] = 20;
|
|
61382
|
+
return values;
|
|
61383
|
+
})();
|
|
61384
|
+
|
|
61385
|
+
/**
|
|
61386
|
+
* LaunchStage enum.
|
|
61387
|
+
* @name google.api.LaunchStage
|
|
61388
|
+
* @enum {number}
|
|
61389
|
+
* @property {number} LAUNCH_STAGE_UNSPECIFIED=0 LAUNCH_STAGE_UNSPECIFIED value
|
|
61390
|
+
* @property {number} UNIMPLEMENTED=6 UNIMPLEMENTED value
|
|
61391
|
+
* @property {number} PRELAUNCH=7 PRELAUNCH value
|
|
61392
|
+
* @property {number} EARLY_ACCESS=1 EARLY_ACCESS value
|
|
61393
|
+
* @property {number} ALPHA=2 ALPHA value
|
|
61394
|
+
* @property {number} BETA=3 BETA value
|
|
61395
|
+
* @property {number} GA=4 GA value
|
|
61396
|
+
* @property {number} DEPRECATED=5 DEPRECATED value
|
|
61397
|
+
*/
|
|
61398
|
+
api.LaunchStage = (function() {
|
|
61399
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
61400
|
+
values[valuesById[0] = "LAUNCH_STAGE_UNSPECIFIED"] = 0;
|
|
61401
|
+
values[valuesById[6] = "UNIMPLEMENTED"] = 6;
|
|
61402
|
+
values[valuesById[7] = "PRELAUNCH"] = 7;
|
|
61403
|
+
values[valuesById[1] = "EARLY_ACCESS"] = 1;
|
|
61404
|
+
values[valuesById[2] = "ALPHA"] = 2;
|
|
61405
|
+
values[valuesById[3] = "BETA"] = 3;
|
|
61406
|
+
values[valuesById[4] = "GA"] = 4;
|
|
61407
|
+
values[valuesById[5] = "DEPRECATED"] = 5;
|
|
61408
|
+
return values;
|
|
61409
|
+
})();
|
|
61410
|
+
|
|
57802
61411
|
/**
|
|
57803
61412
|
* FieldBehavior enum.
|
|
57804
61413
|
* @name google.api.FieldBehavior
|
|
@@ -63747,6 +67356,7 @@
|
|
|
63747
67356
|
* @property {boolean|null} [noStandardDescriptorAccessor] MessageOptions noStandardDescriptorAccessor
|
|
63748
67357
|
* @property {boolean|null} [deprecated] MessageOptions deprecated
|
|
63749
67358
|
* @property {boolean|null} [mapEntry] MessageOptions mapEntry
|
|
67359
|
+
* @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] MessageOptions deprecatedLegacyJsonFieldConflicts
|
|
63750
67360
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] MessageOptions uninterpretedOption
|
|
63751
67361
|
* @property {google.api.IResourceDescriptor|null} [".google.api.resource"] MessageOptions .google.api.resource
|
|
63752
67362
|
*/
|
|
@@ -63799,6 +67409,14 @@
|
|
|
63799
67409
|
*/
|
|
63800
67410
|
MessageOptions.prototype.mapEntry = false;
|
|
63801
67411
|
|
|
67412
|
+
/**
|
|
67413
|
+
* MessageOptions deprecatedLegacyJsonFieldConflicts.
|
|
67414
|
+
* @member {boolean} deprecatedLegacyJsonFieldConflicts
|
|
67415
|
+
* @memberof google.protobuf.MessageOptions
|
|
67416
|
+
* @instance
|
|
67417
|
+
*/
|
|
67418
|
+
MessageOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
|
|
67419
|
+
|
|
63802
67420
|
/**
|
|
63803
67421
|
* MessageOptions uninterpretedOption.
|
|
63804
67422
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -63847,6 +67465,8 @@
|
|
|
63847
67465
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
|
|
63848
67466
|
if (message.mapEntry != null && Object.hasOwnProperty.call(message, "mapEntry"))
|
|
63849
67467
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.mapEntry);
|
|
67468
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
|
|
67469
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
63850
67470
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
63851
67471
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
63852
67472
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -63902,6 +67522,10 @@
|
|
|
63902
67522
|
message.mapEntry = reader.bool();
|
|
63903
67523
|
break;
|
|
63904
67524
|
}
|
|
67525
|
+
case 11: {
|
|
67526
|
+
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
67527
|
+
break;
|
|
67528
|
+
}
|
|
63905
67529
|
case 999: {
|
|
63906
67530
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
63907
67531
|
message.uninterpretedOption = [];
|
|
@@ -63959,6 +67583,9 @@
|
|
|
63959
67583
|
if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
|
|
63960
67584
|
if (typeof message.mapEntry !== "boolean")
|
|
63961
67585
|
return "mapEntry: boolean expected";
|
|
67586
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
67587
|
+
if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
|
|
67588
|
+
return "deprecatedLegacyJsonFieldConflicts: boolean expected";
|
|
63962
67589
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
63963
67590
|
if (!Array.isArray(message.uninterpretedOption))
|
|
63964
67591
|
return "uninterpretedOption: array expected";
|
|
@@ -63996,6 +67623,8 @@
|
|
|
63996
67623
|
message.deprecated = Boolean(object.deprecated);
|
|
63997
67624
|
if (object.mapEntry != null)
|
|
63998
67625
|
message.mapEntry = Boolean(object.mapEntry);
|
|
67626
|
+
if (object.deprecatedLegacyJsonFieldConflicts != null)
|
|
67627
|
+
message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
|
|
63999
67628
|
if (object.uninterpretedOption) {
|
|
64000
67629
|
if (!Array.isArray(object.uninterpretedOption))
|
|
64001
67630
|
throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected");
|
|
@@ -64034,6 +67663,7 @@
|
|
|
64034
67663
|
object.noStandardDescriptorAccessor = false;
|
|
64035
67664
|
object.deprecated = false;
|
|
64036
67665
|
object.mapEntry = false;
|
|
67666
|
+
object.deprecatedLegacyJsonFieldConflicts = false;
|
|
64037
67667
|
object[".google.api.resource"] = null;
|
|
64038
67668
|
}
|
|
64039
67669
|
if (message.messageSetWireFormat != null && message.hasOwnProperty("messageSetWireFormat"))
|
|
@@ -64044,6 +67674,8 @@
|
|
|
64044
67674
|
object.deprecated = message.deprecated;
|
|
64045
67675
|
if (message.mapEntry != null && message.hasOwnProperty("mapEntry"))
|
|
64046
67676
|
object.mapEntry = message.mapEntry;
|
|
67677
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
67678
|
+
object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
64047
67679
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
64048
67680
|
object.uninterpretedOption = [];
|
|
64049
67681
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -64096,6 +67728,9 @@
|
|
|
64096
67728
|
* @property {boolean|null} [unverifiedLazy] FieldOptions unverifiedLazy
|
|
64097
67729
|
* @property {boolean|null} [deprecated] FieldOptions deprecated
|
|
64098
67730
|
* @property {boolean|null} [weak] FieldOptions weak
|
|
67731
|
+
* @property {boolean|null} [debugRedact] FieldOptions debugRedact
|
|
67732
|
+
* @property {google.protobuf.FieldOptions.OptionRetention|null} [retention] FieldOptions retention
|
|
67733
|
+
* @property {google.protobuf.FieldOptions.OptionTargetType|null} [target] FieldOptions target
|
|
64099
67734
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FieldOptions uninterpretedOption
|
|
64100
67735
|
* @property {Array.<google.api.FieldBehavior>|null} [".google.api.fieldBehavior"] FieldOptions .google.api.fieldBehavior
|
|
64101
67736
|
* @property {google.api.IResourceReference|null} [".google.api.resourceReference"] FieldOptions .google.api.resourceReference
|
|
@@ -64174,6 +67809,30 @@
|
|
|
64174
67809
|
*/
|
|
64175
67810
|
FieldOptions.prototype.weak = false;
|
|
64176
67811
|
|
|
67812
|
+
/**
|
|
67813
|
+
* FieldOptions debugRedact.
|
|
67814
|
+
* @member {boolean} debugRedact
|
|
67815
|
+
* @memberof google.protobuf.FieldOptions
|
|
67816
|
+
* @instance
|
|
67817
|
+
*/
|
|
67818
|
+
FieldOptions.prototype.debugRedact = false;
|
|
67819
|
+
|
|
67820
|
+
/**
|
|
67821
|
+
* FieldOptions retention.
|
|
67822
|
+
* @member {google.protobuf.FieldOptions.OptionRetention} retention
|
|
67823
|
+
* @memberof google.protobuf.FieldOptions
|
|
67824
|
+
* @instance
|
|
67825
|
+
*/
|
|
67826
|
+
FieldOptions.prototype.retention = 0;
|
|
67827
|
+
|
|
67828
|
+
/**
|
|
67829
|
+
* FieldOptions target.
|
|
67830
|
+
* @member {google.protobuf.FieldOptions.OptionTargetType} target
|
|
67831
|
+
* @memberof google.protobuf.FieldOptions
|
|
67832
|
+
* @instance
|
|
67833
|
+
*/
|
|
67834
|
+
FieldOptions.prototype.target = 0;
|
|
67835
|
+
|
|
64177
67836
|
/**
|
|
64178
67837
|
* FieldOptions uninterpretedOption.
|
|
64179
67838
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -64236,6 +67895,12 @@
|
|
|
64236
67895
|
writer.uint32(/* id 10, wireType 0 =*/80).bool(message.weak);
|
|
64237
67896
|
if (message.unverifiedLazy != null && Object.hasOwnProperty.call(message, "unverifiedLazy"))
|
|
64238
67897
|
writer.uint32(/* id 15, wireType 0 =*/120).bool(message.unverifiedLazy);
|
|
67898
|
+
if (message.debugRedact != null && Object.hasOwnProperty.call(message, "debugRedact"))
|
|
67899
|
+
writer.uint32(/* id 16, wireType 0 =*/128).bool(message.debugRedact);
|
|
67900
|
+
if (message.retention != null && Object.hasOwnProperty.call(message, "retention"))
|
|
67901
|
+
writer.uint32(/* id 17, wireType 0 =*/136).int32(message.retention);
|
|
67902
|
+
if (message.target != null && Object.hasOwnProperty.call(message, "target"))
|
|
67903
|
+
writer.uint32(/* id 18, wireType 0 =*/144).int32(message.target);
|
|
64239
67904
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
64240
67905
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
64241
67906
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -64309,6 +67974,18 @@
|
|
|
64309
67974
|
message.weak = reader.bool();
|
|
64310
67975
|
break;
|
|
64311
67976
|
}
|
|
67977
|
+
case 16: {
|
|
67978
|
+
message.debugRedact = reader.bool();
|
|
67979
|
+
break;
|
|
67980
|
+
}
|
|
67981
|
+
case 17: {
|
|
67982
|
+
message.retention = reader.int32();
|
|
67983
|
+
break;
|
|
67984
|
+
}
|
|
67985
|
+
case 18: {
|
|
67986
|
+
message.target = reader.int32();
|
|
67987
|
+
break;
|
|
67988
|
+
}
|
|
64312
67989
|
case 999: {
|
|
64313
67990
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
64314
67991
|
message.uninterpretedOption = [];
|
|
@@ -64398,6 +68075,34 @@
|
|
|
64398
68075
|
if (message.weak != null && message.hasOwnProperty("weak"))
|
|
64399
68076
|
if (typeof message.weak !== "boolean")
|
|
64400
68077
|
return "weak: boolean expected";
|
|
68078
|
+
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
68079
|
+
if (typeof message.debugRedact !== "boolean")
|
|
68080
|
+
return "debugRedact: boolean expected";
|
|
68081
|
+
if (message.retention != null && message.hasOwnProperty("retention"))
|
|
68082
|
+
switch (message.retention) {
|
|
68083
|
+
default:
|
|
68084
|
+
return "retention: enum value expected";
|
|
68085
|
+
case 0:
|
|
68086
|
+
case 1:
|
|
68087
|
+
case 2:
|
|
68088
|
+
break;
|
|
68089
|
+
}
|
|
68090
|
+
if (message.target != null && message.hasOwnProperty("target"))
|
|
68091
|
+
switch (message.target) {
|
|
68092
|
+
default:
|
|
68093
|
+
return "target: enum value expected";
|
|
68094
|
+
case 0:
|
|
68095
|
+
case 1:
|
|
68096
|
+
case 2:
|
|
68097
|
+
case 3:
|
|
68098
|
+
case 4:
|
|
68099
|
+
case 5:
|
|
68100
|
+
case 6:
|
|
68101
|
+
case 7:
|
|
68102
|
+
case 8:
|
|
68103
|
+
case 9:
|
|
68104
|
+
break;
|
|
68105
|
+
}
|
|
64401
68106
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
64402
68107
|
if (!Array.isArray(message.uninterpretedOption))
|
|
64403
68108
|
return "uninterpretedOption: array expected";
|
|
@@ -64495,6 +68200,76 @@
|
|
|
64495
68200
|
message.deprecated = Boolean(object.deprecated);
|
|
64496
68201
|
if (object.weak != null)
|
|
64497
68202
|
message.weak = Boolean(object.weak);
|
|
68203
|
+
if (object.debugRedact != null)
|
|
68204
|
+
message.debugRedact = Boolean(object.debugRedact);
|
|
68205
|
+
switch (object.retention) {
|
|
68206
|
+
default:
|
|
68207
|
+
if (typeof object.retention === "number") {
|
|
68208
|
+
message.retention = object.retention;
|
|
68209
|
+
break;
|
|
68210
|
+
}
|
|
68211
|
+
break;
|
|
68212
|
+
case "RETENTION_UNKNOWN":
|
|
68213
|
+
case 0:
|
|
68214
|
+
message.retention = 0;
|
|
68215
|
+
break;
|
|
68216
|
+
case "RETENTION_RUNTIME":
|
|
68217
|
+
case 1:
|
|
68218
|
+
message.retention = 1;
|
|
68219
|
+
break;
|
|
68220
|
+
case "RETENTION_SOURCE":
|
|
68221
|
+
case 2:
|
|
68222
|
+
message.retention = 2;
|
|
68223
|
+
break;
|
|
68224
|
+
}
|
|
68225
|
+
switch (object.target) {
|
|
68226
|
+
default:
|
|
68227
|
+
if (typeof object.target === "number") {
|
|
68228
|
+
message.target = object.target;
|
|
68229
|
+
break;
|
|
68230
|
+
}
|
|
68231
|
+
break;
|
|
68232
|
+
case "TARGET_TYPE_UNKNOWN":
|
|
68233
|
+
case 0:
|
|
68234
|
+
message.target = 0;
|
|
68235
|
+
break;
|
|
68236
|
+
case "TARGET_TYPE_FILE":
|
|
68237
|
+
case 1:
|
|
68238
|
+
message.target = 1;
|
|
68239
|
+
break;
|
|
68240
|
+
case "TARGET_TYPE_EXTENSION_RANGE":
|
|
68241
|
+
case 2:
|
|
68242
|
+
message.target = 2;
|
|
68243
|
+
break;
|
|
68244
|
+
case "TARGET_TYPE_MESSAGE":
|
|
68245
|
+
case 3:
|
|
68246
|
+
message.target = 3;
|
|
68247
|
+
break;
|
|
68248
|
+
case "TARGET_TYPE_FIELD":
|
|
68249
|
+
case 4:
|
|
68250
|
+
message.target = 4;
|
|
68251
|
+
break;
|
|
68252
|
+
case "TARGET_TYPE_ONEOF":
|
|
68253
|
+
case 5:
|
|
68254
|
+
message.target = 5;
|
|
68255
|
+
break;
|
|
68256
|
+
case "TARGET_TYPE_ENUM":
|
|
68257
|
+
case 6:
|
|
68258
|
+
message.target = 6;
|
|
68259
|
+
break;
|
|
68260
|
+
case "TARGET_TYPE_ENUM_ENTRY":
|
|
68261
|
+
case 7:
|
|
68262
|
+
message.target = 7;
|
|
68263
|
+
break;
|
|
68264
|
+
case "TARGET_TYPE_SERVICE":
|
|
68265
|
+
case 8:
|
|
68266
|
+
message.target = 8;
|
|
68267
|
+
break;
|
|
68268
|
+
case "TARGET_TYPE_METHOD":
|
|
68269
|
+
case 9:
|
|
68270
|
+
message.target = 9;
|
|
68271
|
+
break;
|
|
68272
|
+
}
|
|
64498
68273
|
if (object.uninterpretedOption) {
|
|
64499
68274
|
if (!Array.isArray(object.uninterpretedOption))
|
|
64500
68275
|
throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected");
|
|
@@ -64583,6 +68358,9 @@
|
|
|
64583
68358
|
object.jstype = options.enums === String ? "JS_NORMAL" : 0;
|
|
64584
68359
|
object.weak = false;
|
|
64585
68360
|
object.unverifiedLazy = false;
|
|
68361
|
+
object.debugRedact = false;
|
|
68362
|
+
object.retention = options.enums === String ? "RETENTION_UNKNOWN" : 0;
|
|
68363
|
+
object.target = options.enums === String ? "TARGET_TYPE_UNKNOWN" : 0;
|
|
64586
68364
|
object[".google.api.resourceReference"] = null;
|
|
64587
68365
|
}
|
|
64588
68366
|
if (message.ctype != null && message.hasOwnProperty("ctype"))
|
|
@@ -64599,6 +68377,12 @@
|
|
|
64599
68377
|
object.weak = message.weak;
|
|
64600
68378
|
if (message.unverifiedLazy != null && message.hasOwnProperty("unverifiedLazy"))
|
|
64601
68379
|
object.unverifiedLazy = message.unverifiedLazy;
|
|
68380
|
+
if (message.debugRedact != null && message.hasOwnProperty("debugRedact"))
|
|
68381
|
+
object.debugRedact = message.debugRedact;
|
|
68382
|
+
if (message.retention != null && message.hasOwnProperty("retention"))
|
|
68383
|
+
object.retention = options.enums === String ? $root.google.protobuf.FieldOptions.OptionRetention[message.retention] === undefined ? message.retention : $root.google.protobuf.FieldOptions.OptionRetention[message.retention] : message.retention;
|
|
68384
|
+
if (message.target != null && message.hasOwnProperty("target"))
|
|
68385
|
+
object.target = options.enums === String ? $root.google.protobuf.FieldOptions.OptionTargetType[message.target] === undefined ? message.target : $root.google.protobuf.FieldOptions.OptionTargetType[message.target] : message.target;
|
|
64602
68386
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
64603
68387
|
object.uninterpretedOption = [];
|
|
64604
68388
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -64672,6 +68456,52 @@
|
|
|
64672
68456
|
return values;
|
|
64673
68457
|
})();
|
|
64674
68458
|
|
|
68459
|
+
/**
|
|
68460
|
+
* OptionRetention enum.
|
|
68461
|
+
* @name google.protobuf.FieldOptions.OptionRetention
|
|
68462
|
+
* @enum {number}
|
|
68463
|
+
* @property {number} RETENTION_UNKNOWN=0 RETENTION_UNKNOWN value
|
|
68464
|
+
* @property {number} RETENTION_RUNTIME=1 RETENTION_RUNTIME value
|
|
68465
|
+
* @property {number} RETENTION_SOURCE=2 RETENTION_SOURCE value
|
|
68466
|
+
*/
|
|
68467
|
+
FieldOptions.OptionRetention = (function() {
|
|
68468
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
68469
|
+
values[valuesById[0] = "RETENTION_UNKNOWN"] = 0;
|
|
68470
|
+
values[valuesById[1] = "RETENTION_RUNTIME"] = 1;
|
|
68471
|
+
values[valuesById[2] = "RETENTION_SOURCE"] = 2;
|
|
68472
|
+
return values;
|
|
68473
|
+
})();
|
|
68474
|
+
|
|
68475
|
+
/**
|
|
68476
|
+
* OptionTargetType enum.
|
|
68477
|
+
* @name google.protobuf.FieldOptions.OptionTargetType
|
|
68478
|
+
* @enum {number}
|
|
68479
|
+
* @property {number} TARGET_TYPE_UNKNOWN=0 TARGET_TYPE_UNKNOWN value
|
|
68480
|
+
* @property {number} TARGET_TYPE_FILE=1 TARGET_TYPE_FILE value
|
|
68481
|
+
* @property {number} TARGET_TYPE_EXTENSION_RANGE=2 TARGET_TYPE_EXTENSION_RANGE value
|
|
68482
|
+
* @property {number} TARGET_TYPE_MESSAGE=3 TARGET_TYPE_MESSAGE value
|
|
68483
|
+
* @property {number} TARGET_TYPE_FIELD=4 TARGET_TYPE_FIELD value
|
|
68484
|
+
* @property {number} TARGET_TYPE_ONEOF=5 TARGET_TYPE_ONEOF value
|
|
68485
|
+
* @property {number} TARGET_TYPE_ENUM=6 TARGET_TYPE_ENUM value
|
|
68486
|
+
* @property {number} TARGET_TYPE_ENUM_ENTRY=7 TARGET_TYPE_ENUM_ENTRY value
|
|
68487
|
+
* @property {number} TARGET_TYPE_SERVICE=8 TARGET_TYPE_SERVICE value
|
|
68488
|
+
* @property {number} TARGET_TYPE_METHOD=9 TARGET_TYPE_METHOD value
|
|
68489
|
+
*/
|
|
68490
|
+
FieldOptions.OptionTargetType = (function() {
|
|
68491
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
68492
|
+
values[valuesById[0] = "TARGET_TYPE_UNKNOWN"] = 0;
|
|
68493
|
+
values[valuesById[1] = "TARGET_TYPE_FILE"] = 1;
|
|
68494
|
+
values[valuesById[2] = "TARGET_TYPE_EXTENSION_RANGE"] = 2;
|
|
68495
|
+
values[valuesById[3] = "TARGET_TYPE_MESSAGE"] = 3;
|
|
68496
|
+
values[valuesById[4] = "TARGET_TYPE_FIELD"] = 4;
|
|
68497
|
+
values[valuesById[5] = "TARGET_TYPE_ONEOF"] = 5;
|
|
68498
|
+
values[valuesById[6] = "TARGET_TYPE_ENUM"] = 6;
|
|
68499
|
+
values[valuesById[7] = "TARGET_TYPE_ENUM_ENTRY"] = 7;
|
|
68500
|
+
values[valuesById[8] = "TARGET_TYPE_SERVICE"] = 8;
|
|
68501
|
+
values[valuesById[9] = "TARGET_TYPE_METHOD"] = 9;
|
|
68502
|
+
return values;
|
|
68503
|
+
})();
|
|
68504
|
+
|
|
64675
68505
|
return FieldOptions;
|
|
64676
68506
|
})();
|
|
64677
68507
|
|
|
@@ -64907,6 +68737,7 @@
|
|
|
64907
68737
|
* @interface IEnumOptions
|
|
64908
68738
|
* @property {boolean|null} [allowAlias] EnumOptions allowAlias
|
|
64909
68739
|
* @property {boolean|null} [deprecated] EnumOptions deprecated
|
|
68740
|
+
* @property {boolean|null} [deprecatedLegacyJsonFieldConflicts] EnumOptions deprecatedLegacyJsonFieldConflicts
|
|
64910
68741
|
* @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] EnumOptions uninterpretedOption
|
|
64911
68742
|
*/
|
|
64912
68743
|
|
|
@@ -64942,6 +68773,14 @@
|
|
|
64942
68773
|
*/
|
|
64943
68774
|
EnumOptions.prototype.deprecated = false;
|
|
64944
68775
|
|
|
68776
|
+
/**
|
|
68777
|
+
* EnumOptions deprecatedLegacyJsonFieldConflicts.
|
|
68778
|
+
* @member {boolean} deprecatedLegacyJsonFieldConflicts
|
|
68779
|
+
* @memberof google.protobuf.EnumOptions
|
|
68780
|
+
* @instance
|
|
68781
|
+
*/
|
|
68782
|
+
EnumOptions.prototype.deprecatedLegacyJsonFieldConflicts = false;
|
|
68783
|
+
|
|
64945
68784
|
/**
|
|
64946
68785
|
* EnumOptions uninterpretedOption.
|
|
64947
68786
|
* @member {Array.<google.protobuf.IUninterpretedOption>} uninterpretedOption
|
|
@@ -64978,6 +68817,8 @@
|
|
|
64978
68817
|
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allowAlias);
|
|
64979
68818
|
if (message.deprecated != null && Object.hasOwnProperty.call(message, "deprecated"))
|
|
64980
68819
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deprecated);
|
|
68820
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && Object.hasOwnProperty.call(message, "deprecatedLegacyJsonFieldConflicts"))
|
|
68821
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deprecatedLegacyJsonFieldConflicts);
|
|
64981
68822
|
if (message.uninterpretedOption != null && message.uninterpretedOption.length)
|
|
64982
68823
|
for (var i = 0; i < message.uninterpretedOption.length; ++i)
|
|
64983
68824
|
$root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim();
|
|
@@ -65023,6 +68864,10 @@
|
|
|
65023
68864
|
message.deprecated = reader.bool();
|
|
65024
68865
|
break;
|
|
65025
68866
|
}
|
|
68867
|
+
case 6: {
|
|
68868
|
+
message.deprecatedLegacyJsonFieldConflicts = reader.bool();
|
|
68869
|
+
break;
|
|
68870
|
+
}
|
|
65026
68871
|
case 999: {
|
|
65027
68872
|
if (!(message.uninterpretedOption && message.uninterpretedOption.length))
|
|
65028
68873
|
message.uninterpretedOption = [];
|
|
@@ -65070,6 +68915,9 @@
|
|
|
65070
68915
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
65071
68916
|
if (typeof message.deprecated !== "boolean")
|
|
65072
68917
|
return "deprecated: boolean expected";
|
|
68918
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
68919
|
+
if (typeof message.deprecatedLegacyJsonFieldConflicts !== "boolean")
|
|
68920
|
+
return "deprecatedLegacyJsonFieldConflicts: boolean expected";
|
|
65073
68921
|
if (message.uninterpretedOption != null && message.hasOwnProperty("uninterpretedOption")) {
|
|
65074
68922
|
if (!Array.isArray(message.uninterpretedOption))
|
|
65075
68923
|
return "uninterpretedOption: array expected";
|
|
@@ -65098,6 +68946,8 @@
|
|
|
65098
68946
|
message.allowAlias = Boolean(object.allowAlias);
|
|
65099
68947
|
if (object.deprecated != null)
|
|
65100
68948
|
message.deprecated = Boolean(object.deprecated);
|
|
68949
|
+
if (object.deprecatedLegacyJsonFieldConflicts != null)
|
|
68950
|
+
message.deprecatedLegacyJsonFieldConflicts = Boolean(object.deprecatedLegacyJsonFieldConflicts);
|
|
65101
68951
|
if (object.uninterpretedOption) {
|
|
65102
68952
|
if (!Array.isArray(object.uninterpretedOption))
|
|
65103
68953
|
throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected");
|
|
@@ -65129,11 +68979,14 @@
|
|
|
65129
68979
|
if (options.defaults) {
|
|
65130
68980
|
object.allowAlias = false;
|
|
65131
68981
|
object.deprecated = false;
|
|
68982
|
+
object.deprecatedLegacyJsonFieldConflicts = false;
|
|
65132
68983
|
}
|
|
65133
68984
|
if (message.allowAlias != null && message.hasOwnProperty("allowAlias"))
|
|
65134
68985
|
object.allowAlias = message.allowAlias;
|
|
65135
68986
|
if (message.deprecated != null && message.hasOwnProperty("deprecated"))
|
|
65136
68987
|
object.deprecated = message.deprecated;
|
|
68988
|
+
if (message.deprecatedLegacyJsonFieldConflicts != null && message.hasOwnProperty("deprecatedLegacyJsonFieldConflicts"))
|
|
68989
|
+
object.deprecatedLegacyJsonFieldConflicts = message.deprecatedLegacyJsonFieldConflicts;
|
|
65137
68990
|
if (message.uninterpretedOption && message.uninterpretedOption.length) {
|
|
65138
68991
|
object.uninterpretedOption = [];
|
|
65139
68992
|
for (var j = 0; j < message.uninterpretedOption.length; ++j)
|
|
@@ -67893,6 +71746,247 @@
|
|
|
67893
71746
|
return GeneratedCodeInfo;
|
|
67894
71747
|
})();
|
|
67895
71748
|
|
|
71749
|
+
protobuf.Duration = (function() {
|
|
71750
|
+
|
|
71751
|
+
/**
|
|
71752
|
+
* Properties of a Duration.
|
|
71753
|
+
* @memberof google.protobuf
|
|
71754
|
+
* @interface IDuration
|
|
71755
|
+
* @property {number|Long|null} [seconds] Duration seconds
|
|
71756
|
+
* @property {number|null} [nanos] Duration nanos
|
|
71757
|
+
*/
|
|
71758
|
+
|
|
71759
|
+
/**
|
|
71760
|
+
* Constructs a new Duration.
|
|
71761
|
+
* @memberof google.protobuf
|
|
71762
|
+
* @classdesc Represents a Duration.
|
|
71763
|
+
* @implements IDuration
|
|
71764
|
+
* @constructor
|
|
71765
|
+
* @param {google.protobuf.IDuration=} [properties] Properties to set
|
|
71766
|
+
*/
|
|
71767
|
+
function Duration(properties) {
|
|
71768
|
+
if (properties)
|
|
71769
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
71770
|
+
if (properties[keys[i]] != null)
|
|
71771
|
+
this[keys[i]] = properties[keys[i]];
|
|
71772
|
+
}
|
|
71773
|
+
|
|
71774
|
+
/**
|
|
71775
|
+
* Duration seconds.
|
|
71776
|
+
* @member {number|Long} seconds
|
|
71777
|
+
* @memberof google.protobuf.Duration
|
|
71778
|
+
* @instance
|
|
71779
|
+
*/
|
|
71780
|
+
Duration.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
71781
|
+
|
|
71782
|
+
/**
|
|
71783
|
+
* Duration nanos.
|
|
71784
|
+
* @member {number} nanos
|
|
71785
|
+
* @memberof google.protobuf.Duration
|
|
71786
|
+
* @instance
|
|
71787
|
+
*/
|
|
71788
|
+
Duration.prototype.nanos = 0;
|
|
71789
|
+
|
|
71790
|
+
/**
|
|
71791
|
+
* Creates a new Duration instance using the specified properties.
|
|
71792
|
+
* @function create
|
|
71793
|
+
* @memberof google.protobuf.Duration
|
|
71794
|
+
* @static
|
|
71795
|
+
* @param {google.protobuf.IDuration=} [properties] Properties to set
|
|
71796
|
+
* @returns {google.protobuf.Duration} Duration instance
|
|
71797
|
+
*/
|
|
71798
|
+
Duration.create = function create(properties) {
|
|
71799
|
+
return new Duration(properties);
|
|
71800
|
+
};
|
|
71801
|
+
|
|
71802
|
+
/**
|
|
71803
|
+
* Encodes the specified Duration message. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
71804
|
+
* @function encode
|
|
71805
|
+
* @memberof google.protobuf.Duration
|
|
71806
|
+
* @static
|
|
71807
|
+
* @param {google.protobuf.IDuration} message Duration message or plain object to encode
|
|
71808
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71809
|
+
* @returns {$protobuf.Writer} Writer
|
|
71810
|
+
*/
|
|
71811
|
+
Duration.encode = function encode(message, writer) {
|
|
71812
|
+
if (!writer)
|
|
71813
|
+
writer = $Writer.create();
|
|
71814
|
+
if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds"))
|
|
71815
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds);
|
|
71816
|
+
if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos"))
|
|
71817
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos);
|
|
71818
|
+
return writer;
|
|
71819
|
+
};
|
|
71820
|
+
|
|
71821
|
+
/**
|
|
71822
|
+
* Encodes the specified Duration message, length delimited. Does not implicitly {@link google.protobuf.Duration.verify|verify} messages.
|
|
71823
|
+
* @function encodeDelimited
|
|
71824
|
+
* @memberof google.protobuf.Duration
|
|
71825
|
+
* @static
|
|
71826
|
+
* @param {google.protobuf.IDuration} message Duration message or plain object to encode
|
|
71827
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
71828
|
+
* @returns {$protobuf.Writer} Writer
|
|
71829
|
+
*/
|
|
71830
|
+
Duration.encodeDelimited = function encodeDelimited(message, writer) {
|
|
71831
|
+
return this.encode(message, writer).ldelim();
|
|
71832
|
+
};
|
|
71833
|
+
|
|
71834
|
+
/**
|
|
71835
|
+
* Decodes a Duration message from the specified reader or buffer.
|
|
71836
|
+
* @function decode
|
|
71837
|
+
* @memberof google.protobuf.Duration
|
|
71838
|
+
* @static
|
|
71839
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71840
|
+
* @param {number} [length] Message length if known beforehand
|
|
71841
|
+
* @returns {google.protobuf.Duration} Duration
|
|
71842
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71843
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71844
|
+
*/
|
|
71845
|
+
Duration.decode = function decode(reader, length) {
|
|
71846
|
+
if (!(reader instanceof $Reader))
|
|
71847
|
+
reader = $Reader.create(reader);
|
|
71848
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Duration();
|
|
71849
|
+
while (reader.pos < end) {
|
|
71850
|
+
var tag = reader.uint32();
|
|
71851
|
+
switch (tag >>> 3) {
|
|
71852
|
+
case 1: {
|
|
71853
|
+
message.seconds = reader.int64();
|
|
71854
|
+
break;
|
|
71855
|
+
}
|
|
71856
|
+
case 2: {
|
|
71857
|
+
message.nanos = reader.int32();
|
|
71858
|
+
break;
|
|
71859
|
+
}
|
|
71860
|
+
default:
|
|
71861
|
+
reader.skipType(tag & 7);
|
|
71862
|
+
break;
|
|
71863
|
+
}
|
|
71864
|
+
}
|
|
71865
|
+
return message;
|
|
71866
|
+
};
|
|
71867
|
+
|
|
71868
|
+
/**
|
|
71869
|
+
* Decodes a Duration message from the specified reader or buffer, length delimited.
|
|
71870
|
+
* @function decodeDelimited
|
|
71871
|
+
* @memberof google.protobuf.Duration
|
|
71872
|
+
* @static
|
|
71873
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
71874
|
+
* @returns {google.protobuf.Duration} Duration
|
|
71875
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
71876
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
71877
|
+
*/
|
|
71878
|
+
Duration.decodeDelimited = function decodeDelimited(reader) {
|
|
71879
|
+
if (!(reader instanceof $Reader))
|
|
71880
|
+
reader = new $Reader(reader);
|
|
71881
|
+
return this.decode(reader, reader.uint32());
|
|
71882
|
+
};
|
|
71883
|
+
|
|
71884
|
+
/**
|
|
71885
|
+
* Verifies a Duration message.
|
|
71886
|
+
* @function verify
|
|
71887
|
+
* @memberof google.protobuf.Duration
|
|
71888
|
+
* @static
|
|
71889
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
71890
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
71891
|
+
*/
|
|
71892
|
+
Duration.verify = function verify(message) {
|
|
71893
|
+
if (typeof message !== "object" || message === null)
|
|
71894
|
+
return "object expected";
|
|
71895
|
+
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
71896
|
+
if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high)))
|
|
71897
|
+
return "seconds: integer|Long expected";
|
|
71898
|
+
if (message.nanos != null && message.hasOwnProperty("nanos"))
|
|
71899
|
+
if (!$util.isInteger(message.nanos))
|
|
71900
|
+
return "nanos: integer expected";
|
|
71901
|
+
return null;
|
|
71902
|
+
};
|
|
71903
|
+
|
|
71904
|
+
/**
|
|
71905
|
+
* Creates a Duration message from a plain object. Also converts values to their respective internal types.
|
|
71906
|
+
* @function fromObject
|
|
71907
|
+
* @memberof google.protobuf.Duration
|
|
71908
|
+
* @static
|
|
71909
|
+
* @param {Object.<string,*>} object Plain object
|
|
71910
|
+
* @returns {google.protobuf.Duration} Duration
|
|
71911
|
+
*/
|
|
71912
|
+
Duration.fromObject = function fromObject(object) {
|
|
71913
|
+
if (object instanceof $root.google.protobuf.Duration)
|
|
71914
|
+
return object;
|
|
71915
|
+
var message = new $root.google.protobuf.Duration();
|
|
71916
|
+
if (object.seconds != null)
|
|
71917
|
+
if ($util.Long)
|
|
71918
|
+
(message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false;
|
|
71919
|
+
else if (typeof object.seconds === "string")
|
|
71920
|
+
message.seconds = parseInt(object.seconds, 10);
|
|
71921
|
+
else if (typeof object.seconds === "number")
|
|
71922
|
+
message.seconds = object.seconds;
|
|
71923
|
+
else if (typeof object.seconds === "object")
|
|
71924
|
+
message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber();
|
|
71925
|
+
if (object.nanos != null)
|
|
71926
|
+
message.nanos = object.nanos | 0;
|
|
71927
|
+
return message;
|
|
71928
|
+
};
|
|
71929
|
+
|
|
71930
|
+
/**
|
|
71931
|
+
* Creates a plain object from a Duration message. Also converts values to other types if specified.
|
|
71932
|
+
* @function toObject
|
|
71933
|
+
* @memberof google.protobuf.Duration
|
|
71934
|
+
* @static
|
|
71935
|
+
* @param {google.protobuf.Duration} message Duration
|
|
71936
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
71937
|
+
* @returns {Object.<string,*>} Plain object
|
|
71938
|
+
*/
|
|
71939
|
+
Duration.toObject = function toObject(message, options) {
|
|
71940
|
+
if (!options)
|
|
71941
|
+
options = {};
|
|
71942
|
+
var object = {};
|
|
71943
|
+
if (options.defaults) {
|
|
71944
|
+
if ($util.Long) {
|
|
71945
|
+
var long = new $util.Long(0, 0, false);
|
|
71946
|
+
object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
71947
|
+
} else
|
|
71948
|
+
object.seconds = options.longs === String ? "0" : 0;
|
|
71949
|
+
object.nanos = 0;
|
|
71950
|
+
}
|
|
71951
|
+
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
71952
|
+
if (typeof message.seconds === "number")
|
|
71953
|
+
object.seconds = options.longs === String ? String(message.seconds) : message.seconds;
|
|
71954
|
+
else
|
|
71955
|
+
object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds;
|
|
71956
|
+
if (message.nanos != null && message.hasOwnProperty("nanos"))
|
|
71957
|
+
object.nanos = message.nanos;
|
|
71958
|
+
return object;
|
|
71959
|
+
};
|
|
71960
|
+
|
|
71961
|
+
/**
|
|
71962
|
+
* Converts this Duration to JSON.
|
|
71963
|
+
* @function toJSON
|
|
71964
|
+
* @memberof google.protobuf.Duration
|
|
71965
|
+
* @instance
|
|
71966
|
+
* @returns {Object.<string,*>} JSON object
|
|
71967
|
+
*/
|
|
71968
|
+
Duration.prototype.toJSON = function toJSON() {
|
|
71969
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
71970
|
+
};
|
|
71971
|
+
|
|
71972
|
+
/**
|
|
71973
|
+
* Gets the default type url for Duration
|
|
71974
|
+
* @function getTypeUrl
|
|
71975
|
+
* @memberof google.protobuf.Duration
|
|
71976
|
+
* @static
|
|
71977
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
71978
|
+
* @returns {string} The default type url
|
|
71979
|
+
*/
|
|
71980
|
+
Duration.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
71981
|
+
if (typeUrlPrefix === undefined) {
|
|
71982
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
71983
|
+
}
|
|
71984
|
+
return typeUrlPrefix + "/google.protobuf.Duration";
|
|
71985
|
+
};
|
|
71986
|
+
|
|
71987
|
+
return Duration;
|
|
71988
|
+
})();
|
|
71989
|
+
|
|
67896
71990
|
protobuf.FieldMask = (function() {
|
|
67897
71991
|
|
|
67898
71992
|
/**
|