diff --git a/google-cloud-talent-v4beta1/proto_docs/google/api/client.rb b/google-cloud-talent-v4beta1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-talent-v4beta1/proto_docs/google/api/client.rb
+++ b/google-cloud-talent-v4beta1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-talent-v4beta1/proto_docs/google/type/latlng.rb b/google-cloud-talent-v4beta1/proto_docs/google/type/latlng.rb
index ddd705dc8844..e82e33de36f5 100644
--- a/google-cloud-talent-v4beta1/proto_docs/google/type/latlng.rb
+++ b/google-cloud-talent-v4beta1/proto_docs/google/type/latlng.rb
@@ -21,9 +21,9 @@ module Google
module Type
# An object that represents a latitude/longitude pair. This is expressed as a
# pair of doubles to represent degrees latitude and degrees longitude. Unless
- # specified otherwise, this must conform to the
- # WGS84
- # standard. Values must be within normalized ranges.
+ # specified otherwise, this object must conform to the
+ #
+ # WGS84 standard. Values must be within normalized ranges.
# @!attribute [rw] latitude
# @return [::Float]
# The latitude in degrees. It must be in the range [-90.0, +90.0].
diff --git a/google-cloud-talent-v4beta1/proto_docs/google/type/postal_address.rb b/google-cloud-talent-v4beta1/proto_docs/google/type/postal_address.rb
index 76524257873b..725af931953d 100644
--- a/google-cloud-talent-v4beta1/proto_docs/google/type/postal_address.rb
+++ b/google-cloud-talent-v4beta1/proto_docs/google/type/postal_address.rb
@@ -19,23 +19,23 @@
module Google
module Type
- # Represents a postal address, e.g. for postal delivery or payments addresses.
- # Given a postal address, a postal service can deliver items to a premise, P.O.
- # Box or similar.
- # It is not intended to model geographical locations (roads, towns,
- # mountains).
+ # Represents a postal address, such as for postal delivery or payments
+ # addresses. With a postal address, a postal service can deliver items to a
+ # premise, P.O. box, or similar. A postal address is not intended to model
+ # geographical locations like roads, towns, or mountains.
#
- # In typical usage an address would be created via user input or from importing
+ # In typical usage, an address would be created by user input or from importing
# existing data, depending on the type of process.
#
- # Advice on address input / editing:
- # - Use an i18n-ready address widget such as
- # https://github.com/google/libaddressinput)
- # - Users should not be presented with UI elements for input or editing of
- # fields outside countries where that field is used.
+ # Advice on address input or editing:
#
- # For more guidance on how to use this schema, please see:
- # https://support.google.com/business/answer/6397478
+ # - Use an internationalization-ready address widget such as
+ # https://github.com/google/libaddressinput.
+ # - Users should not be presented with UI elements for input or editing of
+ # fields outside countries where that field is used.
+ #
+ # For more guidance on how to use this schema, see:
+ # https://support.google.com/business/answer/6397478.
# @!attribute [rw] revision
# @return [::Integer]
# The schema revision of the `PostalAddress`. This must be set to 0, which is
@@ -46,8 +46,8 @@ module Type
# @return [::String]
# Required. CLDR region code of the country/region of the address. This
# is never inferred and it is up to the user to ensure the value is
- # correct. See http://cldr.unicode.org/ and
- # http://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
+ # correct. See https://cldr.unicode.org/ and
+ # https://www.unicode.org/cldr/charts/30/supplemental/territory_information.html
# for details. Example: "CH" for Switzerland.
# @!attribute [rw] language_code
# @return [::String]
@@ -67,55 +67,56 @@ module Type
# @return [::String]
# Optional. Postal code of the address. Not all countries use or require
# postal codes to be present, but where they are used, they may trigger
- # additional validation with other parts of the address (e.g. state/zip
- # validation in the U.S.A.).
+ # additional validation with other parts of the address (for example,
+ # state or zip code validation in the United States).
# @!attribute [rw] sorting_code
# @return [::String]
# Optional. Additional, country-specific, sorting code. This is not used
# in most regions. Where it is used, the value is either a string like
- # "CEDEX", optionally followed by a number (e.g. "CEDEX 7"), or just a number
- # alone, representing the "sector code" (Jamaica), "delivery area indicator"
- # (Malawi) or "post office indicator" (e.g. Côte d'Ivoire).
+ # "CEDEX", optionally followed by a number (for example, "CEDEX 7"), or just
+ # a number alone, representing the "sector code" (Jamaica), "delivery area
+ # indicator" (Malawi) or "post office indicator" (Côte d'Ivoire).
# @!attribute [rw] administrative_area
# @return [::String]
# Optional. Highest administrative subdivision which is used for postal
# addresses of a country or region.
# For example, this can be a state, a province, an oblast, or a prefecture.
- # Specifically, for Spain this is the province and not the autonomous
- # community (e.g. "Barcelona" and not "Catalonia").
- # Many countries don't use an administrative area in postal addresses. E.g.
- # in Switzerland this should be left unpopulated.
+ # For Spain, this is the province and not the autonomous
+ # community (for example, "Barcelona" and not "Catalonia").
+ # Many countries don't use an administrative area in postal addresses. For
+ # example, in Switzerland, this should be left unpopulated.
# @!attribute [rw] locality
# @return [::String]
- # Optional. Generally refers to the city/town portion of the address.
+ # Optional. Generally refers to the city or town portion of the address.
# Examples: US city, IT comune, UK post town.
# In regions of the world where localities are not well defined or do not fit
- # into this structure well, leave locality empty and use address_lines.
+ # into this structure well, leave `locality` empty and use `address_lines`.
# @!attribute [rw] sublocality
# @return [::String]
# Optional. Sublocality of the address.
- # For example, this can be neighborhoods, boroughs, districts.
+ # For example, this can be a neighborhood, borough, or district.
# @!attribute [rw] address_lines
# @return [::Array<::String>]
# Unstructured address lines describing the lower levels of an address.
#
- # Because values in address_lines do not have type information and may
- # sometimes contain multiple values in a single field (e.g.
+ # Because values in `address_lines` do not have type information and may
+ # sometimes contain multiple values in a single field (for example,
# "Austin, TX"), it is important that the line order is clear. The order of
- # address lines should be "envelope order" for the country/region of the
- # address. In places where this can vary (e.g. Japan), address_language is
- # used to make it explicit (e.g. "ja" for large-to-small ordering and
- # "ja-Latn" or "en" for small-to-large). This way, the most specific line of
- # an address can be selected based on the language.
+ # address lines should be "envelope order" for the country or region of the
+ # address. In places where this can vary (for example, Japan),
+ # `address_language` is used to make it explicit (for example, "ja" for
+ # large-to-small ordering and "ja-Latn" or "en" for small-to-large). In this
+ # way, the most specific line of an address can be selected based on the
+ # language.
#
# The minimum permitted structural representation of an address consists
- # of a region_code with all remaining information placed in the
- # address_lines. It would be possible to format such an address very
+ # of a `region_code` with all remaining information placed in the
+ # `address_lines`. It would be possible to format such an address very
# approximately without geocoding, but no semantic reasoning could be
# made about any of the address components until it was at least
# partially resolved.
#
- # Creating an address only containing a region_code and address_lines, and
+ # Creating an address only containing a `region_code` and `address_lines` and
# then geocoding is the recommended way to handle completely unstructured
# addresses (as opposed to guessing which parts of the address should be
# localities or administrative areas).
diff --git a/google-cloud-talent-v4beta1/proto_docs/google/type/timeofday.rb b/google-cloud-talent-v4beta1/proto_docs/google/type/timeofday.rb
index e33cd1141a95..a899ce7820ea 100644
--- a/google-cloud-talent-v4beta1/proto_docs/google/type/timeofday.rb
+++ b/google-cloud-talent-v4beta1/proto_docs/google/type/timeofday.rb
@@ -25,18 +25,22 @@ module Type
# `google.protobuf.Timestamp`.
# @!attribute [rw] hours
# @return [::Integer]
- # Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
- # to allow the value "24:00:00" for scenarios like business closing time.
+ # Hours of a day in 24 hour format. Must be greater than or equal to 0 and
+ # typically must be less than or equal to 23. An API may choose to allow the
+ # value "24:00:00" for scenarios like business closing time.
# @!attribute [rw] minutes
# @return [::Integer]
- # Minutes of hour of day. Must be from 0 to 59.
+ # Minutes of an hour. Must be greater than or equal to 0 and less than or
+ # equal to 59.
# @!attribute [rw] seconds
# @return [::Integer]
- # Seconds of minutes of the time. Must normally be from 0 to 59. An API may
- # allow the value 60 if it allows leap-seconds.
+ # Seconds of a minute. Must be greater than or equal to 0 and typically must
+ # be less than or equal to 59. An API may allow the value 60 if it allows
+ # leap-seconds.
# @!attribute [rw] nanos
# @return [::Integer]
- # Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
+ # Fractions of seconds, in nanoseconds. Must be greater than or equal to 0
+ # and less than or equal to 999,999,999.
class TimeOfDay
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
diff --git a/google-cloud-tasks-v2/proto_docs/google/api/client.rb b/google-cloud-tasks-v2/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-tasks-v2/proto_docs/google/api/client.rb
+++ b/google-cloud-tasks-v2/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-tasks-v2beta2/proto_docs/google/api/client.rb b/google-cloud-tasks-v2beta2/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-tasks-v2beta2/proto_docs/google/api/client.rb
+++ b/google-cloud-tasks-v2beta2/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-tasks-v2beta3/proto_docs/google/api/client.rb b/google-cloud-tasks-v2beta3/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-tasks-v2beta3/proto_docs/google/api/client.rb
+++ b/google-cloud-tasks-v2beta3/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-telco_automation-v1/proto_docs/google/api/client.rb b/google-cloud-telco_automation-v1/proto_docs/google/api/client.rb
index 44c6bee7f2e5..f20af9485bd9 100644
--- a/google-cloud-telco_automation-v1/proto_docs/google/api/client.rb
+++ b/google-cloud-telco_automation-v1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-text_to_speech-v1/lib/google/cloud/text_to_speech/v1/text_to_speech/client.rb b/google-cloud-text_to_speech-v1/lib/google/cloud/text_to_speech/v1/text_to_speech/client.rb
index 4d5108b2efcd..98578d748865 100644
--- a/google-cloud-text_to_speech-v1/lib/google/cloud/text_to_speech/v1/text_to_speech/client.rb
+++ b/google-cloud-text_to_speech-v1/lib/google/cloud/text_to_speech/v1/text_to_speech/client.rb
@@ -298,7 +298,7 @@ def list_voices request, options = nil
# @param audio_config [::Google::Cloud::TextToSpeech::V1::AudioConfig, ::Hash]
# Required. The configuration of the synthesized audio.
# @param advanced_voice_options [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions, ::Hash]
- # Advanced voice options.
+ # Optional. Advanced voice options.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse]
diff --git a/google-cloud-text_to_speech-v1/lib/google/cloud/text_to_speech/v1/text_to_speech/rest/client.rb b/google-cloud-text_to_speech-v1/lib/google/cloud/text_to_speech/v1/text_to_speech/rest/client.rb
index 23c6eac9a69e..4240abac7c0d 100644
--- a/google-cloud-text_to_speech-v1/lib/google/cloud/text_to_speech/v1/text_to_speech/rest/client.rb
+++ b/google-cloud-text_to_speech-v1/lib/google/cloud/text_to_speech/v1/text_to_speech/rest/client.rb
@@ -292,7 +292,7 @@ def list_voices request, options = nil
# @param audio_config [::Google::Cloud::TextToSpeech::V1::AudioConfig, ::Hash]
# Required. The configuration of the synthesized audio.
# @param advanced_voice_options [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions, ::Hash]
- # Advanced voice options.
+ # Optional. Advanced voice options.
# @yield [result, operation] Access the result along with the TransportOperation object
# @yieldparam result [::Google::Cloud::TextToSpeech::V1::SynthesizeSpeechResponse]
# @yieldparam operation [::Gapic::Rest::TransportOperation]
diff --git a/google-cloud-text_to_speech-v1/lib/google/cloud/texttospeech/v1/cloud_tts_pb.rb b/google-cloud-text_to_speech-v1/lib/google/cloud/texttospeech/v1/cloud_tts_pb.rb
index 073184080aaf..5a658d483728 100644
--- a/google-cloud-text_to_speech-v1/lib/google/cloud/texttospeech/v1/cloud_tts_pb.rb
+++ b/google-cloud-text_to_speech-v1/lib/google/cloud/texttospeech/v1/cloud_tts_pb.rb
@@ -10,7 +10,7 @@
require 'google/api/resource_pb'
-descriptor_data = "\n,google/cloud/texttospeech/v1/cloud_tts.proto\x12\x1cgoogle.cloud.texttospeech.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"/\n\x11ListVoicesRequest\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x01\"I\n\x12ListVoicesResponse\x12\x33\n\x06voices\x18\x01 \x03(\x0b\x32#.google.cloud.texttospeech.v1.Voice\"\x94\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\x8a\x01\n\x14\x41\x64vancedVoiceOptions\x12*\n\x1dlow_latency_journey_synthesis\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12$\n\x14relax_safety_filters\x18\x08 \x01(\x08\x42\x06\xe0\x41\x04\xe0\x41\x01\x42 \n\x1e_low_latency_journey_synthesis\"\xdd\x02\n\x17SynthesizeSpeechRequest\x12@\n\x05input\x18\x01 \x01(\x0b\x32,.google.cloud.texttospeech.v1.SynthesisInputB\x03\xe0\x41\x02\x12\x46\n\x05voice\x18\x02 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12\x44\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32).google.cloud.texttospeech.v1.AudioConfigB\x03\xe0\x41\x02\x12W\n\x16\x61\x64vanced_voice_options\x18\x08 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.AdvancedVoiceOptionsH\x00\x88\x01\x01\x42\x19\n\x17_advanced_voice_options\"\xa2\x03\n\x19\x43ustomPronunciationParams\x12\x13\n\x06phrase\x18\x01 \x01(\tH\x00\x88\x01\x01\x12h\n\x11phonetic_encoding\x18\x02 \x01(\x0e\x32H.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncodingH\x01\x88\x01\x01\x12\x1a\n\rpronunciation\x18\x03 \x01(\tH\x02\x88\x01\x01\"\xb6\x01\n\x10PhoneticEncoding\x12!\n\x1dPHONETIC_ENCODING_UNSPECIFIED\x10\x00\x12\x19\n\x15PHONETIC_ENCODING_IPA\x10\x01\x12\x1d\n\x19PHONETIC_ENCODING_X_SAMPA\x10\x02\x12\'\n#PHONETIC_ENCODING_JAPANESE_YOMIGANA\x10\x03\x12\x1c\n\x18PHONETIC_ENCODING_PINYIN\x10\x04\x42\t\n\x07_phraseB\x14\n\x12_phonetic_encodingB\x10\n\x0e_pronunciation\"g\n\x14\x43ustomPronunciations\x12O\n\x0epronunciations\x18\x01 \x03(\x0b\x32\x37.google.cloud.texttospeech.v1.CustomPronunciationParams\"\x90\x01\n\x12MultiSpeakerMarkup\x12I\n\x05turns\x18\x01 \x03(\x0b\x32\x35.google.cloud.texttospeech.v1.MultiSpeakerMarkup.TurnB\x03\xe0\x41\x02\x1a/\n\x04Turn\x12\x14\n\x07speaker\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04text\x18\x02 \x01(\tB\x03\xe0\x41\x02\"P\n\x19MultispeakerPrebuiltVoice\x12\x1a\n\rspeaker_alias\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nspeaker_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"v\n\x17MultiSpeakerVoiceConfig\x12[\n\x15speaker_voice_configs\x18\x02 \x03(\x0b\x32\x37.google.cloud.texttospeech.v1.MultispeakerPrebuiltVoiceB\x03\xe0\x41\x02\"\x9c\x02\n\x0eSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x12P\n\x14multi_speaker_markup\x18\x04 \x01(\x0b\x32\x30.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x12V\n\x15\x63ustom_pronunciations\x18\x03 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.CustomPronunciationsB\x03\xe0\x41\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\x8e\x03\n\x14VoiceSelectionParams\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12\x45\n\x0c\x63ustom_voice\x18\x04 \x01(\x0b\x32/.google.cloud.texttospeech.v1.CustomVoiceParams\x12H\n\x0bvoice_clone\x18\x05 \x01(\x0b\x32..google.cloud.texttospeech.v1.VoiceCloneParamsB\x03\xe0\x41\x01\x12\x17\n\nmodel_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12^\n\x1amulti_speaker_voice_config\x18\x07 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1.MultiSpeakerVoiceConfigB\x03\xe0\x41\x01\"\xf1\x01\n\x0b\x41udioConfig\x12H\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32+.google.cloud.texttospeech.v1.AudioEncodingB\x03\xe0\x41\x02\x12\x1d\n\rspeaking_rate\x18\x02 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x15\n\x05pitch\x18\x03 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x1e\n\x0evolume_gain_db\x18\x04 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x1e\n\x11sample_rate_hertz\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\"\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x06 \x03(\tB\x06\xe0\x41\x04\xe0\x41\x01\"\xf1\x01\n\x11\x43ustomVoiceParams\x12\x32\n\x05model\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\\\n\x0ereported_usage\x18\x03 \x01(\x0e\x32=.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsageB\x05\x18\x01\xe0\x41\x01\"J\n\rReportedUsage\x12\x1e\n\x1aREPORTED_USAGE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REALTIME\x10\x01\x12\x0b\n\x07OFFLINE\x10\x02\"2\n\x10VoiceCloneParams\x12\x1e\n\x11voice_cloning_key\x18\x01 \x01(\tB\x03\xe0\x41\x02\"1\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c\"\x9f\x01\n\x14StreamingAudioConfig\x12H\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32+.google.cloud.texttospeech.v1.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1d\n\rspeaking_rate\x18\x03 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\"\x94\x02\n\x19StreamingSynthesizeConfig\x12\x46\n\x05voice\x18\x01 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12W\n\x16streaming_audio_config\x18\x04 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.StreamingAudioConfigB\x03\xe0\x41\x01\x12V\n\x15\x63ustom_pronunciations\x18\x05 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.CustomPronunciationsB\x03\xe0\x41\x01\"\xbd\x01\n\x17StreamingSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12P\n\x14multi_speaker_markup\x18\x07 \x01(\x0b\x32\x30.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xce\x01\n\x1aStreamingSynthesizeRequest\x12S\n\x10streaming_config\x18\x01 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1.StreamingSynthesizeConfigH\x00\x12\x46\n\x05input\x18\x02 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1.StreamingSynthesisInputH\x00\x42\x13\n\x11streaming_request\"4\n\x1bStreamingSynthesizeResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c*W\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03*{\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0c\n\x08OGG_OPUS\x10\x03\x12\t\n\x05MULAW\x10\x05\x12\x08\n\x04\x41LAW\x10\x06\x12\x07\n\x03PCM\x10\x07\x12\x07\n\x03M4A\x10\x08\x32\xc7\x04\n\x0cTextToSpeech\x12\x93\x01\n\nListVoices\x12/.google.cloud.texttospeech.v1.ListVoicesRequest\x1a\x30.google.cloud.texttospeech.v1.ListVoicesResponse\"\"\xda\x41\rlanguage_code\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/voices\x12\xbc\x01\n\x10SynthesizeSpeech\x12\x35.google.cloud.texttospeech.v1.SynthesizeSpeechRequest\x1a\x36.google.cloud.texttospeech.v1.SynthesizeSpeechResponse\"9\xda\x41\x18input,voice,audio_config\x82\xd3\xe4\x93\x02\x18\"\x13/v1/text:synthesize:\x01*\x12\x90\x01\n\x13StreamingSynthesize\x12\x38.google.cloud.texttospeech.v1.StreamingSynthesizeRequest\x1a\x39.google.cloud.texttospeech.v1.StreamingSynthesizeResponse\"\x00(\x01\x30\x01\x1aO\xca\x41\x1btexttospeech.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xbc\x02\n com.google.cloud.texttospeech.v1B\x11TextToSpeechProtoP\x01ZDcloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb\xa2\x02\x04\x43TTS\xaa\x02\x1cGoogle.Cloud.TextToSpeech.V1\xca\x02\x1cGoogle\\Cloud\\TextToSpeech\\V1\xea\x02\x1fGoogle::Cloud::TextToSpeech::V1\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}b\x06proto3"
+descriptor_data = "\n,google/cloud/texttospeech/v1/cloud_tts.proto\x12\x1cgoogle.cloud.texttospeech.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"/\n\x11ListVoicesRequest\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x01\"I\n\x12ListVoicesResponse\x12\x33\n\x06voices\x18\x01 \x03(\x0b\x32#.google.cloud.texttospeech.v1.Voice\"\x94\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\xa3\x07\n\x14\x41\x64vancedVoiceOptions\x12*\n\x1dlow_latency_journey_synthesis\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12&\n\x14relax_safety_filters\x18\x08 \x01(\x08\x42\x08\x18\x01\xe0\x41\x04\xe0\x41\x01\x12\x62\n\x0fsafety_settings\x18\t \x01(\x0b\x32\x41.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettingsB\x06\xe0\x41\x04\xe0\x41\x01\x12!\n\x0f\x65nable_textnorm\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x1a\xbc\x01\n\rSafetySetting\x12Q\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32?.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory\x12X\n\tthreshold\x18\x02 \x01(\x0e\x32\x45.google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold\x1a\x64\n\x0eSafetySettings\x12R\n\x08settings\x18\x01 \x03(\x0b\x32@.google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySetting\"\xb4\x01\n\x0cHarmCategory\x12\x1d\n\x19HARM_CATEGORY_UNSPECIFIED\x10\x00\x12\x1d\n\x19HARM_CATEGORY_HATE_SPEECH\x10\x01\x12#\n\x1fHARM_CATEGORY_DANGEROUS_CONTENT\x10\x02\x12\x1c\n\x18HARM_CATEGORY_HARASSMENT\x10\x03\x12#\n\x1fHARM_CATEGORY_SEXUALLY_EXPLICIT\x10\x04\"\x9d\x01\n\x12HarmBlockThreshold\x12$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\n\x13\x42LOCK_LOW_AND_ABOVE\x10\x01\x12\x1a\n\x16\x42LOCK_MEDIUM_AND_ABOVE\x10\x02\x12\x13\n\x0f\x42LOCK_ONLY_HIGH\x10\x03\x12\x0e\n\nBLOCK_NONE\x10\x04\x12\x07\n\x03OFF\x10\x05\x42 \n\x1e_low_latency_journey_synthesisB\x12\n\x10_enable_textnorm\"\xe2\x02\n\x17SynthesizeSpeechRequest\x12@\n\x05input\x18\x01 \x01(\x0b\x32,.google.cloud.texttospeech.v1.SynthesisInputB\x03\xe0\x41\x02\x12\x46\n\x05voice\x18\x02 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12\x44\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32).google.cloud.texttospeech.v1.AudioConfigB\x03\xe0\x41\x02\x12\\\n\x16\x61\x64vanced_voice_options\x18\x08 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.AdvancedVoiceOptionsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x19\n\x17_advanced_voice_options\"\xa2\x03\n\x19\x43ustomPronunciationParams\x12\x13\n\x06phrase\x18\x01 \x01(\tH\x00\x88\x01\x01\x12h\n\x11phonetic_encoding\x18\x02 \x01(\x0e\x32H.google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncodingH\x01\x88\x01\x01\x12\x1a\n\rpronunciation\x18\x03 \x01(\tH\x02\x88\x01\x01\"\xb6\x01\n\x10PhoneticEncoding\x12!\n\x1dPHONETIC_ENCODING_UNSPECIFIED\x10\x00\x12\x19\n\x15PHONETIC_ENCODING_IPA\x10\x01\x12\x1d\n\x19PHONETIC_ENCODING_X_SAMPA\x10\x02\x12\'\n#PHONETIC_ENCODING_JAPANESE_YOMIGANA\x10\x03\x12\x1c\n\x18PHONETIC_ENCODING_PINYIN\x10\x04\x42\t\n\x07_phraseB\x14\n\x12_phonetic_encodingB\x10\n\x0e_pronunciation\"g\n\x14\x43ustomPronunciations\x12O\n\x0epronunciations\x18\x01 \x03(\x0b\x32\x37.google.cloud.texttospeech.v1.CustomPronunciationParams\"\x90\x01\n\x12MultiSpeakerMarkup\x12I\n\x05turns\x18\x01 \x03(\x0b\x32\x35.google.cloud.texttospeech.v1.MultiSpeakerMarkup.TurnB\x03\xe0\x41\x02\x1a/\n\x04Turn\x12\x14\n\x07speaker\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04text\x18\x02 \x01(\tB\x03\xe0\x41\x02\"P\n\x19MultispeakerPrebuiltVoice\x12\x1a\n\rspeaker_alias\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nspeaker_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"v\n\x17MultiSpeakerVoiceConfig\x12[\n\x15speaker_voice_configs\x18\x02 \x03(\x0b\x32\x37.google.cloud.texttospeech.v1.MultispeakerPrebuiltVoiceB\x03\xe0\x41\x02\"\x9c\x02\n\x0eSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x12P\n\x14multi_speaker_markup\x18\x04 \x01(\x0b\x32\x30.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x12V\n\x15\x63ustom_pronunciations\x18\x03 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.CustomPronunciationsB\x03\xe0\x41\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\x8e\x03\n\x14VoiceSelectionParams\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x42\n\x0bssml_gender\x18\x03 \x01(\x0e\x32-.google.cloud.texttospeech.v1.SsmlVoiceGender\x12\x45\n\x0c\x63ustom_voice\x18\x04 \x01(\x0b\x32/.google.cloud.texttospeech.v1.CustomVoiceParams\x12H\n\x0bvoice_clone\x18\x05 \x01(\x0b\x32..google.cloud.texttospeech.v1.VoiceCloneParamsB\x03\xe0\x41\x01\x12\x17\n\nmodel_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12^\n\x1amulti_speaker_voice_config\x18\x07 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1.MultiSpeakerVoiceConfigB\x03\xe0\x41\x01\"\xf1\x01\n\x0b\x41udioConfig\x12H\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32+.google.cloud.texttospeech.v1.AudioEncodingB\x03\xe0\x41\x02\x12\x1d\n\rspeaking_rate\x18\x02 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x15\n\x05pitch\x18\x03 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x1e\n\x0evolume_gain_db\x18\x04 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x1e\n\x11sample_rate_hertz\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\"\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x06 \x03(\tB\x06\xe0\x41\x04\xe0\x41\x01\"\xf1\x01\n\x11\x43ustomVoiceParams\x12\x32\n\x05model\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\\\n\x0ereported_usage\x18\x03 \x01(\x0e\x32=.google.cloud.texttospeech.v1.CustomVoiceParams.ReportedUsageB\x05\x18\x01\xe0\x41\x01\"J\n\rReportedUsage\x12\x1e\n\x1aREPORTED_USAGE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REALTIME\x10\x01\x12\x0b\n\x07OFFLINE\x10\x02\"2\n\x10VoiceCloneParams\x12\x1e\n\x11voice_cloning_key\x18\x01 \x01(\tB\x03\xe0\x41\x02\"1\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c\"\x9f\x01\n\x14StreamingAudioConfig\x12H\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32+.google.cloud.texttospeech.v1.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1d\n\rspeaking_rate\x18\x03 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\"\x8d\x03\n\x19StreamingSynthesizeConfig\x12\x46\n\x05voice\x18\x01 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12W\n\x16streaming_audio_config\x18\x04 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.StreamingAudioConfigB\x03\xe0\x41\x01\x12V\n\x15\x63ustom_pronunciations\x18\x05 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.CustomPronunciationsB\x03\xe0\x41\x01\x12\\\n\x16\x61\x64vanced_voice_options\x18\x07 \x01(\x0b\x32\x32.google.cloud.texttospeech.v1.AdvancedVoiceOptionsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x19\n\x17_advanced_voice_options\"\xbd\x01\n\x17StreamingSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12P\n\x14multi_speaker_markup\x18\x07 \x01(\x0b\x32\x30.google.cloud.texttospeech.v1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xce\x01\n\x1aStreamingSynthesizeRequest\x12S\n\x10streaming_config\x18\x01 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1.StreamingSynthesizeConfigH\x00\x12\x46\n\x05input\x18\x02 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1.StreamingSynthesisInputH\x00\x42\x13\n\x11streaming_request\"4\n\x1bStreamingSynthesizeResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c*W\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03*{\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0c\n\x08OGG_OPUS\x10\x03\x12\t\n\x05MULAW\x10\x05\x12\x08\n\x04\x41LAW\x10\x06\x12\x07\n\x03PCM\x10\x07\x12\x07\n\x03M4A\x10\x08\x32\xc7\x04\n\x0cTextToSpeech\x12\x93\x01\n\nListVoices\x12/.google.cloud.texttospeech.v1.ListVoicesRequest\x1a\x30.google.cloud.texttospeech.v1.ListVoicesResponse\"\"\xda\x41\rlanguage_code\x82\xd3\xe4\x93\x02\x0c\x12\n/v1/voices\x12\xbc\x01\n\x10SynthesizeSpeech\x12\x35.google.cloud.texttospeech.v1.SynthesizeSpeechRequest\x1a\x36.google.cloud.texttospeech.v1.SynthesizeSpeechResponse\"9\xda\x41\x18input,voice,audio_config\x82\xd3\xe4\x93\x02\x18\"\x13/v1/text:synthesize:\x01*\x12\x90\x01\n\x13StreamingSynthesize\x12\x38.google.cloud.texttospeech.v1.StreamingSynthesizeRequest\x1a\x39.google.cloud.texttospeech.v1.StreamingSynthesizeResponse\"\x00(\x01\x30\x01\x1aO\xca\x41\x1btexttospeech.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xbc\x02\n com.google.cloud.texttospeech.v1B\x11TextToSpeechProtoP\x01ZDcloud.google.com/go/texttospeech/apiv1/texttospeechpb;texttospeechpb\xa2\x02\x04\x43TTS\xaa\x02\x1cGoogle.Cloud.TextToSpeech.V1\xca\x02\x1cGoogle\\Cloud\\TextToSpeech\\V1\xea\x02\x1fGoogle::Cloud::TextToSpeech::V1\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}b\x06proto3"
pool = ::Google::Protobuf::DescriptorPool.generated_pool
pool.add_serialized_file(descriptor_data)
@@ -23,6 +23,10 @@ module V1
ListVoicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.ListVoicesResponse").msgclass
Voice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.Voice").msgclass
AdvancedVoiceOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AdvancedVoiceOptions").msgclass
+ AdvancedVoiceOptions::SafetySetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySetting").msgclass
+ AdvancedVoiceOptions::SafetySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AdvancedVoiceOptions.SafetySettings").msgclass
+ AdvancedVoiceOptions::HarmCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmCategory").enummodule
+ AdvancedVoiceOptions::HarmBlockThreshold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.AdvancedVoiceOptions.HarmBlockThreshold").enummodule
SynthesizeSpeechRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.SynthesizeSpeechRequest").msgclass
CustomPronunciationParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.CustomPronunciationParams").msgclass
CustomPronunciationParams::PhoneticEncoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1.CustomPronunciationParams.PhoneticEncoding").enummodule
diff --git a/google-cloud-text_to_speech-v1/proto_docs/google/api/client.rb b/google-cloud-text_to_speech-v1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-text_to_speech-v1/proto_docs/google/api/client.rb
+++ b/google-cloud-text_to_speech-v1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-text_to_speech-v1/proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb b/google-cloud-text_to_speech-v1/proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb
index 2ac3fcb20191..6aa6309743e0 100644
--- a/google-cloud-text_to_speech-v1/proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb
+++ b/google-cloud-text_to_speech-v1/proto_docs/google/cloud/texttospeech/v1/cloud_tts.rb
@@ -72,14 +72,84 @@ class Voice
# Only for Journey voices. If false, the synthesis is context aware
# and has a higher latency.
# @!attribute [rw] relax_safety_filters
+ # @deprecated This field is deprecated and may be removed in the next major version update.
# @return [::Boolean]
- # Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only
- # supported for accounts linked to Invoiced (Offline) Cloud billing accounts.
- # Otherwise, will return result
- # [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
+ # Optional. Input only. Deprecated, use safety_settings instead.
+ # If true, relaxes safety filters for Gemini TTS.
+ # @!attribute [rw] safety_settings
+ # @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::SafetySettings]
+ # Optional. Input only. This applies to Gemini TTS only. If set, the category
+ # specified in the safety setting will be blocked if the harm probability is
+ # above the threshold. Otherwise, the safety filter will be disabled by
+ # default.
+ # @!attribute [rw] enable_textnorm
+ # @return [::Boolean]
+ # Optional. If true, textnorm will be applied to text input. This feature is
+ # enabled by default. Only applies for Gemini TTS.
class AdvancedVoiceOptions
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
+
+ # Safety setting for a single harm category.
+ # @!attribute [rw] category
+ # @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmCategory]
+ # The harm category to apply the safety setting to.
+ # @!attribute [rw] threshold
+ # @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::HarmBlockThreshold]
+ # The harm block threshold for the safety setting.
+ class SafetySetting
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # Safety settings for the request.
+ # @!attribute [rw] settings
+ # @return [::Array<::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions::SafetySetting>]
+ # The safety settings for the request.
+ class SafetySettings
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # Harm categories that will block the content.
+ module HarmCategory
+ # Default value. This value is unused.
+ HARM_CATEGORY_UNSPECIFIED = 0
+
+ # Content that promotes violence or incites hatred against individuals or
+ # groups based on certain attributes.
+ HARM_CATEGORY_HATE_SPEECH = 1
+
+ # Content that promotes, facilitates, or enables dangerous activities.
+ HARM_CATEGORY_DANGEROUS_CONTENT = 2
+
+ # Abusive, threatening, or content intended to bully, torment, or ridicule.
+ HARM_CATEGORY_HARASSMENT = 3
+
+ # Content that contains sexually explicit material.
+ HARM_CATEGORY_SEXUALLY_EXPLICIT = 4
+ end
+
+ # Harm block thresholds for the safety settings.
+ module HarmBlockThreshold
+ # The harm block threshold is unspecified.
+ HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0
+
+ # Block content with a low harm probability or higher.
+ BLOCK_LOW_AND_ABOVE = 1
+
+ # Block content with a medium harm probability or higher.
+ BLOCK_MEDIUM_AND_ABOVE = 2
+
+ # Block content with a high harm probability.
+ BLOCK_ONLY_HIGH = 3
+
+ # Do not block any content, regardless of its harm probability.
+ BLOCK_NONE = 4
+
+ # Turn off the safety filter entirely.
+ OFF = 5
+ end
end
# The top-level message sent by the client for the `SynthesizeSpeech` method.
@@ -94,7 +164,7 @@ class AdvancedVoiceOptions
# Required. The configuration of the synthesized audio.
# @!attribute [rw] advanced_voice_options
# @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions]
- # Advanced voice options.
+ # Optional. Advanced voice options.
class SynthesizeSpeechRequest
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -224,8 +294,8 @@ class MultiSpeakerVoiceConfig
# Note: The following fields are mutually exclusive: `text`, `markup`, `ssml`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
# @!attribute [rw] markup
# @return [::String]
- # Markup for HD voices specifically. This field may not be used with any
- # other voices.
+ # Markup for Chirp 3: HD voices specifically. This field may not be used
+ # with any other voices.
#
# Note: The following fields are mutually exclusive: `markup`, `text`, `ssml`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
# @!attribute [rw] ssml
@@ -453,6 +523,9 @@ class StreamingAudioConfig
# In order to customize the pronunciation of a phrase, there must be an exact
# match of the phrase in the input types. If using SSML, the phrase must not
# be inside a phoneme tag.
+ # @!attribute [rw] advanced_voice_options
+ # @return [::Google::Cloud::TextToSpeech::V1::AdvancedVoiceOptions]
+ # Optional. Advanced voice options.
class StreamingSynthesizeConfig
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -468,8 +541,8 @@ class StreamingSynthesizeConfig
# Note: The following fields are mutually exclusive: `text`, `markup`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
# @!attribute [rw] markup
# @return [::String]
- # Markup for HD voices specifically. This field may not be used with any
- # other voices.
+ # Markup for Chirp 3: HD voices specifically. This field may not be used
+ # with any other voices.
#
# Note: The following fields are mutually exclusive: `markup`, `text`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
# @!attribute [rw] multi_speaker_markup
diff --git a/google-cloud-text_to_speech-v1beta1/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/client.rb b/google-cloud-text_to_speech-v1beta1/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/client.rb
index 0b06107db924..43927ef13953 100644
--- a/google-cloud-text_to_speech-v1beta1/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/client.rb
+++ b/google-cloud-text_to_speech-v1beta1/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/client.rb
@@ -300,7 +300,7 @@ def list_voices request, options = nil
# @param enable_time_pointing [::Array<::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest::TimepointType>]
# Whether and what timepoints are returned in the response.
# @param advanced_voice_options [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions, ::Hash]
- # Advanced voice options.
+ # Optional. Advanced voice options.
#
# @yield [response, operation] Access the result along with the RPC operation
# @yieldparam response [::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechResponse]
diff --git a/google-cloud-text_to_speech-v1beta1/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest/client.rb b/google-cloud-text_to_speech-v1beta1/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest/client.rb
index 72d4ab377a51..90007a2f7f9d 100644
--- a/google-cloud-text_to_speech-v1beta1/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest/client.rb
+++ b/google-cloud-text_to_speech-v1beta1/lib/google/cloud/text_to_speech/v1beta1/text_to_speech/rest/client.rb
@@ -294,7 +294,7 @@ def list_voices request, options = nil
# @param enable_time_pointing [::Array<::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechRequest::TimepointType>]
# Whether and what timepoints are returned in the response.
# @param advanced_voice_options [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions, ::Hash]
- # Advanced voice options.
+ # Optional. Advanced voice options.
# @yield [result, operation] Access the result along with the TransportOperation object
# @yieldparam result [::Google::Cloud::TextToSpeech::V1beta1::SynthesizeSpeechResponse]
# @yieldparam operation [::Gapic::Rest::TransportOperation]
diff --git a/google-cloud-text_to_speech-v1beta1/lib/google/cloud/texttospeech/v1beta1/cloud_tts_pb.rb b/google-cloud-text_to_speech-v1beta1/lib/google/cloud/texttospeech/v1beta1/cloud_tts_pb.rb
index 97c62505dec7..9af8760abe06 100644
--- a/google-cloud-text_to_speech-v1beta1/lib/google/cloud/texttospeech/v1beta1/cloud_tts_pb.rb
+++ b/google-cloud-text_to_speech-v1beta1/lib/google/cloud/texttospeech/v1beta1/cloud_tts_pb.rb
@@ -10,7 +10,7 @@
require 'google/api/resource_pb'
-descriptor_data = "\n1google/cloud/texttospeech/v1beta1/cloud_tts.proto\x12!google.cloud.texttospeech.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"/\n\x11ListVoicesRequest\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x01\"N\n\x12ListVoicesResponse\x12\x38\n\x06voices\x18\x01 \x03(\x0b\x32(.google.cloud.texttospeech.v1beta1.Voice\"\x99\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\x8a\x01\n\x14\x41\x64vancedVoiceOptions\x12*\n\x1dlow_latency_journey_synthesis\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12$\n\x14relax_safety_filters\x18\x08 \x01(\x08\x42\x06\xe0\x41\x04\xe0\x41\x01\x42 \n\x1e_low_latency_journey_synthesis\"\x99\x04\n\x17SynthesizeSpeechRequest\x12\x45\n\x05input\x18\x01 \x01(\x0b\x32\x31.google.cloud.texttospeech.v1beta1.SynthesisInputB\x03\xe0\x41\x02\x12K\n\x05voice\x18\x02 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12I\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32..google.cloud.texttospeech.v1beta1.AudioConfigB\x03\xe0\x41\x02\x12\x66\n\x14\x65nable_time_pointing\x18\x04 \x03(\x0e\x32H.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType\x12\\\n\x16\x61\x64vanced_voice_options\x18\x08 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsH\x00\x88\x01\x01\">\n\rTimepointType\x12\x1e\n\x1aTIMEPOINT_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tSSML_MARK\x10\x01\x42\x19\n\x17_advanced_voice_options\"\xa7\x03\n\x19\x43ustomPronunciationParams\x12\x13\n\x06phrase\x18\x01 \x01(\tH\x00\x88\x01\x01\x12m\n\x11phonetic_encoding\x18\x02 \x01(\x0e\x32M.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncodingH\x01\x88\x01\x01\x12\x1a\n\rpronunciation\x18\x03 \x01(\tH\x02\x88\x01\x01\"\xb6\x01\n\x10PhoneticEncoding\x12!\n\x1dPHONETIC_ENCODING_UNSPECIFIED\x10\x00\x12\x19\n\x15PHONETIC_ENCODING_IPA\x10\x01\x12\x1d\n\x19PHONETIC_ENCODING_X_SAMPA\x10\x02\x12\'\n#PHONETIC_ENCODING_JAPANESE_YOMIGANA\x10\x03\x12\x1c\n\x18PHONETIC_ENCODING_PINYIN\x10\x04\x42\t\n\x07_phraseB\x14\n\x12_phonetic_encodingB\x10\n\x0e_pronunciation\"l\n\x14\x43ustomPronunciations\x12T\n\x0epronunciations\x18\x01 \x03(\x0b\x32<.google.cloud.texttospeech.v1beta1.CustomPronunciationParams\"\x95\x01\n\x12MultiSpeakerMarkup\x12N\n\x05turns\x18\x01 \x03(\x0b\x32:.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnB\x03\xe0\x41\x02\x1a/\n\x04Turn\x12\x14\n\x07speaker\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04text\x18\x02 \x01(\tB\x03\xe0\x41\x02\"P\n\x19MultispeakerPrebuiltVoice\x12\x1a\n\rspeaker_alias\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nspeaker_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"{\n\x17MultiSpeakerVoiceConfig\x12`\n\x15speaker_voice_configs\x18\x02 \x03(\x0b\x32<.google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoiceB\x03\xe0\x41\x02\"\xa6\x02\n\x0eSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x12U\n\x14multi_speaker_markup\x18\x04 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x12[\n\x15\x63ustom_pronunciations\x18\x03 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.CustomPronunciationsB\x03\xe0\x41\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xa2\x03\n\x14VoiceSelectionParams\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\x12J\n\x0c\x63ustom_voice\x18\x04 \x01(\x0b\x32\x34.google.cloud.texttospeech.v1beta1.CustomVoiceParams\x12M\n\x0bvoice_clone\x18\x05 \x01(\x0b\x32\x33.google.cloud.texttospeech.v1beta1.VoiceCloneParamsB\x03\xe0\x41\x01\x12\x17\n\nmodel_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x63\n\x1amulti_speaker_voice_config\x18\x07 \x01(\x0b\x32:.google.cloud.texttospeech.v1beta1.MultiSpeakerVoiceConfigB\x03\xe0\x41\x01\"\xf6\x01\n\x0b\x41udioConfig\x12M\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x30.google.cloud.texttospeech.v1beta1.AudioEncodingB\x03\xe0\x41\x02\x12\x1d\n\rspeaking_rate\x18\x02 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x15\n\x05pitch\x18\x03 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x1e\n\x0evolume_gain_db\x18\x04 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x1e\n\x11sample_rate_hertz\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\"\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x06 \x03(\tB\x06\xe0\x41\x04\xe0\x41\x01\"\xf6\x01\n\x11\x43ustomVoiceParams\x12\x32\n\x05model\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\x61\n\x0ereported_usage\x18\x03 \x01(\x0e\x32\x42.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsageB\x05\x18\x01\xe0\x41\x01\"J\n\rReportedUsage\x12\x1e\n\x1aREPORTED_USAGE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REALTIME\x10\x01\x12\x0b\n\x07OFFLINE\x10\x02\"2\n\x10VoiceCloneParams\x12\x1e\n\x11voice_cloning_key\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xb9\x01\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c\x12@\n\ntimepoints\x18\x02 \x03(\x0b\x32,.google.cloud.texttospeech.v1beta1.Timepoint\x12\x44\n\x0c\x61udio_config\x18\x04 \x01(\x0b\x32..google.cloud.texttospeech.v1beta1.AudioConfig\"4\n\tTimepoint\x12\x11\n\tmark_name\x18\x04 \x01(\t\x12\x14\n\x0ctime_seconds\x18\x03 \x01(\x01\"\xa4\x01\n\x14StreamingAudioConfig\x12M\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x30.google.cloud.texttospeech.v1beta1.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1d\n\rspeaking_rate\x18\x03 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\"\xa3\x02\n\x19StreamingSynthesizeConfig\x12K\n\x05voice\x18\x01 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12\\\n\x16streaming_audio_config\x18\x04 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.StreamingAudioConfigB\x03\xe0\x41\x01\x12[\n\x15\x63ustom_pronunciations\x18\x05 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.CustomPronunciationsB\x03\xe0\x41\x01\"\xc2\x01\n\x17StreamingSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12U\n\x14multi_speaker_markup\x18\x07 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xd8\x01\n\x1aStreamingSynthesizeRequest\x12X\n\x10streaming_config\x18\x01 \x01(\x0b\x32<.google.cloud.texttospeech.v1beta1.StreamingSynthesizeConfigH\x00\x12K\n\x05input\x18\x02 \x01(\x0b\x32:.google.cloud.texttospeech.v1beta1.StreamingSynthesisInputH\x00\x42\x13\n\x11streaming_request\"4\n\x1bStreamingSynthesizeResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c*W\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03*\x8c\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0f\n\x0bMP3_64_KBPS\x10\x04\x12\x0c\n\x08OGG_OPUS\x10\x03\x12\t\n\x05MULAW\x10\x05\x12\x08\n\x04\x41LAW\x10\x06\x12\x07\n\x03PCM\x10\x07\x12\x07\n\x03M4A\x10\x08\x32\xef\x04\n\x0cTextToSpeech\x12\xa2\x01\n\nListVoices\x12\x34.google.cloud.texttospeech.v1beta1.ListVoicesRequest\x1a\x35.google.cloud.texttospeech.v1beta1.ListVoicesResponse\"\'\xda\x41\rlanguage_code\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1beta1/voices\x12\xcb\x01\n\x10SynthesizeSpeech\x12:.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest\x1a;.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse\">\xda\x41\x18input,voice,audio_config\x82\xd3\xe4\x93\x02\x1d\"\x18/v1beta1/text:synthesize:\x01*\x12\x9a\x01\n\x13StreamingSynthesize\x12=.google.cloud.texttospeech.v1beta1.StreamingSynthesizeRequest\x1a>.google.cloud.texttospeech.v1beta1.StreamingSynthesizeResponse\"\x00(\x01\x30\x01\x1aO\xca\x41\x1btexttospeech.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd5\x02\n%com.google.cloud.texttospeech.v1beta1B\x11TextToSpeechProtoP\x01ZIcloud.google.com/go/texttospeech/apiv1beta1/texttospeechpb;texttospeechpb\xa2\x02\x04\x43TTS\xaa\x02!Google.Cloud.TextToSpeech.V1Beta1\xca\x02!Google\\Cloud\\TextToSpeech\\V1beta1\xea\x02$Google::Cloud::TextToSpeech::V1beta1\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}b\x06proto3"
+descriptor_data = "\n1google/cloud/texttospeech/v1beta1/cloud_tts.proto\x12!google.cloud.texttospeech.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"/\n\x11ListVoicesRequest\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x01\"N\n\x12ListVoicesResponse\x12\x38\n\x06voices\x18\x01 \x03(\x0b\x32(.google.cloud.texttospeech.v1beta1.Voice\"\x99\x01\n\x05Voice\x12\x16\n\x0elanguage_codes\x18\x01 \x03(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\x12!\n\x19natural_sample_rate_hertz\x18\x04 \x01(\x05\"\xb7\x07\n\x14\x41\x64vancedVoiceOptions\x12*\n\x1dlow_latency_journey_synthesis\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12&\n\x14relax_safety_filters\x18\x08 \x01(\x08\x42\x08\x18\x01\xe0\x41\x04\xe0\x41\x01\x12g\n\x0fsafety_settings\x18\t \x01(\x0b\x32\x46.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySettingsB\x06\xe0\x41\x04\xe0\x41\x01\x12!\n\x0f\x65nable_textnorm\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01H\x01\x88\x01\x01\x1a\xc6\x01\n\rSafetySetting\x12V\n\x08\x63\x61tegory\x18\x01 \x01(\x0e\x32\x44.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmCategory\x12]\n\tthreshold\x18\x02 \x01(\x0e\x32J.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmBlockThreshold\x1ai\n\x0eSafetySettings\x12W\n\x08settings\x18\x01 \x03(\x0b\x32\x45.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting\"\xb4\x01\n\x0cHarmCategory\x12\x1d\n\x19HARM_CATEGORY_UNSPECIFIED\x10\x00\x12\x1d\n\x19HARM_CATEGORY_HATE_SPEECH\x10\x01\x12#\n\x1fHARM_CATEGORY_DANGEROUS_CONTENT\x10\x02\x12\x1c\n\x18HARM_CATEGORY_HARASSMENT\x10\x03\x12#\n\x1fHARM_CATEGORY_SEXUALLY_EXPLICIT\x10\x04\"\x9d\x01\n\x12HarmBlockThreshold\x12$\n HARM_BLOCK_THRESHOLD_UNSPECIFIED\x10\x00\x12\x17\n\x13\x42LOCK_LOW_AND_ABOVE\x10\x01\x12\x1a\n\x16\x42LOCK_MEDIUM_AND_ABOVE\x10\x02\x12\x13\n\x0f\x42LOCK_ONLY_HIGH\x10\x03\x12\x0e\n\nBLOCK_NONE\x10\x04\x12\x07\n\x03OFF\x10\x05\x42 \n\x1e_low_latency_journey_synthesisB\x12\n\x10_enable_textnorm\"\x9e\x04\n\x17SynthesizeSpeechRequest\x12\x45\n\x05input\x18\x01 \x01(\x0b\x32\x31.google.cloud.texttospeech.v1beta1.SynthesisInputB\x03\xe0\x41\x02\x12K\n\x05voice\x18\x02 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12I\n\x0c\x61udio_config\x18\x03 \x01(\x0b\x32..google.cloud.texttospeech.v1beta1.AudioConfigB\x03\xe0\x41\x02\x12\x66\n\x14\x65nable_time_pointing\x18\x04 \x03(\x0e\x32H.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType\x12\x61\n\x16\x61\x64vanced_voice_options\x18\x08 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsB\x03\xe0\x41\x01H\x00\x88\x01\x01\">\n\rTimepointType\x12\x1e\n\x1aTIMEPOINT_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tSSML_MARK\x10\x01\x42\x19\n\x17_advanced_voice_options\"\xa7\x03\n\x19\x43ustomPronunciationParams\x12\x13\n\x06phrase\x18\x01 \x01(\tH\x00\x88\x01\x01\x12m\n\x11phonetic_encoding\x18\x02 \x01(\x0e\x32M.google.cloud.texttospeech.v1beta1.CustomPronunciationParams.PhoneticEncodingH\x01\x88\x01\x01\x12\x1a\n\rpronunciation\x18\x03 \x01(\tH\x02\x88\x01\x01\"\xb6\x01\n\x10PhoneticEncoding\x12!\n\x1dPHONETIC_ENCODING_UNSPECIFIED\x10\x00\x12\x19\n\x15PHONETIC_ENCODING_IPA\x10\x01\x12\x1d\n\x19PHONETIC_ENCODING_X_SAMPA\x10\x02\x12\'\n#PHONETIC_ENCODING_JAPANESE_YOMIGANA\x10\x03\x12\x1c\n\x18PHONETIC_ENCODING_PINYIN\x10\x04\x42\t\n\x07_phraseB\x14\n\x12_phonetic_encodingB\x10\n\x0e_pronunciation\"l\n\x14\x43ustomPronunciations\x12T\n\x0epronunciations\x18\x01 \x03(\x0b\x32<.google.cloud.texttospeech.v1beta1.CustomPronunciationParams\"\x95\x01\n\x12MultiSpeakerMarkup\x12N\n\x05turns\x18\x01 \x03(\x0b\x32:.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkup.TurnB\x03\xe0\x41\x02\x1a/\n\x04Turn\x12\x14\n\x07speaker\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04text\x18\x02 \x01(\tB\x03\xe0\x41\x02\"P\n\x19MultispeakerPrebuiltVoice\x12\x1a\n\rspeaker_alias\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nspeaker_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"{\n\x17MultiSpeakerVoiceConfig\x12`\n\x15speaker_voice_configs\x18\x02 \x03(\x0b\x32<.google.cloud.texttospeech.v1beta1.MultispeakerPrebuiltVoiceB\x03\xe0\x41\x02\"\xa6\x02\n\x0eSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x12U\n\x14multi_speaker_markup\x18\x04 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x12[\n\x15\x63ustom_pronunciations\x18\x03 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.CustomPronunciationsB\x03\xe0\x41\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xa2\x03\n\x14VoiceSelectionParams\x12\x1a\n\rlanguage_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0c\n\x04name\x18\x02 \x01(\t\x12G\n\x0bssml_gender\x18\x03 \x01(\x0e\x32\x32.google.cloud.texttospeech.v1beta1.SsmlVoiceGender\x12J\n\x0c\x63ustom_voice\x18\x04 \x01(\x0b\x32\x34.google.cloud.texttospeech.v1beta1.CustomVoiceParams\x12M\n\x0bvoice_clone\x18\x05 \x01(\x0b\x32\x33.google.cloud.texttospeech.v1beta1.VoiceCloneParamsB\x03\xe0\x41\x01\x12\x17\n\nmodel_name\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x63\n\x1amulti_speaker_voice_config\x18\x07 \x01(\x0b\x32:.google.cloud.texttospeech.v1beta1.MultiSpeakerVoiceConfigB\x03\xe0\x41\x01\"\xf6\x01\n\x0b\x41udioConfig\x12M\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x30.google.cloud.texttospeech.v1beta1.AudioEncodingB\x03\xe0\x41\x02\x12\x1d\n\rspeaking_rate\x18\x02 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x15\n\x05pitch\x18\x03 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x1e\n\x0evolume_gain_db\x18\x04 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\x12\x1e\n\x11sample_rate_hertz\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\x12\"\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x06 \x03(\tB\x06\xe0\x41\x04\xe0\x41\x01\"\xf6\x01\n\x11\x43ustomVoiceParams\x12\x32\n\x05model\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1b\x61utoml.googleapis.com/Model\x12\x61\n\x0ereported_usage\x18\x03 \x01(\x0e\x32\x42.google.cloud.texttospeech.v1beta1.CustomVoiceParams.ReportedUsageB\x05\x18\x01\xe0\x41\x01\"J\n\rReportedUsage\x12\x1e\n\x1aREPORTED_USAGE_UNSPECIFIED\x10\x00\x12\x0c\n\x08REALTIME\x10\x01\x12\x0b\n\x07OFFLINE\x10\x02\"2\n\x10VoiceCloneParams\x12\x1e\n\x11voice_cloning_key\x18\x01 \x01(\tB\x03\xe0\x41\x02\"\xb9\x01\n\x18SynthesizeSpeechResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c\x12@\n\ntimepoints\x18\x02 \x03(\x0b\x32,.google.cloud.texttospeech.v1beta1.Timepoint\x12\x44\n\x0c\x61udio_config\x18\x04 \x01(\x0b\x32..google.cloud.texttospeech.v1beta1.AudioConfig\"4\n\tTimepoint\x12\x11\n\tmark_name\x18\x04 \x01(\t\x12\x14\n\x0ctime_seconds\x18\x03 \x01(\x01\"\xa4\x01\n\x14StreamingAudioConfig\x12M\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32\x30.google.cloud.texttospeech.v1beta1.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1d\n\rspeaking_rate\x18\x03 \x01(\x01\x42\x06\xe0\x41\x04\xe0\x41\x01\"\xa1\x03\n\x19StreamingSynthesizeConfig\x12K\n\x05voice\x18\x01 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.VoiceSelectionParamsB\x03\xe0\x41\x02\x12\\\n\x16streaming_audio_config\x18\x04 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.StreamingAudioConfigB\x03\xe0\x41\x01\x12[\n\x15\x63ustom_pronunciations\x18\x05 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.CustomPronunciationsB\x03\xe0\x41\x01\x12\x61\n\x16\x61\x64vanced_voice_options\x18\x07 \x01(\x0b\x32\x37.google.cloud.texttospeech.v1beta1.AdvancedVoiceOptionsB\x03\xe0\x41\x01H\x00\x88\x01\x01\x42\x19\n\x17_advanced_voice_options\"\xc2\x01\n\x17StreamingSynthesisInput\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x10\n\x06markup\x18\x05 \x01(\tH\x00\x12U\n\x14multi_speaker_markup\x18\x07 \x01(\x0b\x32\x35.google.cloud.texttospeech.v1beta1.MultiSpeakerMarkupH\x00\x12\x13\n\x06prompt\x18\x06 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0cinput_sourceB\t\n\x07_prompt\"\xd8\x01\n\x1aStreamingSynthesizeRequest\x12X\n\x10streaming_config\x18\x01 \x01(\x0b\x32<.google.cloud.texttospeech.v1beta1.StreamingSynthesizeConfigH\x00\x12K\n\x05input\x18\x02 \x01(\x0b\x32:.google.cloud.texttospeech.v1beta1.StreamingSynthesisInputH\x00\x42\x13\n\x11streaming_request\"4\n\x1bStreamingSynthesizeResponse\x12\x15\n\raudio_content\x18\x01 \x01(\x0c*W\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x08\n\x04MALE\x10\x01\x12\n\n\x06\x46\x45MALE\x10\x02\x12\x0b\n\x07NEUTRAL\x10\x03*\x8c\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x0c\n\x08LINEAR16\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x0f\n\x0bMP3_64_KBPS\x10\x04\x12\x0c\n\x08OGG_OPUS\x10\x03\x12\t\n\x05MULAW\x10\x05\x12\x08\n\x04\x41LAW\x10\x06\x12\x07\n\x03PCM\x10\x07\x12\x07\n\x03M4A\x10\x08\x32\xef\x04\n\x0cTextToSpeech\x12\xa2\x01\n\nListVoices\x12\x34.google.cloud.texttospeech.v1beta1.ListVoicesRequest\x1a\x35.google.cloud.texttospeech.v1beta1.ListVoicesResponse\"\'\xda\x41\rlanguage_code\x82\xd3\xe4\x93\x02\x11\x12\x0f/v1beta1/voices\x12\xcb\x01\n\x10SynthesizeSpeech\x12:.google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest\x1a;.google.cloud.texttospeech.v1beta1.SynthesizeSpeechResponse\">\xda\x41\x18input,voice,audio_config\x82\xd3\xe4\x93\x02\x1d\"\x18/v1beta1/text:synthesize:\x01*\x12\x9a\x01\n\x13StreamingSynthesize\x12=.google.cloud.texttospeech.v1beta1.StreamingSynthesizeRequest\x1a>.google.cloud.texttospeech.v1beta1.StreamingSynthesizeResponse\"\x00(\x01\x30\x01\x1aO\xca\x41\x1btexttospeech.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xd5\x02\n%com.google.cloud.texttospeech.v1beta1B\x11TextToSpeechProtoP\x01ZIcloud.google.com/go/texttospeech/apiv1beta1/texttospeechpb;texttospeechpb\xa2\x02\x04\x43TTS\xaa\x02!Google.Cloud.TextToSpeech.V1Beta1\xca\x02!Google\\Cloud\\TextToSpeech\\V1beta1\xea\x02$Google::Cloud::TextToSpeech::V1beta1\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}b\x06proto3"
pool = ::Google::Protobuf::DescriptorPool.generated_pool
pool.add_serialized_file(descriptor_data)
@@ -23,6 +23,10 @@ module V1beta1
ListVoicesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.ListVoicesResponse").msgclass
Voice = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.Voice").msgclass
AdvancedVoiceOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions").msgclass
+ AdvancedVoiceOptions::SafetySetting = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySetting").msgclass
+ AdvancedVoiceOptions::SafetySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.SafetySettings").msgclass
+ AdvancedVoiceOptions::HarmCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmCategory").enummodule
+ AdvancedVoiceOptions::HarmBlockThreshold = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.AdvancedVoiceOptions.HarmBlockThreshold").enummodule
SynthesizeSpeechRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest").msgclass
SynthesizeSpeechRequest::TimepointType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.SynthesizeSpeechRequest.TimepointType").enummodule
CustomPronunciationParams = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.texttospeech.v1beta1.CustomPronunciationParams").msgclass
diff --git a/google-cloud-text_to_speech-v1beta1/proto_docs/google/api/client.rb b/google-cloud-text_to_speech-v1beta1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-text_to_speech-v1beta1/proto_docs/google/api/client.rb
+++ b/google-cloud-text_to_speech-v1beta1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-text_to_speech-v1beta1/proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.rb b/google-cloud-text_to_speech-v1beta1/proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.rb
index afcbe8f9bc5a..00e3e48d89de 100644
--- a/google-cloud-text_to_speech-v1beta1/proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.rb
+++ b/google-cloud-text_to_speech-v1beta1/proto_docs/google/cloud/texttospeech/v1beta1/cloud_tts.rb
@@ -72,14 +72,84 @@ class Voice
# Only for Journey voices. If false, the synthesis is context aware
# and has a higher latency.
# @!attribute [rw] relax_safety_filters
+ # @deprecated This field is deprecated and may be removed in the next major version update.
# @return [::Boolean]
- # Optional. Input only. If true, relaxes safety filters for Gemini TTS. Only
- # supported for accounts linked to Invoiced (Offline) Cloud billing accounts.
- # Otherwise, will return result
- # [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT].
+ # Optional. Input only. Deprecated, use safety_settings instead.
+ # If true, relaxes safety filters for Gemini TTS.
+ # @!attribute [rw] safety_settings
+ # @return [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions::SafetySettings]
+ # Optional. Input only. This applies to Gemini TTS only. If set, the category
+ # specified in the safety setting will be blocked if the harm probability is
+ # above the threshold. Otherwise, the safety filter will be disabled by
+ # default.
+ # @!attribute [rw] enable_textnorm
+ # @return [::Boolean]
+ # Optional. If true, textnorm will be applied to text input. This feature is
+ # enabled by default. Only applies for Gemini TTS.
class AdvancedVoiceOptions
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
+
+ # Safety setting for a single harm category.
+ # @!attribute [rw] category
+ # @return [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions::HarmCategory]
+ # The harm category to apply the safety setting to.
+ # @!attribute [rw] threshold
+ # @return [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions::HarmBlockThreshold]
+ # The harm block threshold for the safety setting.
+ class SafetySetting
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # Safety settings for the request.
+ # @!attribute [rw] settings
+ # @return [::Array<::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions::SafetySetting>]
+ # The safety settings for the request.
+ class SafetySettings
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # Harm categories that will block the content.
+ module HarmCategory
+ # Default value. This value is unused.
+ HARM_CATEGORY_UNSPECIFIED = 0
+
+ # Content that promotes violence or incites hatred against individuals or
+ # groups based on certain attributes.
+ HARM_CATEGORY_HATE_SPEECH = 1
+
+ # Content that promotes, facilitates, or enables dangerous activities.
+ HARM_CATEGORY_DANGEROUS_CONTENT = 2
+
+ # Abusive, threatening, or content intended to bully, torment, or ridicule.
+ HARM_CATEGORY_HARASSMENT = 3
+
+ # Content that contains sexually explicit material.
+ HARM_CATEGORY_SEXUALLY_EXPLICIT = 4
+ end
+
+ # Harm block thresholds for the safety settings.
+ module HarmBlockThreshold
+ # The harm block threshold is unspecified.
+ HARM_BLOCK_THRESHOLD_UNSPECIFIED = 0
+
+ # Block content with a low harm probability or higher.
+ BLOCK_LOW_AND_ABOVE = 1
+
+ # Block content with a medium harm probability or higher.
+ BLOCK_MEDIUM_AND_ABOVE = 2
+
+ # Block content with a high harm probability.
+ BLOCK_ONLY_HIGH = 3
+
+ # Do not block any content, regardless of its harm probability.
+ BLOCK_NONE = 4
+
+ # Turn off the safety filter entirely.
+ OFF = 5
+ end
end
# The top-level message sent by the client for the `SynthesizeSpeech` method.
@@ -97,7 +167,7 @@ class AdvancedVoiceOptions
# Whether and what timepoints are returned in the response.
# @!attribute [rw] advanced_voice_options
# @return [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions]
- # Advanced voice options.
+ # Optional. Advanced voice options.
class SynthesizeSpeechRequest
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -236,8 +306,8 @@ class MultiSpeakerVoiceConfig
# Note: The following fields are mutually exclusive: `text`, `markup`, `ssml`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
# @!attribute [rw] markup
# @return [::String]
- # Markup for HD voices specifically. This field may not be used with any
- # other voices.
+ # Markup for Chirp 3: HD voices specifically. This field may not be used
+ # with any other voices.
#
# Note: The following fields are mutually exclusive: `markup`, `text`, `ssml`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
# @!attribute [rw] ssml
@@ -485,6 +555,9 @@ class StreamingAudioConfig
# In order to customize the pronunciation of a phrase, there must be an exact
# match of the phrase in the input types. If using SSML, the phrase must not
# be inside a phoneme tag.
+ # @!attribute [rw] advanced_voice_options
+ # @return [::Google::Cloud::TextToSpeech::V1beta1::AdvancedVoiceOptions]
+ # Optional. Advanced voice options.
class StreamingSynthesizeConfig
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -500,8 +573,8 @@ class StreamingSynthesizeConfig
# Note: The following fields are mutually exclusive: `text`, `markup`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
# @!attribute [rw] markup
# @return [::String]
- # Markup for HD voices specifically. This field may not be used with any
- # other voices.
+ # Markup for Chirp 3: HD voices specifically. This field may not be used
+ # with any other voices.
#
# Note: The following fields are mutually exclusive: `markup`, `text`, `multi_speaker_markup`. If a field in that set is populated, all other fields in the set will automatically be cleared.
# @!attribute [rw] multi_speaker_markup
diff --git a/google-cloud-tpu-v1/proto_docs/google/api/client.rb b/google-cloud-tpu-v1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-tpu-v1/proto_docs/google/api/client.rb
+++ b/google-cloud-tpu-v1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-trace-v1/proto_docs/google/api/client.rb b/google-cloud-trace-v1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-trace-v1/proto_docs/google/api/client.rb
+++ b/google-cloud-trace-v1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-trace-v2/proto_docs/google/api/client.rb b/google-cloud-trace-v2/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-trace-v2/proto_docs/google/api/client.rb
+++ b/google-cloud-trace-v2/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-translate-v3/proto_docs/google/api/client.rb b/google-cloud-translate-v3/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-translate-v3/proto_docs/google/api/client.rb
+++ b/google-cloud-translate-v3/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-video-live_stream-v1/proto_docs/google/api/client.rb b/google-cloud-video-live_stream-v1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-video-live_stream-v1/proto_docs/google/api/client.rb
+++ b/google-cloud-video-live_stream-v1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-video-live_stream-v1/proto_docs/google/type/datetime.rb b/google-cloud-video-live_stream-v1/proto_docs/google/type/datetime.rb
index 942660dc31f4..6b90a6c02867 100644
--- a/google-cloud-video-live_stream-v1/proto_docs/google/type/datetime.rb
+++ b/google-cloud-video-live_stream-v1/proto_docs/google/type/datetime.rb
@@ -32,8 +32,8 @@ module Type
#
# The date is relative to the Proleptic Gregorian Calendar.
#
- # If year is 0, the DateTime is considered not to have a specific year. month
- # and day must have valid, non-zero values.
+ # If year, month, or day are 0, the DateTime is considered not to have a
+ # specific year, month, or day respectively.
#
# This type may also be used to represent a physical time if all the date and
# time fields are set and either case of the `time_offset` oneof is set.
@@ -49,27 +49,28 @@ module Type
# datetime without a year.
# @!attribute [rw] month
# @return [::Integer]
- # Required. Month of year. Must be from 1 to 12.
+ # Optional. Month of year. Must be from 1 to 12, or 0 if specifying a
+ # datetime without a month.
# @!attribute [rw] day
# @return [::Integer]
- # Required. Day of month. Must be from 1 to 31 and valid for the year and
- # month.
+ # Optional. Day of month. Must be from 1 to 31 and valid for the year and
+ # month, or 0 if specifying a datetime without a day.
# @!attribute [rw] hours
# @return [::Integer]
- # Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
- # may choose to allow the value "24:00:00" for scenarios like business
- # closing time.
+ # Optional. Hours of day in 24 hour format. Should be from 0 to 23, defaults
+ # to 0 (midnight). An API may choose to allow the value "24:00:00" for
+ # scenarios like business closing time.
# @!attribute [rw] minutes
# @return [::Integer]
- # Required. Minutes of hour of day. Must be from 0 to 59.
+ # Optional. Minutes of hour of day. Must be from 0 to 59, defaults to 0.
# @!attribute [rw] seconds
# @return [::Integer]
- # Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
- # API may allow the value 60 if it allows leap-seconds.
+ # Optional. Seconds of minutes of the time. Must normally be from 0 to 59,
+ # defaults to 0. An API may allow the value 60 if it allows leap-seconds.
# @!attribute [rw] nanos
# @return [::Integer]
- # Required. Fractions of seconds in nanoseconds. Must be from 0 to
- # 999,999,999.
+ # Optional. Fractions of seconds in nanoseconds. Must be from 0 to
+ # 999,999,999, defaults to 0.
# @!attribute [rw] utc_offset
# @return [::Google::Protobuf::Duration]
# UTC offset. Must be whole seconds, between -18 hours and +18 hours.
@@ -91,10 +92,10 @@ class DateTime
# [IANA Time Zone Database](https://www.iana.org/time-zones).
# @!attribute [rw] id
# @return [::String]
- # IANA Time Zone Database time zone, e.g. "America/New_York".
+ # IANA Time Zone Database time zone. For example "America/New_York".
# @!attribute [rw] version
# @return [::String]
- # Optional. IANA Time Zone Database version number, e.g. "2019a".
+ # Optional. IANA Time Zone Database version number. For example "2019a".
class TimeZone
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
diff --git a/google-cloud-video-stitcher-v1/proto_docs/google/api/client.rb b/google-cloud-video-stitcher-v1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-video-stitcher-v1/proto_docs/google/api/client.rb
+++ b/google-cloud-video-stitcher-v1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-video-transcoder-v1/proto_docs/google/api/client.rb b/google-cloud-video-transcoder-v1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-video-transcoder-v1/proto_docs/google/api/client.rb
+++ b/google-cloud-video-transcoder-v1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-video_intelligence-v1/proto_docs/google/api/client.rb b/google-cloud-video_intelligence-v1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-video_intelligence-v1/proto_docs/google/api/client.rb
+++ b/google-cloud-video_intelligence-v1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-video_intelligence-v1beta2/proto_docs/google/api/client.rb b/google-cloud-video_intelligence-v1beta2/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-video_intelligence-v1beta2/proto_docs/google/api/client.rb
+++ b/google-cloud-video_intelligence-v1beta2/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-video_intelligence-v1p1beta1/proto_docs/google/api/client.rb b/google-cloud-video_intelligence-v1p1beta1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-video_intelligence-v1p1beta1/proto_docs/google/api/client.rb
+++ b/google-cloud-video_intelligence-v1p1beta1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-video_intelligence-v1p2beta1/proto_docs/google/api/client.rb b/google-cloud-video_intelligence-v1p2beta1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-video_intelligence-v1p2beta1/proto_docs/google/api/client.rb
+++ b/google-cloud-video_intelligence-v1p2beta1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-video_intelligence-v1p3beta1/proto_docs/google/api/client.rb b/google-cloud-video_intelligence-v1p3beta1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-video_intelligence-v1p3beta1/proto_docs/google/api/client.rb
+++ b/google-cloud-video_intelligence-v1p3beta1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-vision-v1/proto_docs/google/api/client.rb b/google-cloud-vision-v1/proto_docs/google/api/client.rb
index 8f4ca4b4d6e5..e62ceba4577a 100644
--- a/google-cloud-vision-v1/proto_docs/google/api/client.rb
+++ b/google-cloud-vision-v1/proto_docs/google/api/client.rb
@@ -31,6 +31,8 @@ module Api
# @!attribute [rw] selective_gapic_generation
# @return [::Google::Api::SelectiveGapicGeneration]
# Configuration for which RPCs should be generated in the GAPIC client.
+ #
+ # Note: This field should not be used in most cases.
class CommonLanguageSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -141,9 +143,10 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # library_package: com.google.cloud.pubsub.v1
+ # publishing:
+ # library_settings:
+ # java_settings:
+ # library_package: com.google.cloud.pubsub.v1
# @!attribute [rw] service_class_names
# @return [::Google::Protobuf::Map{::String => ::String}]
# Configure the Java class name to use instead of the service's for its
@@ -155,11 +158,11 @@ class Publishing
#
# Example of a YAML configuration::
#
- # publishing:
- # java_settings:
- # service_class_names:
- # - google.pubsub.v1.Publisher: TopicAdmin
- # - google.pubsub.v1.Subscriber: SubscriptionAdmin
+ # publishing:
+ # java_settings:
+ # service_class_names:
+ # - google.pubsub.v1.Publisher: TopicAdmin
+ # - google.pubsub.v1.Subscriber: SubscriptionAdmin
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
@@ -190,6 +193,20 @@ class CppSettings
# @!attribute [rw] common
# @return [::Google::Api::CommonLanguageSettings]
# Some settings.
+ # @!attribute [rw] library_package
+ # @return [::String]
+ # The package name to use in Php. Clobbers the php_namespace option
+ # set in the protobuf. This should be used **only** by APIs
+ # who have already set the language_settings.php.package_name" field
+ # in gapic.yaml. API teams should use the protobuf php_namespace option
+ # where possible.
+ #
+ # Example of a YAML configuration::
+ #
+ # publishing:
+ # library_settings:
+ # php_settings:
+ # library_package: Google\Cloud\PubSub\V1
class PhpSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,10 +335,12 @@ class RubySettings
# service names and values are the name to be used for the service client
# and call options.
#
- # publishing:
- # go_settings:
- # renamed_services:
- # Publisher: TopicAdmin
+ # Example:
+ #
+ # publishing:
+ # go_settings:
+ # renamed_services:
+ # Publisher: TopicAdmin
class GoSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -344,10 +363,10 @@ class RenamedServicesEntry
#
# Example:
#
- # publishing:
- # method_settings:
- # - selector: google.storage.control.v2.StorageControl.CreateFolder
- # # method settings for CreateFolder...
+ # publishing:
+ # method_settings:
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
+ # # method settings for CreateFolder...
# @!attribute [rw] long_running
# @return [::Google::Api::MethodSettings::LongRunning]
# Describes settings to use for long-running operations when generating
@@ -356,14 +375,14 @@ class RenamedServicesEntry
#
# Example of a YAML configuration::
#
- # publishing:
- # method_settings:
- # - selector: google.cloud.speech.v2.Speech.BatchRecognize
- # long_running:
- # initial_poll_delay: 60s # 1 minute
- # poll_delay_multiplier: 1.5
- # max_poll_delay: 360s # 6 minutes
- # total_poll_timeout: 54000s # 90 minutes
+ # publishing:
+ # method_settings:
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
+ # long_running:
+ # initial_poll_delay: 60s # 1 minute
+ # poll_delay_multiplier: 1.5
+ # max_poll_delay: 360s # 6 minutes
+ # total_poll_timeout: 54000s # 90 minutes
# @!attribute [rw] auto_populated_fields
# @return [::Array<::String>]
# List of top-level fields of the request message, that should be
@@ -372,11 +391,24 @@ class RenamedServicesEntry
#
# Example of a YAML configuration:
#
- # publishing:
- # method_settings:
- # - selector: google.example.v1.ExampleService.CreateExample
- # auto_populated_fields:
- # - request_id
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.CreateExample
+ # auto_populated_fields:
+ # - request_id
+ # @!attribute [rw] batching
+ # @return [::Google::Api::BatchingConfigProto]
+ # Batching configuration for an API method in client libraries.
+ #
+ # Example of a YAML configuration:
+ #
+ # publishing:
+ # method_settings:
+ # - selector: google.example.v1.ExampleService.BatchCreateExample
+ # batching:
+ # element_count_threshold: 1000
+ # request_byte_threshold: 100000000
+ # delay_threshold_millis: 10
class MethodSettings
include ::Google::Protobuf::MessageExts
extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -411,6 +443,8 @@ class LongRunning
# This message is used to configure the generation of a subset of the RPCs in
# a service for client libraries.
+ #
+ # Note: This feature should not be used in most cases.
# @!attribute [rw] methods
# @return [::Array<::String>]
# An allowlist of the fully qualified names of RPCs that should be included
@@ -428,6 +462,77 @@ class SelectiveGapicGeneration
extend ::Google::Protobuf::MessageExts::ClassMethods
end
+ # `BatchingConfigProto` defines the batching configuration for an API method.
+ # @!attribute [rw] thresholds
+ # @return [::Google::Api::BatchingSettingsProto]
+ # The thresholds which trigger a batched request to be sent.
+ # @!attribute [rw] batch_descriptor
+ # @return [::Google::Api::BatchingDescriptorProto]
+ # The request and response fields used in batching.
+ class BatchingConfigProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingSettingsProto` specifies a set of batching thresholds, each of
+ # which acts as a trigger to send a batch of messages as a request. At least
+ # one threshold must be positive nonzero.
+ # @!attribute [rw] element_count_threshold
+ # @return [::Integer]
+ # The number of elements of a field collected into a batch which, if
+ # exceeded, causes the batch to be sent.
+ # @!attribute [rw] request_byte_threshold
+ # @return [::Integer]
+ # The aggregated size of the batched field which, if exceeded, causes the
+ # batch to be sent. This size is computed by aggregating the sizes of the
+ # request field to be batched, not of the entire request message.
+ # @!attribute [rw] delay_threshold
+ # @return [::Google::Protobuf::Duration]
+ # The duration after which a batch should be sent, starting from the addition
+ # of the first message to that batch.
+ # @!attribute [rw] element_count_limit
+ # @return [::Integer]
+ # The maximum number of elements collected in a batch that could be accepted
+ # by server.
+ # @!attribute [rw] request_byte_limit
+ # @return [::Integer]
+ # The maximum size of the request that could be accepted by server.
+ # @!attribute [rw] flow_control_element_limit
+ # @return [::Integer]
+ # The maximum number of elements allowed by flow control.
+ # @!attribute [rw] flow_control_byte_limit
+ # @return [::Integer]
+ # The maximum size of data allowed by flow control.
+ # @!attribute [rw] flow_control_limit_exceeded_behavior
+ # @return [::Google::Api::FlowControlLimitExceededBehaviorProto]
+ # The behavior to take when the flow control limit is exceeded.
+ class BatchingSettingsProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
+ # `BatchingDescriptorProto` specifies the fields of the request message to be
+ # used for batching, and, optionally, the fields of the response message to be
+ # used for demultiplexing.
+ # @!attribute [rw] batched_field
+ # @return [::String]
+ # The repeated field in the request message to be aggregated by batching.
+ # @!attribute [rw] discriminator_fields
+ # @return [::Array<::String>]
+ # A list of the fields in the request message. Two requests will be batched
+ # together only if the values of every field specified in
+ # `request_discriminator_fields` is equal between the two requests.
+ # @!attribute [rw] subresponse_field
+ # @return [::String]
+ # Optional. When present, indicates the field in the response message to be
+ # used to demultiplex the response into multiple response messages, in
+ # correspondence with the multiple request messages originally batched
+ # together.
+ class BatchingDescriptorProto
+ include ::Google::Protobuf::MessageExts
+ extend ::Google::Protobuf::MessageExts::ClassMethods
+ end
+
# The organization for which the client libraries are being published.
# Affects the url where generated docs are published, etc.
module ClientLibraryOrganization
@@ -469,5 +574,20 @@ module ClientLibraryDestination
# Publish the library to package managers like nuget.org and npmjs.com.
PACKAGE_MANAGER = 20
end
+
+ # The behavior to take when the flow control limit is exceeded.
+ module FlowControlLimitExceededBehaviorProto
+ # Default behavior, system-defined.
+ UNSET_BEHAVIOR = 0
+
+ # Stop operation, raise error.
+ THROW_EXCEPTION = 1
+
+ # Pause operation until limit clears.
+ BLOCK = 2
+
+ # Continue operation, disregard limit.
+ IGNORE = 3
+ end
end
end
diff --git a/google-cloud-vision-v1/proto_docs/google/type/color.rb b/google-cloud-vision-v1/proto_docs/google/type/color.rb
index 082006b32691..e299fabd33a2 100644
--- a/google-cloud-vision-v1/proto_docs/google/type/color.rb
+++ b/google-cloud-vision-v1/proto_docs/google/type/color.rb
@@ -20,22 +20,22 @@
module Google
module Type
# Represents a color in the RGBA color space. This representation is designed
- # for simplicity of conversion to/from color representations in various
+ # for simplicity of conversion to and from color representations in various
# languages over compactness. For example, the fields of this representation
# can be trivially provided to the constructor of `java.awt.Color` in Java; it
# can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
# method in iOS; and, with just a little work, it can be easily formatted into
# a CSS `rgba()` string in JavaScript.
#
- # This reference page doesn't carry information about the absolute color
- # space
- # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
- # DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color
+ # This reference page doesn't have information about the absolute color
+ # space that should be used to interpret the RGB value—for example, sRGB,
+ # Adobe RGB,
+ # DCI-P3, and BT.2020. By default, applications should assume the sRGB color
# space.
#
- # When color equality needs to be decided, implementations, unless
- # documented otherwise, treat two colors as equal if all their red,
- # green, blue, and alpha values each differ by at most 1e-5.
+ # When color equality needs to be decided, implementations, unless documented
+ # otherwise, treat two colors as equal if all their red, green, blue, and alpha
+ # values each differ by at most `1e-5`.
#
# Example (Java):
#
diff --git a/google-cloud-vision-v1/proto_docs/google/type/latlng.rb b/google-cloud-vision-v1/proto_docs/google/type/latlng.rb
index ddd705dc8844..e82e33de36f5 100644
--- a/google-cloud-vision-v1/proto_docs/google/type/latlng.rb
+++ b/google-cloud-vision-v1/proto_docs/google/type/latlng.rb
@@ -21,9 +21,9 @@ module Google
module Type
# An object that represents a latitude/longitude pair. This is expressed as a
# pair of doubles to represent degrees latitude and degrees longitude. Unless
- # specified otherwise, this must conform to the
- # WGS84
- # standard. Values must be within normalized ranges.
+ # specified otherwise, this object must conform to the
+ #
+ # WGS84 standard. Values must be within normalized ranges.
# @!attribute [rw] latitude
# @return [::Float]
# The latitude in degrees. It must be in the range [-90.0, +90.0].