From 86b4ab781975d43fecb92e4f65c6f06b9b2a195f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:34:16 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#159) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../migration/v2/MigrationServiceClient.java | 238 +++++++++++++----- .../v2/MigrationServiceSettings.java | 7 +- .../bigquery/migration/v2/package-info.java | 7 +- .../v2/stub/HttpJsonMigrationServiceStub.java | 5 +- .../v2/stub/MigrationServiceStubSettings.java | 7 +- .../v2alpha/MigrationServiceClient.java | 238 +++++++++++++----- .../v2alpha/MigrationServiceSettings.java | 7 +- .../migration/v2alpha/package-info.java | 7 +- .../stub/HttpJsonMigrationServiceStub.java | 5 +- .../stub/MigrationServiceStubSettings.java | 7 +- 10 files changed, 376 insertions(+), 152 deletions(-) diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java index 5ee019f4848b..d5ea7f611fc3 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceClient.java @@ -41,8 +41,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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * MigrationWorkflow migrationWorkflow = MigrationWorkflow.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 * MigrationServiceSettings migrationServiceSettings = * MigrationServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -94,8 +100,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 * MigrationServiceSettings migrationServiceSettings = * MigrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * MigrationServiceClient migrationServiceClient = @@ -106,8 +115,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 * MigrationServiceSettings migrationServiceSettings = * MigrationServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -176,8 +188,11 @@ public MigrationServiceStub 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * MigrationWorkflow migrationWorkflow = MigrationWorkflow.newBuilder().build(); @@ -208,8 +223,11 @@ public final MigrationWorkflow createMigrationWorkflow( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * MigrationWorkflow migrationWorkflow = MigrationWorkflow.newBuilder().build(); @@ -240,8 +258,11 @@ public final MigrationWorkflow createMigrationWorkflow( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * CreateMigrationWorkflowRequest request = * CreateMigrationWorkflowRequest.newBuilder() @@ -266,8 +287,11 @@ public final MigrationWorkflow createMigrationWorkflow(CreateMigrationWorkflowRe *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * CreateMigrationWorkflowRequest request = * CreateMigrationWorkflowRequest.newBuilder() @@ -293,8 +317,11 @@ public final MigrationWorkflow createMigrationWorkflow(CreateMigrationWorkflowRe *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * MigrationWorkflowName name = * MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]"); @@ -321,8 +348,11 @@ public final MigrationWorkflow getMigrationWorkflow(MigrationWorkflowName 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String name = MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString(); * MigrationWorkflow response = migrationServiceClient.getMigrationWorkflow(name); @@ -346,8 +376,11 @@ public final MigrationWorkflow getMigrationWorkflow(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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * GetMigrationWorkflowRequest request = * GetMigrationWorkflowRequest.newBuilder() @@ -372,8 +405,11 @@ public final MigrationWorkflow getMigrationWorkflow(GetMigrationWorkflowRequest *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * GetMigrationWorkflowRequest request = * GetMigrationWorkflowRequest.newBuilder() @@ -399,8 +435,11 @@ public final MigrationWorkflow getMigrationWorkflow(GetMigrationWorkflowRequest *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (MigrationWorkflow element : @@ -429,8 +468,11 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows(Location *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (MigrationWorkflow element : @@ -457,8 +499,11 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows(String p *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationWorkflowsRequest request = * ListMigrationWorkflowsRequest.newBuilder() @@ -489,8 +534,11 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationWorkflowsRequest request = * ListMigrationWorkflowsRequest.newBuilder() @@ -520,8 +568,11 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationWorkflowsRequest request = * ListMigrationWorkflowsRequest.newBuilder() @@ -558,8 +609,11 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * MigrationWorkflowName name = * MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]"); @@ -586,8 +640,11 @@ public final void deleteMigrationWorkflow(MigrationWorkflowName 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String name = MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString(); * migrationServiceClient.deleteMigrationWorkflow(name); @@ -611,8 +668,11 @@ public final void deleteMigrationWorkflow(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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * DeleteMigrationWorkflowRequest request = * DeleteMigrationWorkflowRequest.newBuilder() @@ -636,8 +696,11 @@ public final void deleteMigrationWorkflow(DeleteMigrationWorkflowRequest 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * DeleteMigrationWorkflowRequest request = * DeleteMigrationWorkflowRequest.newBuilder() @@ -664,8 +727,11 @@ public final void deleteMigrationWorkflow(DeleteMigrationWorkflowRequest 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * MigrationWorkflowName name = * MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]"); @@ -694,8 +760,11 @@ public final void startMigrationWorkflow(MigrationWorkflowName 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String name = MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString(); * migrationServiceClient.startMigrationWorkflow(name); @@ -721,8 +790,11 @@ public final void startMigrationWorkflow(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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * StartMigrationWorkflowRequest request = * StartMigrationWorkflowRequest.newBuilder() @@ -748,8 +820,11 @@ public final void startMigrationWorkflow(StartMigrationWorkflowRequest 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * StartMigrationWorkflowRequest request = * StartMigrationWorkflowRequest.newBuilder() @@ -774,8 +849,11 @@ public final void startMigrationWorkflow(StartMigrationWorkflowRequest 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * MigrationSubtaskName name = * MigrationSubtaskName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]"); @@ -802,8 +880,11 @@ public final MigrationSubtask getMigrationSubtask(MigrationSubtaskName 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String name = * MigrationSubtaskName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]").toString(); @@ -828,8 +909,11 @@ public final MigrationSubtask getMigrationSubtask(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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * GetMigrationSubtaskRequest request = * GetMigrationSubtaskRequest.newBuilder() @@ -856,8 +940,11 @@ public final MigrationSubtask getMigrationSubtask(GetMigrationSubtaskRequest req *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * GetMigrationSubtaskRequest request = * GetMigrationSubtaskRequest.newBuilder() @@ -885,8 +972,11 @@ public final MigrationSubtask getMigrationSubtask(GetMigrationSubtaskRequest req *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * MigrationWorkflowName parent = * MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]"); @@ -917,8 +1007,11 @@ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String parent = MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString(); * for (MigrationSubtask element : @@ -945,8 +1038,11 @@ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks(String par *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationSubtasksRequest request = * ListMigrationSubtasksRequest.newBuilder() @@ -979,8 +1075,11 @@ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationSubtasksRequest request = * ListMigrationSubtasksRequest.newBuilder() @@ -1012,8 +1111,11 @@ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationSubtasksRequest request = * ListMigrationSubtasksRequest.newBuilder() diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java index d47dede752e8..4d1f4d83edfa 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/MigrationServiceSettings.java @@ -56,8 +56,11 @@ *For example, to set the total timeout of createMigrationWorkflow 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 * MigrationServiceSettings.Builder migrationServiceSettingsBuilder = * MigrationServiceSettings.newBuilder(); * migrationServiceSettingsBuilder diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/package-info.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/package-info.java index 56d747a7660e..2c1d3833ab50 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/package-info.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/package-info.java @@ -26,8 +26,11 @@ *Sample for MigrationServiceClient: * *
{@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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * MigrationWorkflow migrationWorkflow = MigrationWorkflow.newBuilder().build(); diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceStub.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceStub.java index 80c2948099d0..a90befcf770b 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceStub.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/HttpJsonMigrationServiceStub.java @@ -91,7 +91,8 @@ public class HttpJsonMigrationServiceStub extends MigrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("migrationWorkflow", request.getMigrationWorkflow())) + .toBody( + "migrationWorkflow", request.getMigrationWorkflow(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -236,7 +237,7 @@ public class HttpJsonMigrationServiceStub extends MigrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java index f2973821128a..34ea5e4d0cbc 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2/stub/MigrationServiceStubSettings.java @@ -84,8 +84,11 @@ * For example, to set the total timeout of createMigrationWorkflow 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 * MigrationServiceStubSettings.Builder migrationServiceSettingsBuilder = * MigrationServiceStubSettings.newBuilder(); * migrationServiceSettingsBuilder diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java index cb49f5cc109f..562e8f20cd87 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceClient.java @@ -42,8 +42,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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * MigrationWorkflow migrationWorkflow = MigrationWorkflow.newBuilder().build(); @@ -82,8 +85,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 * MigrationServiceSettings migrationServiceSettings = * MigrationServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -95,8 +101,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 * MigrationServiceSettings migrationServiceSettings = * MigrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * MigrationServiceClient migrationServiceClient = @@ -107,8 +116,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 * MigrationServiceSettings migrationServiceSettings = * MigrationServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -178,8 +190,11 @@ public MigrationServiceStub 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * MigrationWorkflow migrationWorkflow = MigrationWorkflow.newBuilder().build(); @@ -210,8 +225,11 @@ public final MigrationWorkflow createMigrationWorkflow( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * MigrationWorkflow migrationWorkflow = MigrationWorkflow.newBuilder().build(); @@ -242,8 +260,11 @@ public final MigrationWorkflow createMigrationWorkflow( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * CreateMigrationWorkflowRequest request = * CreateMigrationWorkflowRequest.newBuilder() @@ -268,8 +289,11 @@ public final MigrationWorkflow createMigrationWorkflow(CreateMigrationWorkflowRe *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * CreateMigrationWorkflowRequest request = * CreateMigrationWorkflowRequest.newBuilder() @@ -295,8 +319,11 @@ public final MigrationWorkflow createMigrationWorkflow(CreateMigrationWorkflowRe *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * MigrationWorkflowName name = * MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]"); @@ -323,8 +350,11 @@ public final MigrationWorkflow getMigrationWorkflow(MigrationWorkflowName 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String name = MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString(); * MigrationWorkflow response = migrationServiceClient.getMigrationWorkflow(name); @@ -348,8 +378,11 @@ public final MigrationWorkflow getMigrationWorkflow(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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * GetMigrationWorkflowRequest request = * GetMigrationWorkflowRequest.newBuilder() @@ -374,8 +407,11 @@ public final MigrationWorkflow getMigrationWorkflow(GetMigrationWorkflowRequest *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * GetMigrationWorkflowRequest request = * GetMigrationWorkflowRequest.newBuilder() @@ -401,8 +437,11 @@ public final MigrationWorkflow getMigrationWorkflow(GetMigrationWorkflowRequest *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (MigrationWorkflow element : @@ -431,8 +470,11 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows(Location *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (MigrationWorkflow element : @@ -459,8 +501,11 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows(String p *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationWorkflowsRequest request = * ListMigrationWorkflowsRequest.newBuilder() @@ -491,8 +536,11 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationWorkflowsRequest request = * ListMigrationWorkflowsRequest.newBuilder() @@ -522,8 +570,11 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationWorkflowsRequest request = * ListMigrationWorkflowsRequest.newBuilder() @@ -560,8 +611,11 @@ public final ListMigrationWorkflowsPagedResponse listMigrationWorkflows( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * MigrationWorkflowName name = * MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]"); @@ -588,8 +642,11 @@ public final void deleteMigrationWorkflow(MigrationWorkflowName 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String name = MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString(); * migrationServiceClient.deleteMigrationWorkflow(name); @@ -613,8 +670,11 @@ public final void deleteMigrationWorkflow(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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * DeleteMigrationWorkflowRequest request = * DeleteMigrationWorkflowRequest.newBuilder() @@ -638,8 +698,11 @@ public final void deleteMigrationWorkflow(DeleteMigrationWorkflowRequest 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * DeleteMigrationWorkflowRequest request = * DeleteMigrationWorkflowRequest.newBuilder() @@ -666,8 +729,11 @@ public final void deleteMigrationWorkflow(DeleteMigrationWorkflowRequest 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * MigrationWorkflowName name = * MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]"); @@ -696,8 +762,11 @@ public final void startMigrationWorkflow(MigrationWorkflowName 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String name = MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString(); * migrationServiceClient.startMigrationWorkflow(name); @@ -723,8 +792,11 @@ public final void startMigrationWorkflow(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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * StartMigrationWorkflowRequest request = * StartMigrationWorkflowRequest.newBuilder() @@ -750,8 +822,11 @@ public final void startMigrationWorkflow(StartMigrationWorkflowRequest 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * StartMigrationWorkflowRequest request = * StartMigrationWorkflowRequest.newBuilder() @@ -776,8 +851,11 @@ public final void startMigrationWorkflow(StartMigrationWorkflowRequest 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * MigrationSubtaskName name = * MigrationSubtaskName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]"); @@ -804,8 +882,11 @@ public final MigrationSubtask getMigrationSubtask(MigrationSubtaskName 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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String name = * MigrationSubtaskName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]", "[SUBTASK]").toString(); @@ -830,8 +911,11 @@ public final MigrationSubtask getMigrationSubtask(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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * GetMigrationSubtaskRequest request = * GetMigrationSubtaskRequest.newBuilder() @@ -858,8 +942,11 @@ public final MigrationSubtask getMigrationSubtask(GetMigrationSubtaskRequest req *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * GetMigrationSubtaskRequest request = * GetMigrationSubtaskRequest.newBuilder() @@ -887,8 +974,11 @@ public final MigrationSubtask getMigrationSubtask(GetMigrationSubtaskRequest req *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * MigrationWorkflowName parent = * MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]"); @@ -919,8 +1009,11 @@ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * String parent = MigrationWorkflowName.of("[PROJECT]", "[LOCATION]", "[WORKFLOW]").toString(); * for (MigrationSubtask element : @@ -947,8 +1040,11 @@ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks(String par *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationSubtasksRequest request = * ListMigrationSubtasksRequest.newBuilder() @@ -981,8 +1077,11 @@ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationSubtasksRequest request = * ListMigrationSubtasksRequest.newBuilder() @@ -1014,8 +1113,11 @@ public final ListMigrationSubtasksPagedResponse listMigrationSubtasks( *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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * ListMigrationSubtasksRequest request = * ListMigrationSubtasksRequest.newBuilder() diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java index f89c40adaba1..b56c0ba4ace6 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/MigrationServiceSettings.java @@ -56,8 +56,11 @@ *For example, to set the total timeout of createMigrationWorkflow 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 * MigrationServiceSettings.Builder migrationServiceSettingsBuilder = * MigrationServiceSettings.newBuilder(); * migrationServiceSettingsBuilder diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/package-info.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/package-info.java index 08319f80debb..19b7d65a2db7 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/package-info.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/package-info.java @@ -24,8 +24,11 @@ *Sample for MigrationServiceClient: * *
{@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 (MigrationServiceClient migrationServiceClient = MigrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * MigrationWorkflow migrationWorkflow = MigrationWorkflow.newBuilder().build(); diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceStub.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceStub.java index cd65aaae2b33..1e479699d6ba 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceStub.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/HttpJsonMigrationServiceStub.java @@ -91,7 +91,8 @@ public class HttpJsonMigrationServiceStub extends MigrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("migrationWorkflow", request.getMigrationWorkflow())) + .toBody( + "migrationWorkflow", request.getMigrationWorkflow(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -236,7 +237,7 @@ public class HttpJsonMigrationServiceStub extends MigrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java index 37c6cb9644ff..3333e5f7bf6d 100644 --- a/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java +++ b/java-bigquerymigration/google-cloud-bigquerymigration/src/main/java/com/google/cloud/bigquery/migration/v2alpha/stub/MigrationServiceStubSettings.java @@ -84,8 +84,11 @@ * For example, to set the total timeout of createMigrationWorkflow 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 * MigrationServiceStubSettings.Builder migrationServiceSettingsBuilder = * MigrationServiceStubSettings.newBuilder(); * migrationServiceSettingsBuilder