|
66955 | 66955 | * @property {Array.<string>|null} [pattern] ResourceDescriptor pattern |
66956 | 66956 | * @property {string|null} [nameField] ResourceDescriptor nameField |
66957 | 66957 | * @property {google.api.ResourceDescriptor.History|null} [history] ResourceDescriptor history |
| 66958 | + * @property {string|null} [plural] ResourceDescriptor plural |
| 66959 | + * @property {string|null} [singular] ResourceDescriptor singular |
66958 | 66960 | */ |
66959 | 66961 |
|
66960 | 66962 | /** |
|
67005 | 67007 | */ |
67006 | 67008 | ResourceDescriptor.prototype.history = 0; |
67007 | 67009 |
|
| 67010 | + /** |
| 67011 | + * ResourceDescriptor plural. |
| 67012 | + * @member {string} plural |
| 67013 | + * @memberof google.api.ResourceDescriptor |
| 67014 | + * @instance |
| 67015 | + */ |
| 67016 | + ResourceDescriptor.prototype.plural = ""; |
| 67017 | + |
| 67018 | + /** |
| 67019 | + * ResourceDescriptor singular. |
| 67020 | + * @member {string} singular |
| 67021 | + * @memberof google.api.ResourceDescriptor |
| 67022 | + * @instance |
| 67023 | + */ |
| 67024 | + ResourceDescriptor.prototype.singular = ""; |
| 67025 | + |
67008 | 67026 | /** |
67009 | 67027 | * Creates a new ResourceDescriptor instance using the specified properties. |
67010 | 67028 | * @function create |
|
67038 | 67056 | writer.uint32(/* id 3, wireType 2 =*/26).string(message.nameField); |
67039 | 67057 | if (message.history != null && message.hasOwnProperty("history")) |
67040 | 67058 | writer.uint32(/* id 4, wireType 0 =*/32).int32(message.history); |
| 67059 | + if (message.plural != null && message.hasOwnProperty("plural")) |
| 67060 | + writer.uint32(/* id 5, wireType 2 =*/42).string(message.plural); |
| 67061 | + if (message.singular != null && message.hasOwnProperty("singular")) |
| 67062 | + writer.uint32(/* id 6, wireType 2 =*/50).string(message.singular); |
67041 | 67063 | return writer; |
67042 | 67064 | }; |
67043 | 67065 |
|
|
67086 | 67108 | case 4: |
67087 | 67109 | message.history = reader.int32(); |
67088 | 67110 | break; |
| 67111 | + case 5: |
| 67112 | + message.plural = reader.string(); |
| 67113 | + break; |
| 67114 | + case 6: |
| 67115 | + message.singular = reader.string(); |
| 67116 | + break; |
67089 | 67117 | default: |
67090 | 67118 | reader.skipType(tag & 7); |
67091 | 67119 | break; |
|
67143 | 67171 | case 2: |
67144 | 67172 | break; |
67145 | 67173 | } |
| 67174 | + if (message.plural != null && message.hasOwnProperty("plural")) |
| 67175 | + if (!$util.isString(message.plural)) |
| 67176 | + return "plural: string expected"; |
| 67177 | + if (message.singular != null && message.hasOwnProperty("singular")) |
| 67178 | + if (!$util.isString(message.singular)) |
| 67179 | + return "singular: string expected"; |
67146 | 67180 | return null; |
67147 | 67181 | }; |
67148 | 67182 |
|
|
67183 | 67217 | message.history = 2; |
67184 | 67218 | break; |
67185 | 67219 | } |
| 67220 | + if (object.plural != null) |
| 67221 | + message.plural = String(object.plural); |
| 67222 | + if (object.singular != null) |
| 67223 | + message.singular = String(object.singular); |
67186 | 67224 | return message; |
67187 | 67225 | }; |
67188 | 67226 |
|
|
67205 | 67243 | object.type = ""; |
67206 | 67244 | object.nameField = ""; |
67207 | 67245 | object.history = options.enums === String ? "HISTORY_UNSPECIFIED" : 0; |
| 67246 | + object.plural = ""; |
| 67247 | + object.singular = ""; |
67208 | 67248 | } |
67209 | 67249 | if (message.type != null && message.hasOwnProperty("type")) |
67210 | 67250 | object.type = message.type; |
|
67217 | 67257 | object.nameField = message.nameField; |
67218 | 67258 | if (message.history != null && message.hasOwnProperty("history")) |
67219 | 67259 | object.history = options.enums === String ? $root.google.api.ResourceDescriptor.History[message.history] : message.history; |
| 67260 | + if (message.plural != null && message.hasOwnProperty("plural")) |
| 67261 | + object.plural = message.plural; |
| 67262 | + if (message.singular != null && message.hasOwnProperty("singular")) |
| 67263 | + object.singular = message.singular; |
67220 | 67264 | return object; |
67221 | 67265 | }; |
67222 | 67266 |
|
|
71631 | 71675 | * @property {string|null} [phpMetadataNamespace] FileOptions phpMetadataNamespace |
71632 | 71676 | * @property {string|null} [rubyPackage] FileOptions rubyPackage |
71633 | 71677 | * @property {Array.<google.protobuf.IUninterpretedOption>|null} [uninterpretedOption] FileOptions uninterpretedOption |
| 71678 | + * @property {Array.<google.api.IResourceDescriptor>|null} [".google.api.resourceDefinition"] FileOptions .google.api.resourceDefinition |
71634 | 71679 | */ |
71635 | 71680 |
|
71636 | 71681 | /** |
|
71643 | 71688 | */ |
71644 | 71689 | function FileOptions(properties) { |
71645 | 71690 | this.uninterpretedOption = []; |
| 71691 | + this[".google.api.resourceDefinition"] = []; |
71646 | 71692 | if (properties) |
71647 | 71693 | for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) |
71648 | 71694 | if (properties[keys[i]] != null) |
|
71817 | 71863 | */ |
71818 | 71864 | FileOptions.prototype.uninterpretedOption = $util.emptyArray; |
71819 | 71865 |
|
| 71866 | + /** |
| 71867 | + * FileOptions .google.api.resourceDefinition. |
| 71868 | + * @member {Array.<google.api.IResourceDescriptor>} .google.api.resourceDefinition |
| 71869 | + * @memberof google.protobuf.FileOptions |
| 71870 | + * @instance |
| 71871 | + */ |
| 71872 | + FileOptions.prototype[".google.api.resourceDefinition"] = $util.emptyArray; |
| 71873 | + |
71820 | 71874 | /** |
71821 | 71875 | * Creates a new FileOptions instance using the specified properties. |
71822 | 71876 | * @function create |
|
71884 | 71938 | if (message.uninterpretedOption != null && message.uninterpretedOption.length) |
71885 | 71939 | for (var i = 0; i < message.uninterpretedOption.length; ++i) |
71886 | 71940 | $root.google.protobuf.UninterpretedOption.encode(message.uninterpretedOption[i], writer.uint32(/* id 999, wireType 2 =*/7994).fork()).ldelim(); |
| 71941 | + if (message[".google.api.resourceDefinition"] != null && message[".google.api.resourceDefinition"].length) |
| 71942 | + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) |
| 71943 | + $root.google.api.ResourceDescriptor.encode(message[".google.api.resourceDefinition"][i], writer.uint32(/* id 1053, wireType 2 =*/8426).fork()).ldelim(); |
71887 | 71944 | return writer; |
71888 | 71945 | }; |
71889 | 71946 |
|
|
71983 | 72040 | message.uninterpretedOption = []; |
71984 | 72041 | message.uninterpretedOption.push($root.google.protobuf.UninterpretedOption.decode(reader, reader.uint32())); |
71985 | 72042 | break; |
| 72043 | + case 1053: |
| 72044 | + if (!(message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length)) |
| 72045 | + message[".google.api.resourceDefinition"] = []; |
| 72046 | + message[".google.api.resourceDefinition"].push($root.google.api.ResourceDescriptor.decode(reader, reader.uint32())); |
| 72047 | + break; |
71986 | 72048 | default: |
71987 | 72049 | reader.skipType(tag & 7); |
71988 | 72050 | break; |
|
72093 | 72155 | return "uninterpretedOption." + error; |
72094 | 72156 | } |
72095 | 72157 | } |
| 72158 | + if (message[".google.api.resourceDefinition"] != null && message.hasOwnProperty(".google.api.resourceDefinition")) { |
| 72159 | + if (!Array.isArray(message[".google.api.resourceDefinition"])) |
| 72160 | + return ".google.api.resourceDefinition: array expected"; |
| 72161 | + for (var i = 0; i < message[".google.api.resourceDefinition"].length; ++i) { |
| 72162 | + var error = $root.google.api.ResourceDescriptor.verify(message[".google.api.resourceDefinition"][i]); |
| 72163 | + if (error) |
| 72164 | + return ".google.api.resourceDefinition." + error; |
| 72165 | + } |
| 72166 | + } |
72096 | 72167 | return null; |
72097 | 72168 | }; |
72098 | 72169 |
|
|
72170 | 72241 | message.uninterpretedOption[i] = $root.google.protobuf.UninterpretedOption.fromObject(object.uninterpretedOption[i]); |
72171 | 72242 | } |
72172 | 72243 | } |
| 72244 | + if (object[".google.api.resourceDefinition"]) { |
| 72245 | + if (!Array.isArray(object[".google.api.resourceDefinition"])) |
| 72246 | + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: array expected"); |
| 72247 | + message[".google.api.resourceDefinition"] = []; |
| 72248 | + for (var i = 0; i < object[".google.api.resourceDefinition"].length; ++i) { |
| 72249 | + if (typeof object[".google.api.resourceDefinition"][i] !== "object") |
| 72250 | + throw TypeError(".google.protobuf.FileOptions..google.api.resourceDefinition: object expected"); |
| 72251 | + message[".google.api.resourceDefinition"][i] = $root.google.api.ResourceDescriptor.fromObject(object[".google.api.resourceDefinition"][i]); |
| 72252 | + } |
| 72253 | + } |
72173 | 72254 | return message; |
72174 | 72255 | }; |
72175 | 72256 |
|
|
72186 | 72267 | if (!options) |
72187 | 72268 | options = {}; |
72188 | 72269 | var object = {}; |
72189 | | - if (options.arrays || options.defaults) |
| 72270 | + if (options.arrays || options.defaults) { |
72190 | 72271 | object.uninterpretedOption = []; |
| 72272 | + object[".google.api.resourceDefinition"] = []; |
| 72273 | + } |
72191 | 72274 | if (options.defaults) { |
72192 | 72275 | object.javaPackage = ""; |
72193 | 72276 | object.javaOuterClassname = ""; |
|
72255 | 72338 | for (var j = 0; j < message.uninterpretedOption.length; ++j) |
72256 | 72339 | object.uninterpretedOption[j] = $root.google.protobuf.UninterpretedOption.toObject(message.uninterpretedOption[j], options); |
72257 | 72340 | } |
| 72341 | + if (message[".google.api.resourceDefinition"] && message[".google.api.resourceDefinition"].length) { |
| 72342 | + object[".google.api.resourceDefinition"] = []; |
| 72343 | + for (var j = 0; j < message[".google.api.resourceDefinition"].length; ++j) |
| 72344 | + object[".google.api.resourceDefinition"][j] = $root.google.api.ResourceDescriptor.toObject(message[".google.api.resourceDefinition"][j], options); |
| 72345 | + } |
72258 | 72346 | return object; |
72259 | 72347 | }; |
72260 | 72348 |
|
|
0 commit comments