Skip to content
This repository was archived by the owner on Sep 16, 2023. It is now read-only.
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -68,17 +68,17 @@
* <p>For example, to set the total timeout of getCustomer to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudChannelServiceSettings.Builder cloudChannelServiceSettingsBuilder =
* CloudChannelServiceSettings.newBuilder();
* cloudChannelServiceSettingsBuilder
* .getCustomerSettings()
* .setRetrySettings(
* cloudChannelServiceSettingsBuilder
* .getCustomerSettings()
* .getRetrySettings()
* .toBuilder()
* cloudChannelServiceSettingsBuilder.getCustomerSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* CloudChannelServiceSettings cloudChannelServiceSettings =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@
* <p>Sample for CloudChannelServiceClient:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
* CustomerName name = CustomerName.of("[ACCOUNT]", "[CUSTOMER]");
* Customer response = cloudChannelServiceClient.getCustomer(name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,17 +163,17 @@
* <p>For example, to set the total timeout of getCustomer to 30 seconds:
*
* <pre>{@code
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* // This snippet has been automatically generated and should be regarded as a code template only.
* // It will require modifications to work:
* // - It may require correct/in-range values for request initialization.
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* CloudChannelServiceStubSettings.Builder cloudChannelServiceSettingsBuilder =
* CloudChannelServiceStubSettings.newBuilder();
* cloudChannelServiceSettingsBuilder
* .getCustomerSettings()
* .setRetrySettings(
* cloudChannelServiceSettingsBuilder
* .getCustomerSettings()
* .getRetrySettings()
* .toBuilder()
* cloudChannelServiceSettingsBuilder.getCustomerSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* CloudChannelServiceStubSettings cloudChannelServiceSettings =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<CheckCloudIdentityAccountsExistResponse>newBuilder()
Expand Down Expand Up @@ -283,7 +283,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("customer", request.getCustomer()))
.toBody("customer", request.getCustomer(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Customer>newBuilder()
Expand Down Expand Up @@ -323,7 +323,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("customer", request.getCustomer()))
.toBody("customer", request.getCustomer(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Customer>newBuilder()
Expand Down Expand Up @@ -395,7 +395,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Customer>newBuilder()
Expand Down Expand Up @@ -432,7 +432,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearCustomer().build()))
.toBody("*", request.toBuilder().clearCustomer().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -508,7 +508,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ListTransferableSkusResponse>newBuilder()
Expand Down Expand Up @@ -547,7 +547,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ListTransferableOffersResponse>newBuilder()
Expand Down Expand Up @@ -616,7 +616,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -655,7 +655,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -695,7 +695,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -734,7 +734,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -773,7 +773,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -812,7 +812,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -851,7 +851,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -890,7 +890,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -929,7 +929,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -969,7 +969,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearParent().build()))
.toBody("*", request.toBuilder().clearParent().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<Operation>newBuilder()
Expand Down Expand Up @@ -1083,7 +1083,8 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("channelPartnerLink", request.getChannelPartnerLink()))
.toBody(
"channelPartnerLink", request.getChannelPartnerLink(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ChannelPartnerLink>newBuilder()
Expand Down Expand Up @@ -1120,7 +1121,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearName().build()))
.toBody("*", request.toBuilder().clearName().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ChannelPartnerLink>newBuilder()
Expand Down Expand Up @@ -1237,7 +1238,8 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
ProtoRestSerializer.create()
.toBody(
"customerRepricingConfig",
request.getCustomerRepricingConfig()))
request.getCustomerRepricingConfig(),
false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<CustomerRepricingConfig>newBuilder()
Expand Down Expand Up @@ -1281,7 +1283,8 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
ProtoRestSerializer.create()
.toBody(
"customerRepricingConfig",
request.getCustomerRepricingConfig()))
request.getCustomerRepricingConfig(),
false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<CustomerRepricingConfig>newBuilder()
Expand Down Expand Up @@ -1438,7 +1441,8 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
ProtoRestSerializer.create()
.toBody(
"channelPartnerRepricingConfig",
request.getChannelPartnerRepricingConfig()))
request.getChannelPartnerRepricingConfig(),
false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ChannelPartnerRepricingConfig>newBuilder()
Expand Down Expand Up @@ -1484,7 +1488,8 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
ProtoRestSerializer.create()
.toBody(
"channelPartnerRepricingConfig",
request.getChannelPartnerRepricingConfig()))
request.getChannelPartnerRepricingConfig(),
false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<ChannelPartnerRepricingConfig>newBuilder()
Expand Down Expand Up @@ -1789,7 +1794,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearAccount().build()))
.toBody("*", request.toBuilder().clearAccount().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<RegisterSubscriberResponse>newBuilder()
Expand Down Expand Up @@ -1827,7 +1832,7 @@ public class HttpJsonCloudChannelServiceStub extends CloudChannelServiceStub {
.setRequestBodyExtractor(
request ->
ProtoRestSerializer.create()
.toBody("*", request.toBuilder().clearAccount().build()))
.toBody("*", request.toBuilder().clearAccount().build(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.<UnregisterSubscriberResponse>newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncActivateEntitlement() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
ActivateEntitlementRequest request =
ActivateEntitlementRequest.newBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}

public static void asyncActivateEntitlementLRO() throws Exception {
// This snippet has been automatically generated for illustrative purposes only.
// It may require modifications to work in your environment.
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CloudChannelServiceClient cloudChannelServiceClient = CloudChannelServiceClient.create()) {
ActivateEntitlementRequest request =
ActivateEntitlementRequest.newBuilder()
Expand Down
Loading