From d0ed4f5f31d562cf11d5dd225369c1c31d2a649a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 21:00:22 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#525) - [ ] 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 --- .../java/io/grafeas/v1/GrafeasClient.java | 434 +++++++++++++----- .../java/io/grafeas/v1/GrafeasSettings.java | 12 +- src/main/java/io/grafeas/v1/package-info.java | 7 +- .../grafeas/v1/stub/GrafeasStubSettings.java | 12 +- 4 files changed, 327 insertions(+), 138 deletions(-) diff --git a/src/main/java/io/grafeas/v1/GrafeasClient.java b/src/main/java/io/grafeas/v1/GrafeasClient.java index e3a275ca..332ac724 100644 --- a/src/main/java/io/grafeas/v1/GrafeasClient.java +++ b/src/main/java/io/grafeas/v1/GrafeasClient.java @@ -54,8 +54,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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * OccurrenceName name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]"); * Occurrence response = grafeasClient.getOccurrence(name); @@ -91,8 +94,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 * GrafeasSettings grafeasSettings = * GrafeasSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -103,8 +109,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 * GrafeasSettings grafeasSettings = GrafeasSettings.newBuilder().setEndpoint(myEndpoint).build(); * GrafeasClient grafeasClient = GrafeasClient.create(grafeasSettings); * }@@ -166,8 +175,11 @@ public GrafeasStub 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * OccurrenceName name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]"); * Occurrence response = grafeasClient.getOccurrence(name); @@ -191,8 +203,11 @@ public final Occurrence getOccurrence(OccurrenceName 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]").toString(); * Occurrence response = grafeasClient.getOccurrence(name); @@ -215,8 +230,11 @@ public final Occurrence getOccurrence(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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * GetOccurrenceRequest request = * GetOccurrenceRequest.newBuilder() @@ -240,8 +258,11 @@ public final Occurrence getOccurrence(GetOccurrenceRequest 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * GetOccurrenceRequest request = * GetOccurrenceRequest.newBuilder() @@ -264,8 +285,11 @@ public final UnaryCallablegetOccurrenceCallab * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * String filter = "filter-1274492040"; @@ -296,8 +320,11 @@ public final ListOccurrencesPagedResponse listOccurrences(ProjectName parent, St *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * String filter = "filter-1274492040"; @@ -325,8 +352,11 @@ public final ListOccurrencesPagedResponse listOccurrences(String parent, String *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ListOccurrencesRequest request = * ListOccurrencesRequest.newBuilder() @@ -355,8 +385,11 @@ public final ListOccurrencesPagedResponse listOccurrences(ListOccurrencesRequest *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ListOccurrencesRequest request = * ListOccurrencesRequest.newBuilder() @@ -386,8 +419,11 @@ public final ListOccurrencesPagedResponse listOccurrences(ListOccurrencesRequest *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ListOccurrencesRequest request = * ListOccurrencesRequest.newBuilder() @@ -424,8 +460,11 @@ public final ListOccurrencesPagedResponse listOccurrences(ListOccurrencesRequest *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * OccurrenceName name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]"); * grafeasClient.deleteOccurrence(name); @@ -450,8 +489,11 @@ public final void deleteOccurrence(OccurrenceName 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]").toString(); * grafeasClient.deleteOccurrence(name); @@ -475,8 +517,11 @@ public final void deleteOccurrence(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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * DeleteOccurrenceRequest request = * DeleteOccurrenceRequest.newBuilder() @@ -501,8 +546,11 @@ public final void deleteOccurrence(DeleteOccurrenceRequest 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * DeleteOccurrenceRequest request = * DeleteOccurrenceRequest.newBuilder() @@ -525,8 +573,11 @@ public final UnaryCallabledeleteOccurrenceCalla * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Occurrence occurrence = Occurrence.newBuilder().build(); @@ -555,8 +606,11 @@ public final Occurrence createOccurrence(ProjectName parent, Occurrence occurren *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * Occurrence occurrence = Occurrence.newBuilder().build(); @@ -582,8 +636,11 @@ public final Occurrence createOccurrence(String parent, Occurrence occurrence) { *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * CreateOccurrenceRequest request = * CreateOccurrenceRequest.newBuilder() @@ -608,8 +665,11 @@ public final Occurrence createOccurrence(CreateOccurrenceRequest 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * CreateOccurrenceRequest request = * CreateOccurrenceRequest.newBuilder() @@ -633,8 +693,11 @@ public final UnaryCallablecreateOccurrence * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Listoccurrences = new ArrayList<>(); @@ -665,8 +728,11 @@ public final BatchCreateOccurrencesResponse batchCreateOccurrences( * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * Listoccurrences = new ArrayList<>(); @@ -697,8 +763,11 @@ public final BatchCreateOccurrencesResponse batchCreateOccurrences( * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * BatchCreateOccurrencesRequest request = * BatchCreateOccurrencesRequest.newBuilder() @@ -724,8 +793,11 @@ public final BatchCreateOccurrencesResponse batchCreateOccurrences( *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * BatchCreateOccurrencesRequest request = * BatchCreateOccurrencesRequest.newBuilder() @@ -751,8 +823,11 @@ public final BatchCreateOccurrencesResponse batchCreateOccurrences( *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * OccurrenceName name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]"); * Occurrence occurrence = Occurrence.newBuilder().build(); @@ -785,8 +860,11 @@ public final Occurrence updateOccurrence( *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]").toString(); * Occurrence occurrence = Occurrence.newBuilder().build(); @@ -819,8 +897,11 @@ public final Occurrence updateOccurrence( *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * UpdateOccurrenceRequest request = * UpdateOccurrenceRequest.newBuilder() @@ -846,8 +927,11 @@ public final Occurrence updateOccurrence(UpdateOccurrenceRequest 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * UpdateOccurrenceRequest request = * UpdateOccurrenceRequest.newBuilder() @@ -873,8 +957,11 @@ public final UnaryCallableupdateOccurrence * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * OccurrenceName name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]"); * Note response = grafeasClient.getOccurrenceNote(name); @@ -901,8 +988,11 @@ public final Note getOccurrenceNote(OccurrenceName 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]").toString(); * Note response = grafeasClient.getOccurrenceNote(name); @@ -926,8 +1016,11 @@ public final Note getOccurrenceNote(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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * GetOccurrenceNoteRequest request = * GetOccurrenceNoteRequest.newBuilder() @@ -952,8 +1045,11 @@ public final Note getOccurrenceNote(GetOccurrenceNoteRequest 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * GetOccurrenceNoteRequest request = * GetOccurrenceNoteRequest.newBuilder() @@ -976,8 +1072,11 @@ public final UnaryCallablegetOccurrenceNoteCall * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * NoteName name = NoteName.of("[PROJECT]", "[NOTE]"); * Note response = grafeasClient.getNote(name); @@ -1000,8 +1099,11 @@ public final Note getNote(NoteName 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String name = NoteName.of("[PROJECT]", "[NOTE]").toString(); * Note response = grafeasClient.getNote(name); @@ -1023,8 +1125,11 @@ public final Note getNote(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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * GetNoteRequest request = * GetNoteRequest.newBuilder() @@ -1048,8 +1153,11 @@ public final Note getNote(GetNoteRequest 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * GetNoteRequest request = * GetNoteRequest.newBuilder() @@ -1072,8 +1180,11 @@ public final UnaryCallablegetNoteCallable() { * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * String filter = "filter-1274492040"; @@ -1103,8 +1214,11 @@ public final ListNotesPagedResponse listNotes(ProjectName parent, String filter) *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * String filter = "filter-1274492040"; @@ -1131,8 +1245,11 @@ public final ListNotesPagedResponse listNotes(String parent, String filter) { *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ListNotesRequest request = * ListNotesRequest.newBuilder() @@ -1161,8 +1278,11 @@ public final ListNotesPagedResponse listNotes(ListNotesRequest 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ListNotesRequest request = * ListNotesRequest.newBuilder() @@ -1190,8 +1310,11 @@ public final UnaryCallablelistNotesPa * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ListNotesRequest request = * ListNotesRequest.newBuilder() @@ -1226,8 +1349,11 @@ public final UnaryCallablelistNotesCallabl * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * NoteName name = NoteName.of("[PROJECT]", "[NOTE]"); * grafeasClient.deleteNote(name); @@ -1250,8 +1376,11 @@ public final void deleteNote(NoteName 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String name = NoteName.of("[PROJECT]", "[NOTE]").toString(); * grafeasClient.deleteNote(name); @@ -1273,8 +1402,11 @@ public final void deleteNote(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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * DeleteNoteRequest request = * DeleteNoteRequest.newBuilder() @@ -1298,8 +1430,11 @@ public final void deleteNote(DeleteNoteRequest 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * DeleteNoteRequest request = * DeleteNoteRequest.newBuilder() @@ -1322,8 +1457,11 @@ public final UnaryCallabledeleteNoteCallable() { * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * String noteId = "noteId-1039694675"; @@ -1355,8 +1493,11 @@ public final Note createNote(ProjectName parent, String noteId, Note note) { *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * String noteId = "noteId-1039694675"; @@ -1384,8 +1525,11 @@ public final Note createNote(String parent, String noteId, Note note) { *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * CreateNoteRequest request = * CreateNoteRequest.newBuilder() @@ -1411,8 +1555,11 @@ public final Note createNote(CreateNoteRequest 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * CreateNoteRequest request = * CreateNoteRequest.newBuilder() @@ -1437,8 +1584,11 @@ public final UnaryCallablecreateNoteCallable() { * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Mapnotes = new HashMap<>(); @@ -1468,8 +1618,11 @@ public final BatchCreateNotesResponse batchCreateNotes( * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * Mapnotes = new HashMap<>(); @@ -1495,8 +1648,11 @@ public final BatchCreateNotesResponse batchCreateNotes(String parent, Map 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * BatchCreateNotesRequest request = * BatchCreateNotesRequest.newBuilder() @@ -1521,8 +1677,11 @@ public final BatchCreateNotesResponse batchCreateNotes(BatchCreateNotesRequest r *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * BatchCreateNotesRequest request = * BatchCreateNotesRequest.newBuilder() @@ -1548,8 +1707,11 @@ public final BatchCreateNotesResponse batchCreateNotes(BatchCreateNotesRequest r *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * NoteName name = NoteName.of("[PROJECT]", "[NOTE]"); * Note note = Note.newBuilder().build(); @@ -1580,8 +1742,11 @@ public final Note updateNote(NoteName name, Note note, 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String name = NoteName.of("[PROJECT]", "[NOTE]").toString(); * Note note = Note.newBuilder().build(); @@ -1612,8 +1777,11 @@ public final Note updateNote(String name, Note note, 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * UpdateNoteRequest request = * UpdateNoteRequest.newBuilder() @@ -1639,8 +1807,11 @@ public final Note updateNote(UpdateNoteRequest 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * UpdateNoteRequest request = * UpdateNoteRequest.newBuilder() @@ -1666,8 +1837,11 @@ public final UnaryCallableupdateNoteCallable() { * 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * NoteName name = NoteName.of("[PROJECT]", "[NOTE]"); * String filter = "filter-1274492040"; @@ -1699,8 +1873,11 @@ public final ListNoteOccurrencesPagedResponse listNoteOccurrences(NoteName 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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * String name = NoteName.of("[PROJECT]", "[NOTE]").toString(); * String filter = "filter-1274492040"; @@ -1729,8 +1906,11 @@ public final ListNoteOccurrencesPagedResponse listNoteOccurrences(String name, S *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ListNoteOccurrencesRequest request = * ListNoteOccurrencesRequest.newBuilder() @@ -1761,8 +1941,11 @@ public final ListNoteOccurrencesPagedResponse listNoteOccurrences( *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ListNoteOccurrencesRequest request = * ListNoteOccurrencesRequest.newBuilder() @@ -1793,8 +1976,11 @@ public final ListNoteOccurrencesPagedResponse listNoteOccurrences( *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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * ListNoteOccurrencesRequest request = * ListNoteOccurrencesRequest.newBuilder() diff --git a/src/main/java/io/grafeas/v1/GrafeasSettings.java b/src/main/java/io/grafeas/v1/GrafeasSettings.java index e3e96feb..8ed3d706 100644 --- a/src/main/java/io/grafeas/v1/GrafeasSettings.java +++ b/src/main/java/io/grafeas/v1/GrafeasSettings.java @@ -56,16 +56,16 @@ *For example, to set the total timeout of getOccurrence 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 * GrafeasSettings.Builder grafeasSettingsBuilder = GrafeasSettings.newBuilder(); * grafeasSettingsBuilder * .getOccurrenceSettings() * .setRetrySettings( - * grafeasSettingsBuilder - * .getOccurrenceSettings() - * .getRetrySettings() - * .toBuilder() + * grafeasSettingsBuilder.getOccurrenceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GrafeasSettings grafeasSettings = grafeasSettingsBuilder.build(); diff --git a/src/main/java/io/grafeas/v1/package-info.java b/src/main/java/io/grafeas/v1/package-info.java index 1b5e13b9..92558728 100644 --- a/src/main/java/io/grafeas/v1/package-info.java +++ b/src/main/java/io/grafeas/v1/package-info.java @@ -37,8 +37,11 @@ *Sample for GrafeasClient: * *
{@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 (GrafeasClient grafeasClient = GrafeasClient.create()) { * OccurrenceName name = OccurrenceName.of("[PROJECT]", "[OCCURRENCE]"); * Occurrence response = grafeasClient.getOccurrence(name); diff --git a/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java b/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java index f8cc2d57..0f2278ed 100644 --- a/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java +++ b/src/main/java/io/grafeas/v1/stub/GrafeasStubSettings.java @@ -90,16 +90,16 @@ *For example, to set the total timeout of getOccurrence 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 * GrafeasStubSettings.Builder grafeasSettingsBuilder = GrafeasStubSettings.newBuilder(); * grafeasSettingsBuilder * .getOccurrenceSettings() * .setRetrySettings( - * grafeasSettingsBuilder - * .getOccurrenceSettings() - * .getRetrySettings() - * .toBuilder() + * grafeasSettingsBuilder.getOccurrenceSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * GrafeasStubSettings grafeasSettings = grafeasSettingsBuilder.build();