@@ -26,6 +26,7 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLi
26
26
registry .add (com .google .api .ClientProto .methodSignature );
27
27
registry .add (com .google .api .ClientProto .defaultHost );
28
28
registry .add (com .google .api .ClientProto .oauthScopes );
29
+ registry .add (com .google .api .ClientProto .apiVersion );
29
30
}
30
31
31
32
public static void registerAllExtensions (com .google .protobuf .ExtensionRegistry registry ) {
@@ -141,6 +142,35 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r
141
142
com .google .protobuf .GeneratedMessage .newFileScopedGeneratedExtension (
142
143
java .lang .String .class , null );
143
144
145
+ public static final int API_VERSION_FIELD_NUMBER = 525000001 ;
146
+ /**
147
+ *
148
+ *
149
+ * <pre>
150
+ * The API version of this service, which should be sent by version-aware
151
+ * clients to the service. This allows services to abide by the schema and
152
+ * behavior of the service at the time this API version was deployed.
153
+ * The format of the API version must be treated as opaque by clients.
154
+ * Services may use a format with an apparent structure, but clients must
155
+ * not rely on this to determine components within an API version, or attempt
156
+ * to construct other valid API versions. Note that this is for upcoming
157
+ * functionality and may not be implemented for all services.
158
+ *
159
+ * Example:
160
+ *
161
+ * service Foo {
162
+ * option (google.api.api_version) = "v1_20230821_preview";
163
+ * }
164
+ * </pre>
165
+ *
166
+ * <code>extend .google.protobuf.ServiceOptions { ... }</code>
167
+ */
168
+ public static final com .google .protobuf .GeneratedMessage .GeneratedExtension <
169
+ com .google .protobuf .DescriptorProtos .ServiceOptions , java .lang .String >
170
+ apiVersion =
171
+ com .google .protobuf .GeneratedMessage .newFileScopedGeneratedExtension (
172
+ java .lang .String .class , null );
173
+
144
174
static final com .google .protobuf .Descriptors .Descriptor
145
175
internal_static_google_api_CommonLanguageSettings_descriptor ;
146
176
static final com .google .protobuf .GeneratedMessageV3 .FieldAccessorTable
@@ -233,7 +263,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
233
263
+ "2\032 .google.api.DotnetSettings\022 /\n \r ruby_set"
234
264
+ "tings\030 \033 \001 (\013 2\030 .google.api.RubySettings\022 +\n "
235
265
+ "\013 go_settings\030 \034 \001 (\013 2\026 .google.api.GoSettin"
236
- + "gs\" \376 \002 \n \n Publishing\022 3\n \017 method_settings\030 \002 \003 "
266
+ + "gs\" \250 \003 \n \n Publishing\022 3\n \017 method_settings\030 \002 \003 "
237
267
+ "(\013 2\032 .google.api.MethodSettings\022 \025 \n \r new_is"
238
268
+ "sue_uri\030 e \001 (\t \022 \031 \n \021 documentation_uri\030 f \001 (\t "
239
269
+ "\022 \026 \n \016 api_short_name\030 g \001 (\t \022 \024 \n \014 github_label"
@@ -242,56 +272,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
242
272
+ " \001 (\016 2%.google.api.ClientLibraryOrganizat"
243
273
+ "ion\022 ;\n \020 library_settings\030 m \003 (\013 2!.google.a"
244
274
+ "pi.ClientLibrarySettings\022 )\n !proto_refere"
245
- + "nce_documentation_uri\030 n \001 (\t \" \343 \001 \n \014 JavaSett"
246
- + "ings\022 \027 \n \017 library_package\030 \001 \001 (\t \022 L\n \023 service"
247
- + "_class_names\030 \002 \003 (\013 2/.google.api.JavaSett"
248
- + "ings.ServiceClassNamesEntry\022 2\n \006 common\030 \003 "
249
- + "\001 (\013 2\" .google.api.CommonLanguageSettings\032 "
250
- + "8\n \026 ServiceClassNamesEntry\022 \013 \n \003 key\030 \001 \001 (\t \022 \r "
251
- + "\n \005 value\030 \002 \001 (\t :\002 8\001 \" A\n \013 CppSettings\022 2\n \006 comm"
252
- + "on\030 \001 \001 (\013 2\" .google.api.CommonLanguageSett"
253
- + "ings\" A\n \013 PhpSettings\022 2\n \006 common\030 \001 \001 (\013 2\" .go"
254
- + "ogle.api.CommonLanguageSettings\" D\n \016 Pytho"
255
- + "nSettings\022 2\n \006 common\030 \001 \001 (\013 2\" .google.api.C"
256
- + "ommonLanguageSettings\" B\n \014 NodeSettings\022 2\n "
257
- + "\006 common\030 \001 \001 (\013 2\" .google.api.CommonLanguag"
258
- + "eSettings\" \252 \003 \n \016 DotnetSettings\022 2\n \006 common\030 \001 "
259
- + " \001 (\013 2\" .google.api.CommonLanguageSettings"
260
- + "\022 I\n \020 renamed_services\030 \002 \003 (\013 2/.google.api."
261
- + "DotnetSettings.RenamedServicesEntry\022 K\n \021 r"
262
- + "enamed_resources\030 \003 \003 (\013 20.google.api.Dotn"
263
- + "etSettings.RenamedResourcesEntry\022 \031 \n \021 igno"
264
- + "red_resources\030 \004 \003 (\t \022 \n \030 forced_namespace_"
265
- + "aliases\030 \005 \003 (\t \022 \036 \n \026 handwritten_signatures\030 "
266
- + "\006 \003 (\t \032 6\n \024 RenamedServicesEntry\022 \013 \n \003 key\030 \001 \001 "
267
- + "(\t \022 \r \n \005 value\030 \002 \001 (\t :\002 8\001 \032 7\n \025 RenamedResource"
268
- + "sEntry\022 \013 \n \003 key\030 \001 \001 (\t \022 \r \n \005 value\030 \002 \001 (\t :\002 8\001 \" B"
269
- + "\n \014 RubySettings\022 2\n \006 common\030 \001 \001 (\013 2\" .google."
270
- + "api.CommonLanguageSettings\" @\n \n GoSettings"
271
- + "\022 2\n \006 common\030 \001 \001 (\013 2\" .google.api.CommonLang"
272
- + "uageSettings\" \317 \002 \n \016 MethodSettings\022 \020 \n \010 selec"
273
- + "tor\030 \001 \001 (\t \022 <\n \014 long_running\030 \002 \001 (\013 2&.google"
274
- + ".api.MethodSettings.LongRunning\022 \035 \n \025 auto_"
275
- + "populated_fields\030 \003 \003 (\t \032 \315 \001 \n \013 LongRunning\022 5"
276
- + "\n \022 initial_poll_delay\030 \001 \001 (\013 2\031 .google.prot"
277
- + "obuf.Duration\022 \035 \n \025 poll_delay_multiplier\030 \002 "
278
- + " \001 (\002 \022 1\n \016 max_poll_delay\030 \003 \001 (\013 2\031 .google.pr"
279
- + "otobuf.Duration\022 5\n \022 total_poll_timeout\030 \004 "
280
- + "\001 (\013 2\031 .google.protobuf.Duration*\243 \001 \n \031 Clien"
281
- + "tLibraryOrganization\022 +\n \' CLIENT_LIBRARY_O"
282
- + "RGANIZATION_UNSPECIFIED\020 \000 \022 \t \n \005 CLOUD\020 \001 \022 \007 \n \003 "
283
- + "ADS\020 \002 \022 \n \n \006 PHOTOS\020 \003 \022 \017 \n \013 STREET_VIEW\020 \004 \022 \014 \n \010 SH"
284
- + "OPPING\020 \005 \022 \007 \n \003 GEO\020 \006 \022 \021 \n \r GENERATIVE_AI\020 \007 *g\n \030 "
285
- + "ClientLibraryDestination\022 *\n &CLIENT_LIBRA"
286
- + "RY_DESTINATION_UNSPECIFIED\020 \000 \022 \n \n \006 GITHUB\020 \n "
287
- + "\022 \023 \n \017 PACKAGE_MANAGER\020 \024 :9\n \020 method_signatur"
288
- + "e\022 \036 .google.protobuf.MethodOptions\030 \233 \010 \003 (\t "
289
- + ":6\n \014 default_host\022 \037 .google.protobuf.Servi"
290
- + "ceOptions\030 \231 \010 \001 (\t :6\n \014 oauth_scopes\022 \037 .googl"
291
- + "e.protobuf.ServiceOptions\030 \232 \010 \001 (\t Bi\n \016 com."
292
- + "google.apiB\013 ClientProtoP\001 ZAgoogle.golang"
293
- + ".org/genproto/googleapis/api/annotations"
294
- + ";annotations\242 \002 \004 GAPIb\006 proto3"
275
+ + "nce_documentation_uri\030 n \001 (\t \022 (\n rest_refe"
276
+ + "rence_documentation_uri\030 o \001 (\t \" \343 \001 \n \014 JavaSe"
277
+ + "ttings\022 \027 \n \017 library_package\030 \001 \001 (\t \022 L\n \023 servi"
278
+ + "ce_class_names\030 \002 \003 (\013 2/.google.api.JavaSe"
279
+ + "ttings.ServiceClassNamesEntry\022 2\n \006 common\030 "
280
+ + "\003 \001 (\013 2\" .google.api.CommonLanguageSetting"
281
+ + "s\032 8\n \026 ServiceClassNamesEntry\022 \013 \n \003 key\030 \001 \001 (\t "
282
+ + "\022 \r \n \005 value\030 \002 \001 (\t :\002 8\001 \" A\n \013 CppSettings\022 2\n \006 co"
283
+ + "mmon\030 \001 \001 (\013 2\" .google.api.CommonLanguageSe"
284
+ + "ttings\" A\n \013 PhpSettings\022 2\n \006 common\030 \001 \001 (\013 2\" ."
285
+ + "google.api.CommonLanguageSettings\" D\n \016 Pyt"
286
+ + "honSettings\022 2\n \006 common\030 \001 \001 (\013 2\" .google.api"
287
+ + ".CommonLanguageSettings\" B\n \014 NodeSettings\022 "
288
+ + "2\n \006 common\030 \001 \001 (\013 2\" .google.api.CommonLangu"
289
+ + "ageSettings\" \252 \003 \n \016 DotnetSettings\022 2\n \006 common"
290
+ + "\030 \001 \001 (\013 2\" .google.api.CommonLanguageSettin"
291
+ + "gs\022 I\n \020 renamed_services\030 \002 \003 (\013 2/.google.ap"
292
+ + "i.DotnetSettings.RenamedServicesEntry\022 K\n "
293
+ + "\021 renamed_resources\030 \003 \003 (\013 20.google.api.Do"
294
+ + "tnetSettings.RenamedResourcesEntry\022 \031 \n \021 ig"
295
+ + "nored_resources\030 \004 \003 (\t \022 \n \030 forced_namespac"
296
+ + "e_aliases\030 \005 \003 (\t \022 \036 \n \026 handwritten_signature"
297
+ + "s\030 \006 \003 (\t \032 6\n \024 RenamedServicesEntry\022 \013 \n \003 key\030 \001 "
298
+ + " \001 (\t \022 \r \n \005 value\030 \002 \001 (\t :\002 8\001 \032 7\n \025 RenamedResour"
299
+ + "cesEntry\022 \013 \n \003 key\030 \001 \001 (\t \022 \r \n \005 value\030 \002 \001 (\t :\002 8\001 "
300
+ + "\" B\n \014 RubySettings\022 2\n \006 common\030 \001 \001 (\013 2\" .googl"
301
+ + "e.api.CommonLanguageSettings\" @\n \n GoSettin"
302
+ + "gs\022 2\n \006 common\030 \001 \001 (\013 2\" .google.api.CommonLa"
303
+ + "nguageSettings\" \317 \002 \n \016 MethodSettings\022 \020 \n \010 sel"
304
+ + "ector\030 \001 \001 (\t \022 <\n \014 long_running\030 \002 \001 (\013 2&.goog"
305
+ + "le.api.MethodSettings.LongRunning\022 \035 \n \025 aut"
306
+ + "o_populated_fields\030 \003 \003 (\t \032 \315 \001 \n \013 LongRunning"
307
+ + "\022 5\n \022 initial_poll_delay\030 \001 \001 (\013 2\031 .google.pr"
308
+ + "otobuf.Duration\022 \035 \n \025 poll_delay_multiplier"
309
+ + "\030 \002 \001 (\002 \022 1\n \016 max_poll_delay\030 \003 \001 (\013 2\031 .google."
310
+ + "protobuf.Duration\022 5\n \022 total_poll_timeout\030 "
311
+ + "\004 \001 (\013 2\031 .google.protobuf.Duration*\243 \001 \n \031 Cli"
312
+ + "entLibraryOrganization\022 +\n \' CLIENT_LIBRARY"
313
+ + "_ORGANIZATION_UNSPECIFIED\020 \000 \022 \t \n \005 CLOUD\020 \001 \022 \007 "
314
+ + "\n \003 ADS\020 \002 \022 \n \n \006 PHOTOS\020 \003 \022 \017 \n \013 STREET_VIEW\020 \004 \022 \014 \n \010 "
315
+ + "SHOPPING\020 \005 \022 \007 \n \003 GEO\020 \006 \022 \021 \n \r GENERATIVE_AI\020 \007 *g"
316
+ + "\n \030 ClientLibraryDestination\022 *\n &CLIENT_LIB"
317
+ + "RARY_DESTINATION_UNSPECIFIED\020 \000 \022 \n \n \006 GITHUB"
318
+ + "\020 \n \022 \023 \n \017 PACKAGE_MANAGER\020 \024 :9\n \020 method_signat"
319
+ + "ure\022 \036 .google.protobuf.MethodOptions\030 \233 \010 \003 "
320
+ + "(\t :6\n \014 default_host\022 \037 .google.protobuf.Ser"
321
+ + "viceOptions\030 \231 \010 \001 (\t :6\n \014 oauth_scopes\022 \037 .goo"
322
+ + "gle.protobuf.ServiceOptions\030 \232 \010 \001 (\t :8\n \013 ap"
323
+ + "i_version\022 \037 .google.protobuf.ServiceOptio"
324
+ + "ns\030 \301 \272 \253 \372 \001 \001 (\t Bi\n \016 com.google.apiB\013 ClientPr"
325
+ + "otoP\001 ZAgoogle.golang.org/genproto/google"
326
+ + "apis/api/annotations;annotations\242 \002 \004 GAPIb"
327
+ + "\006 proto3"
295
328
};
296
329
descriptor =
297
330
com .google .protobuf .Descriptors .FileDescriptor .internalBuildGeneratedFileFrom (
@@ -342,6 +375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
342
375
"Organization" ,
343
376
"LibrarySettings" ,
344
377
"ProtoReferenceDocumentationUri" ,
378
+ "RestReferenceDocumentationUri" ,
345
379
});
346
380
internal_static_google_api_JavaSettings_descriptor = getDescriptor ().getMessageTypes ().get (3 );
347
381
internal_static_google_api_JavaSettings_fieldAccessorTable =
@@ -447,6 +481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
447
481
methodSignature .internalInit (descriptor .getExtensions ().get (0 ));
448
482
defaultHost .internalInit (descriptor .getExtensions ().get (1 ));
449
483
oauthScopes .internalInit (descriptor .getExtensions ().get (2 ));
484
+ apiVersion .internalInit (descriptor .getExtensions ().get (3 ));
450
485
com .google .api .LaunchStageProto .getDescriptor ();
451
486
com .google .protobuf .DescriptorProtos .getDescriptor ();
452
487
com .google .protobuf .DurationProto .getDescriptor ();
0 commit comments