google-cloud-app_optimize-v1beta 0.a → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +154 -8
  5. data/lib/google/cloud/app_optimize/v1beta/version.rb +7 -2
  6. data/lib/google/cloud/appoptimize/v1beta/app_optimize/client.rb +959 -0
  7. data/lib/google/cloud/appoptimize/v1beta/app_optimize/credentials.rb +47 -0
  8. data/lib/google/cloud/appoptimize/v1beta/app_optimize/operations.rb +841 -0
  9. data/lib/google/cloud/appoptimize/v1beta/app_optimize/paths.rb +102 -0
  10. data/lib/google/cloud/appoptimize/v1beta/app_optimize/rest/client.rb +889 -0
  11. data/lib/google/cloud/appoptimize/v1beta/app_optimize/rest/operations.rb +925 -0
  12. data/lib/google/cloud/appoptimize/v1beta/app_optimize/rest/service_stub.rb +388 -0
  13. data/lib/google/cloud/appoptimize/v1beta/app_optimize/rest.rb +54 -0
  14. data/lib/google/cloud/appoptimize/v1beta/app_optimize.rb +56 -0
  15. data/lib/google/cloud/appoptimize/v1beta/app_optimize_pb.rb +40 -0
  16. data/lib/google/cloud/appoptimize/v1beta/app_optimize_services_pb.rb +57 -0
  17. data/lib/google/cloud/appoptimize/v1beta/bindings_override.rb +75 -0
  18. data/lib/google/cloud/appoptimize/v1beta/rest.rb +38 -0
  19. data/lib/google/cloud/appoptimize/v1beta.rb +45 -0
  20. data/lib/google-cloud-app_optimize-v1beta.rb +21 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/client.rb +593 -0
  23. data/proto_docs/google/api/field_behavior.rb +85 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/api/resource.rb +227 -0
  26. data/proto_docs/google/cloud/appoptimize/v1beta/app_optimize.rb +328 -0
  27. data/proto_docs/google/longrunning/operations.rb +191 -0
  28. data/proto_docs/google/protobuf/any.rb +145 -0
  29. data/proto_docs/google/protobuf/duration.rb +98 -0
  30. data/proto_docs/google/protobuf/empty.rb +34 -0
  31. data/proto_docs/google/protobuf/struct.rb +108 -0
  32. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  33. data/proto_docs/google/rpc/status.rb +48 -0
  34. metadata +83 -9
@@ -0,0 +1,593 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # Required information for every language.
23
+ # @!attribute [rw] reference_docs_uri
24
+ # @deprecated This field is deprecated and may be removed in the next major version update.
25
+ # @return [::String]
26
+ # Link to automatically generated reference documentation. Example:
27
+ # https://cloud.google.com/nodejs/docs/reference/asset/latest
28
+ # @!attribute [rw] destinations
29
+ # @return [::Array<::Google::Api::ClientLibraryDestination>]
30
+ # The destination where API teams want this client library to be published.
31
+ # @!attribute [rw] selective_gapic_generation
32
+ # @return [::Google::Api::SelectiveGapicGeneration]
33
+ # Configuration for which RPCs should be generated in the GAPIC client.
34
+ #
35
+ # Note: This field should not be used in most cases.
36
+ class CommonLanguageSettings
37
+ include ::Google::Protobuf::MessageExts
38
+ extend ::Google::Protobuf::MessageExts::ClassMethods
39
+ end
40
+
41
+ # Details about how and where to publish client libraries.
42
+ # @!attribute [rw] version
43
+ # @return [::String]
44
+ # Version of the API to apply these settings to. This is the full protobuf
45
+ # package for the API, ending in the version element.
46
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
47
+ # @!attribute [rw] launch_stage
48
+ # @return [::Google::Api::LaunchStage]
49
+ # Launch stage of this version of the API.
50
+ # @!attribute [rw] rest_numeric_enums
51
+ # @return [::Boolean]
52
+ # When using transport=rest, the client request will encode enums as
53
+ # numbers rather than strings.
54
+ # @!attribute [rw] java_settings
55
+ # @return [::Google::Api::JavaSettings]
56
+ # Settings for legacy Java features, supported in the Service YAML.
57
+ # @!attribute [rw] cpp_settings
58
+ # @return [::Google::Api::CppSettings]
59
+ # Settings for C++ client libraries.
60
+ # @!attribute [rw] php_settings
61
+ # @return [::Google::Api::PhpSettings]
62
+ # Settings for PHP client libraries.
63
+ # @!attribute [rw] python_settings
64
+ # @return [::Google::Api::PythonSettings]
65
+ # Settings for Python client libraries.
66
+ # @!attribute [rw] node_settings
67
+ # @return [::Google::Api::NodeSettings]
68
+ # Settings for Node client libraries.
69
+ # @!attribute [rw] dotnet_settings
70
+ # @return [::Google::Api::DotnetSettings]
71
+ # Settings for .NET client libraries.
72
+ # @!attribute [rw] ruby_settings
73
+ # @return [::Google::Api::RubySettings]
74
+ # Settings for Ruby client libraries.
75
+ # @!attribute [rw] go_settings
76
+ # @return [::Google::Api::GoSettings]
77
+ # Settings for Go client libraries.
78
+ class ClientLibrarySettings
79
+ include ::Google::Protobuf::MessageExts
80
+ extend ::Google::Protobuf::MessageExts::ClassMethods
81
+ end
82
+
83
+ # This message configures the settings for publishing [Google Cloud Client
84
+ # libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
85
+ # generated from the service config.
86
+ # @!attribute [rw] method_settings
87
+ # @return [::Array<::Google::Api::MethodSettings>]
88
+ # A list of API method settings, e.g. the behavior for methods that use the
89
+ # long-running operation pattern.
90
+ # @!attribute [rw] new_issue_uri
91
+ # @return [::String]
92
+ # Link to a *public* URI where users can report issues. Example:
93
+ # https://issuetracker.google.com/issues/new?component=190865&template=1161103
94
+ # @!attribute [rw] documentation_uri
95
+ # @return [::String]
96
+ # Link to product home page. Example:
97
+ # https://cloud.google.com/asset-inventory/docs/overview
98
+ # @!attribute [rw] api_short_name
99
+ # @return [::String]
100
+ # Used as a tracking tag when collecting data about the APIs developer
101
+ # relations artifacts like docs, packages delivered to package managers,
102
+ # etc. Example: "speech".
103
+ # @!attribute [rw] github_label
104
+ # @return [::String]
105
+ # GitHub label to apply to issues and pull requests opened for this API.
106
+ # @!attribute [rw] codeowner_github_teams
107
+ # @return [::Array<::String>]
108
+ # GitHub teams to be added to CODEOWNERS in the directory in GitHub
109
+ # containing source code for the client libraries for this API.
110
+ # @!attribute [rw] doc_tag_prefix
111
+ # @return [::String]
112
+ # A prefix used in sample code when demarking regions to be included in
113
+ # documentation.
114
+ # @!attribute [rw] organization
115
+ # @return [::Google::Api::ClientLibraryOrganization]
116
+ # For whom the client library is being published.
117
+ # @!attribute [rw] library_settings
118
+ # @return [::Array<::Google::Api::ClientLibrarySettings>]
119
+ # Client library settings. If the same version string appears multiple
120
+ # times in this list, then the last one wins. Settings from earlier
121
+ # settings with the same version string are discarded.
122
+ # @!attribute [rw] proto_reference_documentation_uri
123
+ # @return [::String]
124
+ # Optional link to proto reference documentation. Example:
125
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
126
+ # @!attribute [rw] rest_reference_documentation_uri
127
+ # @return [::String]
128
+ # Optional link to REST reference documentation. Example:
129
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
130
+ class Publishing
131
+ include ::Google::Protobuf::MessageExts
132
+ extend ::Google::Protobuf::MessageExts::ClassMethods
133
+ end
134
+
135
+ # Settings for Java client libraries.
136
+ # @!attribute [rw] library_package
137
+ # @return [::String]
138
+ # The package name to use in Java. Clobbers the java_package option
139
+ # set in the protobuf. This should be used **only** by APIs
140
+ # who have already set the language_settings.java.package_name" field
141
+ # in gapic.yaml. API teams should use the protobuf java_package option
142
+ # where possible.
143
+ #
144
+ # Example of a YAML configuration::
145
+ #
146
+ # publishing:
147
+ # library_settings:
148
+ # java_settings:
149
+ # library_package: com.google.cloud.pubsub.v1
150
+ # @!attribute [rw] service_class_names
151
+ # @return [::Google::Protobuf::Map{::String => ::String}]
152
+ # Configure the Java class name to use instead of the service's for its
153
+ # corresponding generated GAPIC client. Keys are fully-qualified
154
+ # service names as they appear in the protobuf (including the full
155
+ # the language_settings.java.interface_names" field in gapic.yaml. API
156
+ # teams should otherwise use the service name as it appears in the
157
+ # protobuf.
158
+ #
159
+ # Example of a YAML configuration::
160
+ #
161
+ # publishing:
162
+ # java_settings:
163
+ # service_class_names:
164
+ # - google.pubsub.v1.Publisher: TopicAdmin
165
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
166
+ # @!attribute [rw] common
167
+ # @return [::Google::Api::CommonLanguageSettings]
168
+ # Some settings.
169
+ class JavaSettings
170
+ include ::Google::Protobuf::MessageExts
171
+ extend ::Google::Protobuf::MessageExts::ClassMethods
172
+
173
+ # @!attribute [rw] key
174
+ # @return [::String]
175
+ # @!attribute [rw] value
176
+ # @return [::String]
177
+ class ServiceClassNamesEntry
178
+ include ::Google::Protobuf::MessageExts
179
+ extend ::Google::Protobuf::MessageExts::ClassMethods
180
+ end
181
+ end
182
+
183
+ # Settings for C++ client libraries.
184
+ # @!attribute [rw] common
185
+ # @return [::Google::Api::CommonLanguageSettings]
186
+ # Some settings.
187
+ class CppSettings
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
+ end
191
+
192
+ # Settings for Php client libraries.
193
+ # @!attribute [rw] common
194
+ # @return [::Google::Api::CommonLanguageSettings]
195
+ # Some settings.
196
+ # @!attribute [rw] library_package
197
+ # @return [::String]
198
+ # The package name to use in Php. Clobbers the php_namespace option
199
+ # set in the protobuf. This should be used **only** by APIs
200
+ # who have already set the language_settings.php.package_name" field
201
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
202
+ # where possible.
203
+ #
204
+ # Example of a YAML configuration::
205
+ #
206
+ # publishing:
207
+ # library_settings:
208
+ # php_settings:
209
+ # library_package: Google\Cloud\PubSub\V1
210
+ class PhpSettings
211
+ include ::Google::Protobuf::MessageExts
212
+ extend ::Google::Protobuf::MessageExts::ClassMethods
213
+ end
214
+
215
+ # Settings for Python client libraries.
216
+ # @!attribute [rw] common
217
+ # @return [::Google::Api::CommonLanguageSettings]
218
+ # Some settings.
219
+ # @!attribute [rw] experimental_features
220
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
221
+ # Experimental features to be included during client library generation.
222
+ class PythonSettings
223
+ include ::Google::Protobuf::MessageExts
224
+ extend ::Google::Protobuf::MessageExts::ClassMethods
225
+
226
+ # Experimental features to be included during client library generation.
227
+ # These fields will be deprecated once the feature graduates and is enabled
228
+ # by default.
229
+ # @!attribute [rw] rest_async_io_enabled
230
+ # @return [::Boolean]
231
+ # Enables generation of asynchronous REST clients if `rest` transport is
232
+ # enabled. By default, asynchronous REST clients will not be generated.
233
+ # This feature will be enabled by default 1 month after launching the
234
+ # feature in preview packages.
235
+ # @!attribute [rw] protobuf_pythonic_types_enabled
236
+ # @return [::Boolean]
237
+ # Enables generation of protobuf code using new types that are more
238
+ # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
239
+ # enabled by default 1 month after launching the feature in preview
240
+ # packages.
241
+ # @!attribute [rw] unversioned_package_disabled
242
+ # @return [::Boolean]
243
+ # Disables generation of an unversioned Python package for this client
244
+ # library. This means that the module names will need to be versioned in
245
+ # import statements. For example `import google.cloud.library_v2` instead
246
+ # of `import google.cloud.library`.
247
+ class ExperimentalFeatures
248
+ include ::Google::Protobuf::MessageExts
249
+ extend ::Google::Protobuf::MessageExts::ClassMethods
250
+ end
251
+ end
252
+
253
+ # Settings for Node client libraries.
254
+ # @!attribute [rw] common
255
+ # @return [::Google::Api::CommonLanguageSettings]
256
+ # Some settings.
257
+ class NodeSettings
258
+ include ::Google::Protobuf::MessageExts
259
+ extend ::Google::Protobuf::MessageExts::ClassMethods
260
+ end
261
+
262
+ # Settings for Dotnet client libraries.
263
+ # @!attribute [rw] common
264
+ # @return [::Google::Api::CommonLanguageSettings]
265
+ # Some settings.
266
+ # @!attribute [rw] renamed_services
267
+ # @return [::Google::Protobuf::Map{::String => ::String}]
268
+ # Map from original service names to renamed versions.
269
+ # This is used when the default generated types
270
+ # would cause a naming conflict. (Neither name is
271
+ # fully-qualified.)
272
+ # Example: Subscriber to SubscriberServiceApi.
273
+ # @!attribute [rw] renamed_resources
274
+ # @return [::Google::Protobuf::Map{::String => ::String}]
275
+ # Map from full resource types to the effective short name
276
+ # for the resource. This is used when otherwise resource
277
+ # named from different services would cause naming collisions.
278
+ # Example entry:
279
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
280
+ # @!attribute [rw] ignored_resources
281
+ # @return [::Array<::String>]
282
+ # List of full resource types to ignore during generation.
283
+ # This is typically used for API-specific Location resources,
284
+ # which should be handled by the generator as if they were actually
285
+ # the common Location resources.
286
+ # Example entry: "documentai.googleapis.com/Location"
287
+ # @!attribute [rw] forced_namespace_aliases
288
+ # @return [::Array<::String>]
289
+ # Namespaces which must be aliased in snippets due to
290
+ # a known (but non-generator-predictable) naming collision
291
+ # @!attribute [rw] handwritten_signatures
292
+ # @return [::Array<::String>]
293
+ # Method signatures (in the form "service.method(signature)")
294
+ # which are provided separately, so shouldn't be generated.
295
+ # Snippets *calling* these methods are still generated, however.
296
+ class DotnetSettings
297
+ include ::Google::Protobuf::MessageExts
298
+ extend ::Google::Protobuf::MessageExts::ClassMethods
299
+
300
+ # @!attribute [rw] key
301
+ # @return [::String]
302
+ # @!attribute [rw] value
303
+ # @return [::String]
304
+ class RenamedServicesEntry
305
+ include ::Google::Protobuf::MessageExts
306
+ extend ::Google::Protobuf::MessageExts::ClassMethods
307
+ end
308
+
309
+ # @!attribute [rw] key
310
+ # @return [::String]
311
+ # @!attribute [rw] value
312
+ # @return [::String]
313
+ class RenamedResourcesEntry
314
+ include ::Google::Protobuf::MessageExts
315
+ extend ::Google::Protobuf::MessageExts::ClassMethods
316
+ end
317
+ end
318
+
319
+ # Settings for Ruby client libraries.
320
+ # @!attribute [rw] common
321
+ # @return [::Google::Api::CommonLanguageSettings]
322
+ # Some settings.
323
+ class RubySettings
324
+ include ::Google::Protobuf::MessageExts
325
+ extend ::Google::Protobuf::MessageExts::ClassMethods
326
+ end
327
+
328
+ # Settings for Go client libraries.
329
+ # @!attribute [rw] common
330
+ # @return [::Google::Api::CommonLanguageSettings]
331
+ # Some settings.
332
+ # @!attribute [rw] renamed_services
333
+ # @return [::Google::Protobuf::Map{::String => ::String}]
334
+ # Map of service names to renamed services. Keys are the package relative
335
+ # service names and values are the name to be used for the service client
336
+ # and call options.
337
+ #
338
+ # Example:
339
+ #
340
+ # publishing:
341
+ # go_settings:
342
+ # renamed_services:
343
+ # Publisher: TopicAdmin
344
+ class GoSettings
345
+ include ::Google::Protobuf::MessageExts
346
+ extend ::Google::Protobuf::MessageExts::ClassMethods
347
+
348
+ # @!attribute [rw] key
349
+ # @return [::String]
350
+ # @!attribute [rw] value
351
+ # @return [::String]
352
+ class RenamedServicesEntry
353
+ include ::Google::Protobuf::MessageExts
354
+ extend ::Google::Protobuf::MessageExts::ClassMethods
355
+ end
356
+ end
357
+
358
+ # Describes the generator configuration for a method.
359
+ # @!attribute [rw] selector
360
+ # @return [::String]
361
+ # The fully qualified name of the method, for which the options below apply.
362
+ # This is used to find the method to apply the options.
363
+ #
364
+ # Example:
365
+ #
366
+ # publishing:
367
+ # method_settings:
368
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
369
+ # # method settings for CreateFolder...
370
+ # @!attribute [rw] long_running
371
+ # @return [::Google::Api::MethodSettings::LongRunning]
372
+ # Describes settings to use for long-running operations when generating
373
+ # API methods for RPCs. Complements RPCs that use the annotations in
374
+ # google/longrunning/operations.proto.
375
+ #
376
+ # Example of a YAML configuration::
377
+ #
378
+ # publishing:
379
+ # method_settings:
380
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
381
+ # long_running:
382
+ # initial_poll_delay: 60s # 1 minute
383
+ # poll_delay_multiplier: 1.5
384
+ # max_poll_delay: 360s # 6 minutes
385
+ # total_poll_timeout: 54000s # 90 minutes
386
+ # @!attribute [rw] auto_populated_fields
387
+ # @return [::Array<::String>]
388
+ # List of top-level fields of the request message, that should be
389
+ # automatically populated by the client libraries based on their
390
+ # (google.api.field_info).format. Currently supported format: UUID4.
391
+ #
392
+ # Example of a YAML configuration:
393
+ #
394
+ # publishing:
395
+ # method_settings:
396
+ # - selector: google.example.v1.ExampleService.CreateExample
397
+ # auto_populated_fields:
398
+ # - request_id
399
+ # @!attribute [rw] batching
400
+ # @return [::Google::Api::BatchingConfigProto]
401
+ # Batching configuration for an API method in client libraries.
402
+ #
403
+ # Example of a YAML configuration:
404
+ #
405
+ # publishing:
406
+ # method_settings:
407
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
408
+ # batching:
409
+ # element_count_threshold: 1000
410
+ # request_byte_threshold: 100000000
411
+ # delay_threshold_millis: 10
412
+ class MethodSettings
413
+ include ::Google::Protobuf::MessageExts
414
+ extend ::Google::Protobuf::MessageExts::ClassMethods
415
+
416
+ # Describes settings to use when generating API methods that use the
417
+ # long-running operation pattern.
418
+ # All default values below are from those used in the client library
419
+ # generators (e.g.
420
+ # [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
421
+ # @!attribute [rw] initial_poll_delay
422
+ # @return [::Google::Protobuf::Duration]
423
+ # Initial delay after which the first poll request will be made.
424
+ # Default value: 5 seconds.
425
+ # @!attribute [rw] poll_delay_multiplier
426
+ # @return [::Float]
427
+ # Multiplier to gradually increase delay between subsequent polls until it
428
+ # reaches max_poll_delay.
429
+ # Default value: 1.5.
430
+ # @!attribute [rw] max_poll_delay
431
+ # @return [::Google::Protobuf::Duration]
432
+ # Maximum time between two subsequent poll requests.
433
+ # Default value: 45 seconds.
434
+ # @!attribute [rw] total_poll_timeout
435
+ # @return [::Google::Protobuf::Duration]
436
+ # Total polling timeout.
437
+ # Default value: 5 minutes.
438
+ class LongRunning
439
+ include ::Google::Protobuf::MessageExts
440
+ extend ::Google::Protobuf::MessageExts::ClassMethods
441
+ end
442
+ end
443
+
444
+ # This message is used to configure the generation of a subset of the RPCs in
445
+ # a service for client libraries.
446
+ #
447
+ # Note: This feature should not be used in most cases.
448
+ # @!attribute [rw] methods
449
+ # @return [::Array<::String>]
450
+ # An allowlist of the fully qualified names of RPCs that should be included
451
+ # on public client surfaces.
452
+ # @!attribute [rw] generate_omitted_as_internal
453
+ # @return [::Boolean]
454
+ # Setting this to true indicates to the client generators that methods
455
+ # that would be excluded from the generation should instead be generated
456
+ # in a way that indicates these methods should not be consumed by
457
+ # end users. How this is expressed is up to individual language
458
+ # implementations to decide. Some examples may be: added annotations,
459
+ # obfuscated identifiers, or other language idiomatic patterns.
460
+ class SelectiveGapicGeneration
461
+ include ::Google::Protobuf::MessageExts
462
+ extend ::Google::Protobuf::MessageExts::ClassMethods
463
+ end
464
+
465
+ # `BatchingConfigProto` defines the batching configuration for an API method.
466
+ # @!attribute [rw] thresholds
467
+ # @return [::Google::Api::BatchingSettingsProto]
468
+ # The thresholds which trigger a batched request to be sent.
469
+ # @!attribute [rw] batch_descriptor
470
+ # @return [::Google::Api::BatchingDescriptorProto]
471
+ # The request and response fields used in batching.
472
+ class BatchingConfigProto
473
+ include ::Google::Protobuf::MessageExts
474
+ extend ::Google::Protobuf::MessageExts::ClassMethods
475
+ end
476
+
477
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
478
+ # which acts as a trigger to send a batch of messages as a request. At least
479
+ # one threshold must be positive nonzero.
480
+ # @!attribute [rw] element_count_threshold
481
+ # @return [::Integer]
482
+ # The number of elements of a field collected into a batch which, if
483
+ # exceeded, causes the batch to be sent.
484
+ # @!attribute [rw] request_byte_threshold
485
+ # @return [::Integer]
486
+ # The aggregated size of the batched field which, if exceeded, causes the
487
+ # batch to be sent. This size is computed by aggregating the sizes of the
488
+ # request field to be batched, not of the entire request message.
489
+ # @!attribute [rw] delay_threshold
490
+ # @return [::Google::Protobuf::Duration]
491
+ # The duration after which a batch should be sent, starting from the addition
492
+ # of the first message to that batch.
493
+ # @!attribute [rw] element_count_limit
494
+ # @return [::Integer]
495
+ # The maximum number of elements collected in a batch that could be accepted
496
+ # by server.
497
+ # @!attribute [rw] request_byte_limit
498
+ # @return [::Integer]
499
+ # The maximum size of the request that could be accepted by server.
500
+ # @!attribute [rw] flow_control_element_limit
501
+ # @return [::Integer]
502
+ # The maximum number of elements allowed by flow control.
503
+ # @!attribute [rw] flow_control_byte_limit
504
+ # @return [::Integer]
505
+ # The maximum size of data allowed by flow control.
506
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
507
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
508
+ # The behavior to take when the flow control limit is exceeded.
509
+ class BatchingSettingsProto
510
+ include ::Google::Protobuf::MessageExts
511
+ extend ::Google::Protobuf::MessageExts::ClassMethods
512
+ end
513
+
514
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
515
+ # used for batching, and, optionally, the fields of the response message to be
516
+ # used for demultiplexing.
517
+ # @!attribute [rw] batched_field
518
+ # @return [::String]
519
+ # The repeated field in the request message to be aggregated by batching.
520
+ # @!attribute [rw] discriminator_fields
521
+ # @return [::Array<::String>]
522
+ # A list of the fields in the request message. Two requests will be batched
523
+ # together only if the values of every field specified in
524
+ # `request_discriminator_fields` is equal between the two requests.
525
+ # @!attribute [rw] subresponse_field
526
+ # @return [::String]
527
+ # Optional. When present, indicates the field in the response message to be
528
+ # used to demultiplex the response into multiple response messages, in
529
+ # correspondence with the multiple request messages originally batched
530
+ # together.
531
+ class BatchingDescriptorProto
532
+ include ::Google::Protobuf::MessageExts
533
+ extend ::Google::Protobuf::MessageExts::ClassMethods
534
+ end
535
+
536
+ # The organization for which the client libraries are being published.
537
+ # Affects the url where generated docs are published, etc.
538
+ module ClientLibraryOrganization
539
+ # Not useful.
540
+ CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0
541
+
542
+ # Google Cloud Platform Org.
543
+ CLOUD = 1
544
+
545
+ # Ads (Advertising) Org.
546
+ ADS = 2
547
+
548
+ # Photos Org.
549
+ PHOTOS = 3
550
+
551
+ # Street View Org.
552
+ STREET_VIEW = 4
553
+
554
+ # Shopping Org.
555
+ SHOPPING = 5
556
+
557
+ # Geo Org.
558
+ GEO = 6
559
+
560
+ # Generative AI - https://developers.generativeai.google
561
+ GENERATIVE_AI = 7
562
+ end
563
+
564
+ # To where should client libraries be published?
565
+ module ClientLibraryDestination
566
+ # Client libraries will neither be generated nor published to package
567
+ # managers.
568
+ CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0
569
+
570
+ # Generate the client library in a repo under github.com/googleapis,
571
+ # but don't publish it to package managers.
572
+ GITHUB = 10
573
+
574
+ # Publish the library to package managers like nuget.org and npmjs.com.
575
+ PACKAGE_MANAGER = 20
576
+ end
577
+
578
+ # The behavior to take when the flow control limit is exceeded.
579
+ module FlowControlLimitExceededBehaviorProto
580
+ # Default behavior, system-defined.
581
+ UNSET_BEHAVIOR = 0
582
+
583
+ # Stop operation, raise error.
584
+ THROW_EXCEPTION = 1
585
+
586
+ # Pause operation until limit clears.
587
+ BLOCK = 2
588
+
589
+ # Continue operation, disregard limit.
590
+ IGNORE = 3
591
+ end
592
+ end
593
+ end
@@ -0,0 +1,85 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # An indicator of the behavior of a given field (for example, that a field
23
+ # is required in requests, or given as output but ignored as input).
24
+ # This **does not** change the behavior in protocol buffers itself; it only
25
+ # denotes the behavior and may affect how API tooling handles the field.
26
+ #
27
+ # Note: This enum **may** receive new values in the future.
28
+ module FieldBehavior
29
+ # Conventional default for enums. Do not use this.
30
+ FIELD_BEHAVIOR_UNSPECIFIED = 0
31
+
32
+ # Specifically denotes a field as optional.
33
+ # While all fields in protocol buffers are optional, this may be specified
34
+ # for emphasis if appropriate.
35
+ OPTIONAL = 1
36
+
37
+ # Denotes a field as required.
38
+ # This indicates that the field **must** be provided as part of the request,
39
+ # and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
40
+ REQUIRED = 2
41
+
42
+ # Denotes a field as output only.
43
+ # This indicates that the field is provided in responses, but including the
44
+ # field in a request does nothing (the server *must* ignore it and
45
+ # *must not* throw an error as a result of the field's presence).
46
+ OUTPUT_ONLY = 3
47
+
48
+ # Denotes a field as input only.
49
+ # This indicates that the field is provided in requests, and the
50
+ # corresponding field is not included in output.
51
+ INPUT_ONLY = 4
52
+
53
+ # Denotes a field as immutable.
54
+ # This indicates that the field may be set once in a request to create a
55
+ # resource, but may not be changed thereafter.
56
+ IMMUTABLE = 5
57
+
58
+ # Denotes that a (repeated) field is an unordered list.
59
+ # This indicates that the service may provide the elements of the list
60
+ # in any arbitrary order, rather than the order the user originally
61
+ # provided. Additionally, the list's order may or may not be stable.
62
+ UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
83
+ end
84
+ end
85
+ end