google-cloud-automl-v1 1.6.0 → 1.8.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bef81d3ff4cc54f5facdac3bf6186339bca88976151ec06afeda32fe8e99e92f
4
- data.tar.gz: 8d0a76e262bf741875e02aec404b8cfca0975fd640cee9f7d82ca5144d362e67
3
+ metadata.gz: db9b317a05c94db41e66bf84ce1bf01ae35d164fbaf06c5ed5189599abad1742
4
+ data.tar.gz: de80473b4be4c7a4c8e76612be8402a4c449373ae139bb2969283af184638b9a
5
5
  SHA512:
6
- metadata.gz: 410be08f898daffcc2f9b9898603cea2b637d0cf9728d5b5967a4732438eff02013700ae62f292a065735c80fe78ffc1dc717ddd6825cecedfa9d4ca6d27579f
7
- data.tar.gz: 994e21780fb7c06ecc2cbd36d5893eba70fb460d3406c2086fa40299c91f4876ed13f650d1443b37991167f515cb4fbe12d200788085082ea527d5201a2443cd
6
+ metadata.gz: 4b90d76844312e087c842d32909939451d94a9fa74e4ccd3539cdd5787c1762c840c7576c8768c1ee12ec895918768690bb623fcd0d760b375c8ae9dfb2b7058
7
+ data.tar.gz: aeda8f49905d345c7f5cfda002edad2f0382b9caa80f7ca54b977ae3b31daf53fc35e1b91f9ca8c497c0fc9c5ddd3e656c0181e00094bf38e3ec0c5c558dd20c
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 3.0+.
89
+ This library is supported on Ruby 3.2+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -2120,6 +2120,7 @@ module Google
2120
2120
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2121
2121
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2122
2122
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2123
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
2123
2124
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2124
2125
  # trigger a retry.
2125
2126
  # @return [::Hash]
@@ -2203,6 +2204,7 @@ module Google
2203
2204
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2204
2205
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2205
2206
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2207
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
2206
2208
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2207
2209
  # trigger a retry.
2208
2210
  #
@@ -711,6 +711,7 @@ module Google
711
711
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
712
712
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
713
713
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
714
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
714
715
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
715
716
  # trigger a retry.
716
717
  # @return [::Hash]
@@ -794,6 +795,7 @@ module Google
794
795
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
795
796
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
796
797
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
798
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
797
799
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
798
800
  # trigger a retry.
799
801
  #
@@ -1961,6 +1961,7 @@ module Google
1961
1961
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1962
1962
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1963
1963
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1964
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1964
1965
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1965
1966
  # trigger a retry.
1966
1967
  # @return [::Hash]
@@ -2033,6 +2034,7 @@ module Google
2033
2034
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
2034
2035
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
2035
2036
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
2037
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
2036
2038
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
2037
2039
  # trigger a retry.
2038
2040
  #
@@ -640,6 +640,7 @@ module Google
640
640
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
641
641
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
642
642
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
643
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
643
644
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
644
645
  # trigger a retry.
645
646
  # @return [::Hash]
@@ -712,6 +713,7 @@ module Google
712
713
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
713
714
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
714
715
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
716
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
715
717
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
716
718
  # trigger a retry.
717
719
  #
@@ -651,6 +651,7 @@ module Google
651
651
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
652
652
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
653
653
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
654
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
654
655
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
655
656
  # trigger a retry.
656
657
  # @return [::Hash]
@@ -734,6 +735,7 @@ module Google
734
735
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
735
736
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
736
737
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
738
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
737
739
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
738
740
  # trigger a retry.
739
741
  #
@@ -711,6 +711,7 @@ module Google
711
711
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
712
712
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
713
713
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
714
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
714
715
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
715
716
  # trigger a retry.
716
717
  # @return [::Hash]
@@ -794,6 +795,7 @@ module Google
794
795
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
795
796
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
796
797
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
798
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
797
799
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
798
800
  # trigger a retry.
799
801
  #
@@ -604,6 +604,7 @@ module Google
604
604
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
605
605
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
606
606
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
607
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
607
608
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
608
609
  # trigger a retry.
609
610
  # @return [::Hash]
@@ -676,6 +677,7 @@ module Google
676
677
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
677
678
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
678
679
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
680
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
679
681
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
680
682
  # trigger a retry.
681
683
  #
@@ -640,6 +640,7 @@ module Google
640
640
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
641
641
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
642
642
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
643
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
643
644
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
644
645
  # trigger a retry.
645
646
  # @return [::Hash]
@@ -712,6 +713,7 @@ module Google
712
713
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
713
714
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
714
715
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
716
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
715
717
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
716
718
  # trigger a retry.
717
719
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AutoML
23
23
  module V1
24
- VERSION = "1.6.0"
24
+ VERSION = "1.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -31,6 +31,8 @@ module Google
31
31
  # @!attribute [rw] selective_gapic_generation
32
32
  # @return [::Google::Api::SelectiveGapicGeneration]
33
33
  # Configuration for which RPCs should be generated in the GAPIC client.
34
+ #
35
+ # Note: This field should not be used in most cases.
34
36
  class CommonLanguageSettings
35
37
  include ::Google::Protobuf::MessageExts
36
38
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ module Google
141
143
  #
142
144
  # Example of a YAML configuration::
143
145
  #
144
- # publishing:
145
- # java_settings:
146
- # library_package: com.google.cloud.pubsub.v1
146
+ # publishing:
147
+ # library_settings:
148
+ # java_settings:
149
+ # library_package: com.google.cloud.pubsub.v1
147
150
  # @!attribute [rw] service_class_names
148
151
  # @return [::Google::Protobuf::Map{::String => ::String}]
149
152
  # Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ module Google
155
158
  #
156
159
  # Example of a YAML configuration::
157
160
  #
158
- # publishing:
159
- # java_settings:
160
- # service_class_names:
161
- # - google.pubsub.v1.Publisher: TopicAdmin
162
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
161
+ # publishing:
162
+ # java_settings:
163
+ # service_class_names:
164
+ # - google.pubsub.v1.Publisher: TopicAdmin
165
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
163
166
  # @!attribute [rw] common
164
167
  # @return [::Google::Api::CommonLanguageSettings]
165
168
  # Some settings.
@@ -190,6 +193,20 @@ module Google
190
193
  # @!attribute [rw] common
191
194
  # @return [::Google::Api::CommonLanguageSettings]
192
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
193
210
  class PhpSettings
194
211
  include ::Google::Protobuf::MessageExts
195
212
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ module Google
318
335
  # service names and values are the name to be used for the service client
319
336
  # and call options.
320
337
  #
321
- # publishing:
322
- # go_settings:
323
- # renamed_services:
324
- # Publisher: TopicAdmin
338
+ # Example:
339
+ #
340
+ # publishing:
341
+ # go_settings:
342
+ # renamed_services:
343
+ # Publisher: TopicAdmin
325
344
  class GoSettings
326
345
  include ::Google::Protobuf::MessageExts
327
346
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ module Google
344
363
  #
345
364
  # Example:
346
365
  #
347
- # publishing:
348
- # method_settings:
349
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
350
- # # method settings for CreateFolder...
366
+ # publishing:
367
+ # method_settings:
368
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
369
+ # # method settings for CreateFolder...
351
370
  # @!attribute [rw] long_running
352
371
  # @return [::Google::Api::MethodSettings::LongRunning]
353
372
  # Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ module Google
356
375
  #
357
376
  # Example of a YAML configuration::
358
377
  #
359
- # publishing:
360
- # method_settings:
361
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
362
- # long_running:
363
- # initial_poll_delay: 60s # 1 minute
364
- # poll_delay_multiplier: 1.5
365
- # max_poll_delay: 360s # 6 minutes
366
- # total_poll_timeout: 54000s # 90 minutes
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
367
386
  # @!attribute [rw] auto_populated_fields
368
387
  # @return [::Array<::String>]
369
388
  # List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ module Google
372
391
  #
373
392
  # Example of a YAML configuration:
374
393
  #
375
- # publishing:
376
- # method_settings:
377
- # - selector: google.example.v1.ExampleService.CreateExample
378
- # auto_populated_fields:
379
- # - request_id
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
380
412
  class MethodSettings
381
413
  include ::Google::Protobuf::MessageExts
382
414
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ module Google
411
443
 
412
444
  # This message is used to configure the generation of a subset of the RPCs in
413
445
  # a service for client libraries.
446
+ #
447
+ # Note: This feature should not be used in most cases.
414
448
  # @!attribute [rw] methods
415
449
  # @return [::Array<::String>]
416
450
  # An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ module Google
428
462
  extend ::Google::Protobuf::MessageExts::ClassMethods
429
463
  end
430
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
+
431
536
  # The organization for which the client libraries are being published.
432
537
  # Affects the url where generated docs are published, etc.
433
538
  module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module Google
469
574
  # Publish the library to package managers like nuget.org and npmjs.com.
470
575
  PACKAGE_MANAGER = 20
471
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
472
592
  end
473
593
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-automl-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '1.2'
18
+ version: '1.3'
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '1.2'
25
+ version: '1.3'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: google-cloud-errors
28
28
  requirement: !ruby/object:Gem::Requirement