Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
docs: Keep the API doc up-to-date feat: update grpc service config se…
Browse files Browse the repository at this point in the history
…ttings to reflect correct API deadlines (#246)

* docs: Keep the API doc up-to-date feat: update grpc service config settings to reflect correct API deadlines

PiperOrigin-RevId: 411660243

Source-Link: googleapis/googleapis@72adf13

Source-Link: googleapis/googleapis-gen@3e39fd5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiM2UzOWZkNTUzYWIyODgxOTJhNzdmYjNjMGQzZTdjZDJkYjExNjQ4NSJ9

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Nov 23, 2021
1 parent 725b716 commit 328e806
Show file tree
Hide file tree
Showing 7 changed files with 143 additions and 69 deletions.
Expand Up @@ -280,7 +280,7 @@ public static class Builder extends StubSettings.Builder<UserEventServiceStubSet
Lists.<StatusCode.Code>newArrayList(
StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED)));
definitions.put(
"retry_policy_2_codes",
"retry_policy_3_codes",
ImmutableSet.copyOf(
Lists.<StatusCode.Code>newArrayList(
StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED)));
Expand Down Expand Up @@ -319,12 +319,12 @@ public static class Builder extends StubSettings.Builder<UserEventServiceStubSet
.setInitialRetryDelay(Duration.ofMillis(100L))
.setRetryDelayMultiplier(1.3)
.setMaxRetryDelay(Duration.ofMillis(300000L))
.setInitialRpcTimeout(Duration.ofMillis(300000L))
.setInitialRpcTimeout(Duration.ofMillis(600000L))
.setRpcTimeoutMultiplier(1.0)
.setMaxRpcTimeout(Duration.ofMillis(300000L))
.setTotalTimeout(Duration.ofMillis(300000L))
.setMaxRpcTimeout(Duration.ofMillis(600000L))
.setTotalTimeout(Duration.ofMillis(600000L))
.build();
definitions.put("retry_policy_2_params", settings);
definitions.put("retry_policy_3_params", settings);
RETRY_PARAM_DEFINITIONS = definitions.build();
}

Expand Down Expand Up @@ -406,8 +406,8 @@ private static Builder initDefaults(Builder builder) {

builder
.importUserEventsSettings()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params"));
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params"));

builder
.rejoinUserEventsSettings()
Expand Down Expand Up @@ -443,8 +443,8 @@ private static Builder initDefaults(Builder builder) {
.setInitialCallSettings(
UnaryCallSettings
.<ImportUserEventsRequest, OperationSnapshot>newUnaryCallSettingsBuilder()
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params"))
.setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes"))
.setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params"))
.build())
.setResponseTransformer(
ProtoOperationTransformers.ResponseTransformer.create(ImportUserEventsResponse.class))
Expand Down
Expand Up @@ -128,12 +128,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* <pre>
* The type of [Product][google.cloud.retail.v2.Product]s allowed to be
* ingested into the catalog. Acceptable values are:
* * `primary` (default): You can only ingest
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
* [Product][google.cloud.retail.v2.Product]s. This means
* [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id]
* can only be empty or set to the same value as
* [Product.id][google.cloud.retail.v2.Product.id].
* * `primary` (default): You can ingest
* [Product][google.cloud.retail.v2.Product]s of all types. When
* ingesting a [Product][google.cloud.retail.v2.Product], its type will
* default to
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if
* unset.
* * `variant`: You can only ingest
* [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]
* [Product][google.cloud.retail.v2.Product]s.
Expand Down Expand Up @@ -172,12 +172,12 @@ public java.lang.String getIngestionProductType() {
* <pre>
* The type of [Product][google.cloud.retail.v2.Product]s allowed to be
* ingested into the catalog. Acceptable values are:
* * `primary` (default): You can only ingest
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
* [Product][google.cloud.retail.v2.Product]s. This means
* [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id]
* can only be empty or set to the same value as
* [Product.id][google.cloud.retail.v2.Product.id].
* * `primary` (default): You can ingest
* [Product][google.cloud.retail.v2.Product]s of all types. When
* ingesting a [Product][google.cloud.retail.v2.Product], its type will
* default to
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if
* unset.
* * `variant`: You can only ingest
* [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]
* [Product][google.cloud.retail.v2.Product]s.
Expand Down Expand Up @@ -633,12 +633,12 @@ public Builder mergeFrom(
* <pre>
* The type of [Product][google.cloud.retail.v2.Product]s allowed to be
* ingested into the catalog. Acceptable values are:
* * `primary` (default): You can only ingest
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
* [Product][google.cloud.retail.v2.Product]s. This means
* [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id]
* can only be empty or set to the same value as
* [Product.id][google.cloud.retail.v2.Product.id].
* * `primary` (default): You can ingest
* [Product][google.cloud.retail.v2.Product]s of all types. When
* ingesting a [Product][google.cloud.retail.v2.Product], its type will
* default to
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if
* unset.
* * `variant`: You can only ingest
* [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]
* [Product][google.cloud.retail.v2.Product]s.
Expand Down Expand Up @@ -676,12 +676,12 @@ public java.lang.String getIngestionProductType() {
* <pre>
* The type of [Product][google.cloud.retail.v2.Product]s allowed to be
* ingested into the catalog. Acceptable values are:
* * `primary` (default): You can only ingest
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
* [Product][google.cloud.retail.v2.Product]s. This means
* [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id]
* can only be empty or set to the same value as
* [Product.id][google.cloud.retail.v2.Product.id].
* * `primary` (default): You can ingest
* [Product][google.cloud.retail.v2.Product]s of all types. When
* ingesting a [Product][google.cloud.retail.v2.Product], its type will
* default to
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if
* unset.
* * `variant`: You can only ingest
* [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]
* [Product][google.cloud.retail.v2.Product]s.
Expand Down Expand Up @@ -719,12 +719,12 @@ public com.google.protobuf.ByteString getIngestionProductTypeBytes() {
* <pre>
* The type of [Product][google.cloud.retail.v2.Product]s allowed to be
* ingested into the catalog. Acceptable values are:
* * `primary` (default): You can only ingest
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
* [Product][google.cloud.retail.v2.Product]s. This means
* [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id]
* can only be empty or set to the same value as
* [Product.id][google.cloud.retail.v2.Product.id].
* * `primary` (default): You can ingest
* [Product][google.cloud.retail.v2.Product]s of all types. When
* ingesting a [Product][google.cloud.retail.v2.Product], its type will
* default to
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if
* unset.
* * `variant`: You can only ingest
* [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]
* [Product][google.cloud.retail.v2.Product]s.
Expand Down Expand Up @@ -761,12 +761,12 @@ public Builder setIngestionProductType(java.lang.String value) {
* <pre>
* The type of [Product][google.cloud.retail.v2.Product]s allowed to be
* ingested into the catalog. Acceptable values are:
* * `primary` (default): You can only ingest
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
* [Product][google.cloud.retail.v2.Product]s. This means
* [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id]
* can only be empty or set to the same value as
* [Product.id][google.cloud.retail.v2.Product.id].
* * `primary` (default): You can ingest
* [Product][google.cloud.retail.v2.Product]s of all types. When
* ingesting a [Product][google.cloud.retail.v2.Product], its type will
* default to
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if
* unset.
* * `variant`: You can only ingest
* [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]
* [Product][google.cloud.retail.v2.Product]s.
Expand Down Expand Up @@ -799,12 +799,12 @@ public Builder clearIngestionProductType() {
* <pre>
* The type of [Product][google.cloud.retail.v2.Product]s allowed to be
* ingested into the catalog. Acceptable values are:
* * `primary` (default): You can only ingest
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
* [Product][google.cloud.retail.v2.Product]s. This means
* [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id]
* can only be empty or set to the same value as
* [Product.id][google.cloud.retail.v2.Product.id].
* * `primary` (default): You can ingest
* [Product][google.cloud.retail.v2.Product]s of all types. When
* ingesting a [Product][google.cloud.retail.v2.Product], its type will
* default to
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if
* unset.
* * `variant`: You can only ingest
* [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]
* [Product][google.cloud.retail.v2.Product]s.
Expand Down
Expand Up @@ -29,12 +29,12 @@ public interface ProductLevelConfigOrBuilder
* <pre>
* The type of [Product][google.cloud.retail.v2.Product]s allowed to be
* ingested into the catalog. Acceptable values are:
* * `primary` (default): You can only ingest
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
* [Product][google.cloud.retail.v2.Product]s. This means
* [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id]
* can only be empty or set to the same value as
* [Product.id][google.cloud.retail.v2.Product.id].
* * `primary` (default): You can ingest
* [Product][google.cloud.retail.v2.Product]s of all types. When
* ingesting a [Product][google.cloud.retail.v2.Product], its type will
* default to
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if
* unset.
* * `variant`: You can only ingest
* [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]
* [Product][google.cloud.retail.v2.Product]s.
Expand Down Expand Up @@ -62,12 +62,12 @@ public interface ProductLevelConfigOrBuilder
* <pre>
* The type of [Product][google.cloud.retail.v2.Product]s allowed to be
* ingested into the catalog. Acceptable values are:
* * `primary` (default): You can only ingest
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY]
* [Product][google.cloud.retail.v2.Product]s. This means
* [Product.primary_product_id][google.cloud.retail.v2.Product.primary_product_id]
* can only be empty or set to the same value as
* [Product.id][google.cloud.retail.v2.Product.id].
* * `primary` (default): You can ingest
* [Product][google.cloud.retail.v2.Product]s of all types. When
* ingesting a [Product][google.cloud.retail.v2.Product], its type will
* default to
* [Product.Type.PRIMARY][google.cloud.retail.v2.Product.Type.PRIMARY] if
* unset.
* * `variant`: You can only ingest
* [Product.Type.VARIANT][google.cloud.retail.v2.Product.Type.VARIANT]
* [Product][google.cloud.retail.v2.Product]s.
Expand Down

0 comments on commit 328e806

Please sign in to comment.