{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
* Budget budget = Budget.newBuilder().build();
@@ -81,8 +84,11 @@
* To customize credentials:
*
*
{@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
* BudgetServiceSettings budgetServiceSettings =
* BudgetServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -93,8 +99,11 @@
* To customize the endpoint:
*
*
{@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
* BudgetServiceSettings budgetServiceSettings =
* BudgetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* BudgetServiceClient budgetServiceClient = BudgetServiceClient.create(budgetServiceSettings);
@@ -104,8 +113,11 @@
* the wire:
*
* {@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
* BudgetServiceSettings budgetServiceSettings =
* BudgetServiceSettings.newBuilder()
* .setTransportChannelProvider(
@@ -174,8 +186,11 @@ public BudgetServiceStub getStub() {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
* Budget budget = Budget.newBuilder().build();
@@ -205,8 +220,11 @@ public final Budget createBudget(BillingAccountName parent, Budget budget) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* String parent = BillingAccountName.of("[BILLING_ACCOUNT]").toString();
* Budget budget = Budget.newBuilder().build();
@@ -233,8 +251,11 @@ public final Budget createBudget(String parent, Budget budget) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* CreateBudgetRequest request =
* CreateBudgetRequest.newBuilder()
@@ -260,8 +281,11 @@ public final Budget createBudget(CreateBudgetRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* CreateBudgetRequest request =
* CreateBudgetRequest.newBuilder()
@@ -288,8 +312,11 @@ public final UnaryCallable createBudgetCallable() {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* Budget budget = Budget.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -322,8 +349,11 @@ public final Budget updateBudget(Budget budget, FieldMask updateMask) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* UpdateBudgetRequest request =
* UpdateBudgetRequest.newBuilder()
@@ -351,8 +381,11 @@ public final Budget updateBudget(UpdateBudgetRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* UpdateBudgetRequest request =
* UpdateBudgetRequest.newBuilder()
@@ -380,8 +413,11 @@ public final UnaryCallable updateBudgetCallable() {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* BudgetName name = BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]");
* Budget response = budgetServiceClient.getBudget(name);
@@ -409,8 +445,11 @@ public final Budget getBudget(BudgetName name) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* String name = BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]").toString();
* Budget response = budgetServiceClient.getBudget(name);
@@ -437,8 +476,11 @@ public final Budget getBudget(String name) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* GetBudgetRequest request =
* GetBudgetRequest.newBuilder()
@@ -466,8 +508,11 @@ public final Budget getBudget(GetBudgetRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* GetBudgetRequest request =
* GetBudgetRequest.newBuilder()
@@ -494,8 +539,11 @@ public final UnaryCallable getBudgetCallable() {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
* for (Budget element : budgetServiceClient.listBudgets(parent).iterateAll()) {
@@ -527,8 +575,11 @@ public final ListBudgetsPagedResponse listBudgets(BillingAccountName parent) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* String parent = BillingAccountName.of("[BILLING_ACCOUNT]").toString();
* for (Budget element : budgetServiceClient.listBudgets(parent).iterateAll()) {
@@ -557,8 +608,11 @@ public final ListBudgetsPagedResponse listBudgets(String parent) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* ListBudgetsRequest request =
* ListBudgetsRequest.newBuilder()
@@ -590,8 +644,11 @@ public final ListBudgetsPagedResponse listBudgets(ListBudgetsRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* ListBudgetsRequest request =
* ListBudgetsRequest.newBuilder()
@@ -623,8 +680,11 @@ public final ListBudgetsPagedResponse listBudgets(ListBudgetsRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* ListBudgetsRequest request =
* ListBudgetsRequest.newBuilder()
@@ -658,8 +718,11 @@ public final UnaryCallable listBudgetsC
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* BudgetName name = BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]");
* budgetServiceClient.deleteBudget(name);
@@ -683,8 +746,11 @@ public final void deleteBudget(BudgetName name) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* String name = BudgetName.of("[BILLING_ACCOUNT]", "[BUDGET]").toString();
* budgetServiceClient.deleteBudget(name);
@@ -707,8 +773,11 @@ public final void deleteBudget(String name) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* DeleteBudgetRequest request =
* DeleteBudgetRequest.newBuilder()
@@ -732,8 +801,11 @@ public final void deleteBudget(DeleteBudgetRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* DeleteBudgetRequest request =
* DeleteBudgetRequest.newBuilder()
diff --git a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java
index acaff4a1..edf9ab4a 100644
--- a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java
+++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/BudgetServiceSettings.java
@@ -55,16 +55,16 @@
* For example, to set the total timeout of createBudget to 30 seconds:
*
*
{@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
* BudgetServiceSettings.Builder budgetServiceSettingsBuilder = BudgetServiceSettings.newBuilder();
* budgetServiceSettingsBuilder
* .createBudgetSettings()
* .setRetrySettings(
- * budgetServiceSettingsBuilder
- * .createBudgetSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * budgetServiceSettingsBuilder.createBudgetSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* BudgetServiceSettings budgetServiceSettings = budgetServiceSettingsBuilder.build();
diff --git a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java
index 4b94074b..726b9d7b 100644
--- a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java
+++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/package-info.java
@@ -25,8 +25,11 @@
* Sample for BudgetServiceClient:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* BillingAccountName parent = BillingAccountName.of("[BILLING_ACCOUNT]");
* Budget budget = Budget.newBuilder().build();
diff --git a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java
index 65474976..199e1d82 100644
--- a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java
+++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/BudgetServiceStubSettings.java
@@ -79,17 +79,17 @@
* For example, to set the total timeout of createBudget to 30 seconds:
*
*
{@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
* BudgetServiceStubSettings.Builder budgetServiceSettingsBuilder =
* BudgetServiceStubSettings.newBuilder();
* budgetServiceSettingsBuilder
* .createBudgetSettings()
* .setRetrySettings(
- * budgetServiceSettingsBuilder
- * .createBudgetSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * budgetServiceSettingsBuilder.createBudgetSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* BudgetServiceStubSettings budgetServiceSettings = budgetServiceSettingsBuilder.build();
diff --git a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java
index 6cbd51bf..2e88abab 100644
--- a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java
+++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1/stub/HttpJsonBudgetServiceStub.java
@@ -84,7 +84,8 @@ public class HttpJsonBudgetServiceStub extends BudgetServiceStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("budget", request.getBudget()))
+ ProtoRestSerializer.create()
+ .toBody("budget", request.getBudget(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
@@ -121,7 +122,8 @@ public class HttpJsonBudgetServiceStub extends BudgetServiceStub {
})
.setRequestBodyExtractor(
request ->
- ProtoRestSerializer.create().toBody("budget", request.getBudget()))
+ ProtoRestSerializer.create()
+ .toBody("budget", request.getBudget(), false))
.build())
.setResponseParser(
ProtoMessageResponseParser.newBuilder()
diff --git a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java
index cd549897..51e9e288 100644
--- a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java
+++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceClient.java
@@ -43,8 +43,11 @@
* calls that map to API methods. Sample code to get started:
*
* {@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* CreateBudgetRequest request =
* CreateBudgetRequest.newBuilder()
@@ -84,8 +87,11 @@
* To customize credentials:
*
*
{@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
* BudgetServiceSettings budgetServiceSettings =
* BudgetServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,8 +102,11 @@
* To customize the endpoint:
*
*
{@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
* BudgetServiceSettings budgetServiceSettings =
* BudgetServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* BudgetServiceClient budgetServiceClient = BudgetServiceClient.create(budgetServiceSettings);
@@ -164,8 +173,11 @@ public BudgetServiceStub getStub() {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* CreateBudgetRequest request =
* CreateBudgetRequest.newBuilder()
@@ -191,8 +203,11 @@ public final Budget createBudget(CreateBudgetRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* CreateBudgetRequest request =
* CreateBudgetRequest.newBuilder()
@@ -219,8 +234,11 @@ public final UnaryCallable createBudgetCallable() {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* UpdateBudgetRequest request =
* UpdateBudgetRequest.newBuilder()
@@ -248,8 +266,11 @@ public final Budget updateBudget(UpdateBudgetRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* UpdateBudgetRequest request =
* UpdateBudgetRequest.newBuilder()
@@ -277,8 +298,11 @@ public final UnaryCallable updateBudgetCallable() {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* GetBudgetRequest request =
* GetBudgetRequest.newBuilder()
@@ -306,8 +330,11 @@ public final Budget getBudget(GetBudgetRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* GetBudgetRequest request =
* GetBudgetRequest.newBuilder()
@@ -334,8 +361,11 @@ public final UnaryCallable getBudgetCallable() {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* ListBudgetsRequest request =
* ListBudgetsRequest.newBuilder()
@@ -367,8 +397,11 @@ public final ListBudgetsPagedResponse listBudgets(ListBudgetsRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* ListBudgetsRequest request =
* ListBudgetsRequest.newBuilder()
@@ -400,8 +433,11 @@ public final ListBudgetsPagedResponse listBudgets(ListBudgetsRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* ListBudgetsRequest request =
* ListBudgetsRequest.newBuilder()
@@ -435,8 +471,11 @@ public final UnaryCallable listBudgetsC
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* DeleteBudgetRequest request =
* DeleteBudgetRequest.newBuilder()
@@ -460,8 +499,11 @@ public final void deleteBudget(DeleteBudgetRequest request) {
* Sample code:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* DeleteBudgetRequest request =
* DeleteBudgetRequest.newBuilder()
diff --git a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java
index a99a5370..eaf10a5a 100644
--- a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java
+++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/BudgetServiceSettings.java
@@ -54,16 +54,16 @@
* For example, to set the total timeout of createBudget to 30 seconds:
*
*
{@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
* BudgetServiceSettings.Builder budgetServiceSettingsBuilder = BudgetServiceSettings.newBuilder();
* budgetServiceSettingsBuilder
* .createBudgetSettings()
* .setRetrySettings(
- * budgetServiceSettingsBuilder
- * .createBudgetSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * budgetServiceSettingsBuilder.createBudgetSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* BudgetServiceSettings budgetServiceSettings = budgetServiceSettingsBuilder.build();
diff --git a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java
index 285e7633..1ca1e73a 100644
--- a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java
+++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/package-info.java
@@ -25,8 +25,11 @@
* Sample for BudgetServiceClient:
*
*
{@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 (BudgetServiceClient budgetServiceClient = BudgetServiceClient.create()) {
* CreateBudgetRequest request =
* CreateBudgetRequest.newBuilder()
diff --git a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java
index f84f87ac..730f1380 100644
--- a/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java
+++ b/google-cloud-billingbudgets/src/main/java/com/google/cloud/billing/budgets/v1beta1/stub/BudgetServiceStubSettings.java
@@ -76,17 +76,17 @@
* For example, to set the total timeout of createBudget to 30 seconds:
*
*
{@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
* BudgetServiceStubSettings.Builder budgetServiceSettingsBuilder =
* BudgetServiceStubSettings.newBuilder();
* budgetServiceSettingsBuilder
* .createBudgetSettings()
* .setRetrySettings(
- * budgetServiceSettingsBuilder
- * .createBudgetSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * budgetServiceSettingsBuilder.createBudgetSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* BudgetServiceStubSettings budgetServiceSettings = budgetServiceSettingsBuilder.build();
diff --git a/grpc-google-cloud-billingbudgets-v1/pom.xml b/grpc-google-cloud-billingbudgets-v1/pom.xml
index e2148bd9..116c4393 100644
--- a/grpc-google-cloud-billingbudgets-v1/pom.xml
+++ b/grpc-google-cloud-billingbudgets-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-billingbudgets-v1
- 2.3.3
+ 2.3.4
grpc-google-cloud-billingbudgets-v1
GRPC library for grpc-google-cloud-billingbudgets-v1
com.google.cloud
google-cloud-billingbudgets-parent
- 2.3.3
+ 2.3.4
diff --git a/grpc-google-cloud-billingbudgets-v1beta1/pom.xml b/grpc-google-cloud-billingbudgets-v1beta1/pom.xml
index 9ad12c61..7fc5c9f7 100644
--- a/grpc-google-cloud-billingbudgets-v1beta1/pom.xml
+++ b/grpc-google-cloud-billingbudgets-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-billingbudgets-v1beta1
- 0.12.3
+ 0.12.4
grpc-google-cloud-billingbudgets-v1beta1
GRPC library for grpc-google-cloud-billingbudgets-v1beta1
com.google.cloud
google-cloud-billingbudgets-parent
- 2.3.3
+ 2.3.4
diff --git a/pom.xml b/pom.xml
index 429c2381..4a8b5a5c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-billingbudgets-parent
pom
- 2.3.3
+ 2.3.4
Google Cloud Billing Budgets Parent
https://github.com/googleapis/java-billingbudgets
@@ -61,33 +61,33 @@
com.google.api.grpc
proto-google-cloud-billingbudgets-v1beta1
- 0.12.3
+ 0.12.4
com.google.api.grpc
proto-google-cloud-billingbudgets-v1
- 2.3.3
+ 2.3.4
com.google.api.grpc
grpc-google-cloud-billingbudgets-v1beta1
- 0.12.3
+ 0.12.4
com.google.api.grpc
grpc-google-cloud-billingbudgets-v1
- 2.3.3
+ 2.3.4
com.google.cloud
google-cloud-billingbudgets
- 2.3.3
+ 2.3.4
com.google.cloud
google-cloud-shared-dependencies
- 3.0.2
+ 3.0.3
pom
import
diff --git a/proto-google-cloud-billingbudgets-v1/pom.xml b/proto-google-cloud-billingbudgets-v1/pom.xml
index 5a03200d..0995e7b5 100644
--- a/proto-google-cloud-billingbudgets-v1/pom.xml
+++ b/proto-google-cloud-billingbudgets-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-billingbudgets-v1
- 2.3.3
+ 2.3.4
proto-google-cloud-billingbudgets-v1
PROTO library for proto-google-cloud-billingbudgets-v1
com.google.cloud
google-cloud-billingbudgets-parent
- 2.3.3
+ 2.3.4
diff --git a/proto-google-cloud-billingbudgets-v1beta1/pom.xml b/proto-google-cloud-billingbudgets-v1beta1/pom.xml
index 90c72a4e..0686c794 100644
--- a/proto-google-cloud-billingbudgets-v1beta1/pom.xml
+++ b/proto-google-cloud-billingbudgets-v1beta1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-billingbudgets-v1beta1
- 0.12.3
+ 0.12.4
proto-google-cloud-billingbudgets-v1beta1
PROTO library for proto-google-cloud-billingbudgets-v1beta1
com.google.cloud
google-cloud-billingbudgets-parent
- 2.3.3
+ 2.3.4
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index f1a99e76..ffbebe28 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-billingbudgets
- 2.3.2
+ 2.3.3
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 88bc248e..ddc0596a 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-billingbudgets
- 2.3.2
+ 2.3.3
diff --git a/versions.txt b/versions.txt
index 8eebec1d..113f75f2 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,8 +1,8 @@
# Format:
# module:released-version:current-version
-google-cloud-billingbudgets:2.3.3:2.3.3
-grpc-google-cloud-billingbudgets-v1beta1:0.12.3:0.12.3
-grpc-google-cloud-billingbudgets-v1:2.3.3:2.3.3
-proto-google-cloud-billingbudgets-v1beta1:0.12.3:0.12.3
-proto-google-cloud-billingbudgets-v1:2.3.3:2.3.3
+google-cloud-billingbudgets:2.3.4:2.3.4
+grpc-google-cloud-billingbudgets-v1beta1:0.12.4:0.12.4
+grpc-google-cloud-billingbudgets-v1:2.3.4:2.3.4
+proto-google-cloud-billingbudgets-v1beta1:0.12.4:0.12.4
+proto-google-cloud-billingbudgets-v1:2.3.4:2.3.4