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

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

Merged
merged 2 commits into from
Nov 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Loading