{@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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); @@ -108,8 +111,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 * RecaptchaEnterpriseServiceSettings recaptchaEnterpriseServiceSettings = * RecaptchaEnterpriseServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -121,8 +127,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 * RecaptchaEnterpriseServiceSettings recaptchaEnterpriseServiceSettings = * RecaptchaEnterpriseServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = @@ -190,8 +199,11 @@ public RecaptchaEnterpriseServiceStub 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); @@ -221,8 +233,11 @@ public final Assessment createAssessment(ProjectName parent, Assessment assessme *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); @@ -249,8 +264,11 @@ public final Assessment createAssessment(String parent, Assessment assessment) { *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * CreateAssessmentRequest request = @@ -276,8 +294,11 @@ public final Assessment createAssessment(CreateAssessmentRequest 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * CreateAssessmentRequest request = @@ -304,8 +325,11 @@ public final UnaryCallablecreateAssessment * 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * AssessmentName name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]"); @@ -341,8 +365,11 @@ public final AnnotateAssessmentResponse annotateAssessment( *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * String name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]").toString(); @@ -375,8 +402,11 @@ public final AnnotateAssessmentResponse annotateAssessment( *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * AnnotateAssessmentRequest request = @@ -405,8 +435,11 @@ public final AnnotateAssessmentResponse annotateAssessment(AnnotateAssessmentReq *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * AnnotateAssessmentRequest request = @@ -434,8 +467,11 @@ public final AnnotateAssessmentResponse annotateAssessment(AnnotateAssessmentReq *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * CreateKeyRequest request = @@ -461,8 +497,11 @@ public final Key createKey(CreateKeyRequest 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * CreateKeyRequest request = @@ -488,8 +527,11 @@ public final UnaryCallablecreateKeyCallable() { * 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ListKeysRequest request = @@ -518,8 +560,11 @@ public final ListKeysPagedResponse listKeys(ListKeysRequest 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ListKeysRequest request = @@ -548,8 +593,11 @@ public final UnaryCallablelistKeysPaged * 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ListKeysRequest request = @@ -585,8 +633,11 @@ public final UnaryCallablelistKeysCallable() * 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * GetKeyRequest request = @@ -609,8 +660,11 @@ public final Key getKey(GetKeyRequest 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * GetKeyRequest request = @@ -632,8 +686,11 @@ public final UnaryCallablegetKeyCallable() { * 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * UpdateKeyRequest request = @@ -659,8 +716,11 @@ public final Key updateKey(UpdateKeyRequest 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * UpdateKeyRequest request = @@ -686,8 +746,11 @@ public final UnaryCallableupdateKeyCallable() { * 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * DeleteKeyRequest request = @@ -712,8 +775,11 @@ public final void deleteKey(DeleteKeyRequest 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * DeleteKeyRequest request = @@ -741,8 +807,11 @@ public final UnaryCallabledeleteKeyCallable() { * 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * MigrateKeyRequest request = @@ -770,8 +839,11 @@ public final Key migrateKey(MigrateKeyRequest 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * MigrateKeyRequest request = @@ -796,8 +868,11 @@ public final UnaryCallablemigrateKeyCallable() { * 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * MetricsName name = MetricsName.of("[PROJECT]", "[KEY]"); @@ -822,8 +897,11 @@ public final Metrics getMetrics(MetricsName 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * String name = MetricsName.of("[PROJECT]", "[KEY]").toString(); @@ -847,8 +925,11 @@ public final Metrics getMetrics(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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * GetMetricsRequest request = @@ -873,8 +954,11 @@ public final Metrics getMetrics(GetMetricsRequest 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * GetMetricsRequest request = @@ -899,8 +983,11 @@ public final UnaryCallablegetMetricsCallable() { * 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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); @@ -930,8 +1017,11 @@ public final ListRelatedAccountGroupsPagedResponse listRelatedAccountGroups(Proj *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); @@ -959,8 +1049,11 @@ public final ListRelatedAccountGroupsPagedResponse listRelatedAccountGroups(Stri *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ListRelatedAccountGroupsRequest request = @@ -991,8 +1084,11 @@ public final ListRelatedAccountGroupsPagedResponse listRelatedAccountGroups( *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ListRelatedAccountGroupsRequest request = @@ -1024,8 +1120,11 @@ public final ListRelatedAccountGroupsPagedResponse listRelatedAccountGroups( *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ListRelatedAccountGroupsRequest request = @@ -1062,8 +1161,11 @@ public final ListRelatedAccountGroupsPagedResponse listRelatedAccountGroups( *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * RelatedAccountGroupName parent = @@ -1097,8 +1199,11 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * String parent = RelatedAccountGroupName.of("[PROJECT]", "[RELATEDACCOUNTGROUP]").toString(); @@ -1129,8 +1234,11 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ListRelatedAccountGroupMembershipsRequest request = @@ -1164,8 +1272,11 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ListRelatedAccountGroupMembershipsRequest request = @@ -1200,8 +1311,11 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ListRelatedAccountGroupMembershipsRequest request = @@ -1243,8 +1357,11 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * RelatedAccountGroupName project = @@ -1284,8 +1401,11 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * String project = RelatedAccountGroupName.of("[PROJECT]", "[RELATEDACCOUNTGROUP]").toString(); @@ -1323,8 +1443,11 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * SearchRelatedAccountGroupMembershipsRequest request = @@ -1359,8 +1482,11 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * SearchRelatedAccountGroupMembershipsRequest request = @@ -1396,8 +1522,11 @@ public final ListRelatedAccountGroupMembershipsPagedResponse listRelatedAccountG *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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * SearchRelatedAccountGroupMembershipsRequest request = diff --git a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java index b20091f2..52d938e8 100644 --- a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java +++ b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/RecaptchaEnterpriseServiceSettings.java @@ -77,8 +77,11 @@ *For example, to set the total timeout of createAssessment 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 * RecaptchaEnterpriseServiceSettings.Builder recaptchaEnterpriseServiceSettingsBuilder = * RecaptchaEnterpriseServiceSettings.newBuilder(); * recaptchaEnterpriseServiceSettingsBuilder diff --git a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java index 7102ab54..04494be7 100644 --- a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java +++ b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/package-info.java @@ -24,8 +24,11 @@ *Sample for RecaptchaEnterpriseServiceClient: * *
{@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 (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = * RecaptchaEnterpriseServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); diff --git a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java index 7b9ddfc9..8ae392c2 100644 --- a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java +++ b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1/stub/RecaptchaEnterpriseServiceStubSettings.java @@ -94,8 +94,11 @@ *For example, to set the total timeout of createAssessment 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 * RecaptchaEnterpriseServiceStubSettings.Builder recaptchaEnterpriseServiceSettingsBuilder = * RecaptchaEnterpriseServiceStubSettings.newBuilder(); * recaptchaEnterpriseServiceSettingsBuilder diff --git a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java index dd71b1e5..944bb3a9 100644 --- a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java +++ b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Client.java @@ -39,8 +39,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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = * RecaptchaEnterpriseServiceV1Beta1Client.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); @@ -80,8 +83,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 * RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings = * RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -93,8 +99,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings = * RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build(); * RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = @@ -105,8 +114,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 * RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings = * RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder() * .setTransportChannelProvider( @@ -182,8 +194,11 @@ public RecaptchaEnterpriseServiceV1Beta1Stub 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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = * RecaptchaEnterpriseServiceV1Beta1Client.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); @@ -214,8 +229,11 @@ public final Assessment createAssessment(ProjectName parent, Assessment assessme *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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = * RecaptchaEnterpriseServiceV1Beta1Client.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); @@ -243,8 +261,11 @@ public final Assessment createAssessment(String parent, Assessment assessment) { *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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = * RecaptchaEnterpriseServiceV1Beta1Client.create()) { * CreateAssessmentRequest request = @@ -270,8 +291,11 @@ public final Assessment createAssessment(CreateAssessmentRequest 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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = * RecaptchaEnterpriseServiceV1Beta1Client.create()) { * CreateAssessmentRequest request = @@ -298,8 +322,11 @@ public final UnaryCallablecreateAssessment * 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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = * RecaptchaEnterpriseServiceV1Beta1Client.create()) { * AssessmentName name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]"); @@ -335,8 +362,11 @@ public final AnnotateAssessmentResponse annotateAssessment( *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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = * RecaptchaEnterpriseServiceV1Beta1Client.create()) { * String name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]").toString(); @@ -369,8 +399,11 @@ public final AnnotateAssessmentResponse annotateAssessment( *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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = * RecaptchaEnterpriseServiceV1Beta1Client.create()) { * AnnotateAssessmentRequest request = @@ -399,8 +432,11 @@ public final AnnotateAssessmentResponse annotateAssessment(AnnotateAssessmentReq *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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = * RecaptchaEnterpriseServiceV1Beta1Client.create()) { * AnnotateAssessmentRequest request = diff --git a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java index c7402c06..78dcc024 100644 --- a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java +++ b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/RecaptchaEnterpriseServiceV1Beta1Settings.java @@ -55,8 +55,11 @@ *For example, to set the total timeout of createAssessment 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 * RecaptchaEnterpriseServiceV1Beta1Settings.Builder * recaptchaEnterpriseServiceV1Beta1SettingsBuilder = * RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder(); diff --git a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java index 03dcd9fb..451ede7b 100644 --- a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java +++ b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/package-info.java @@ -24,8 +24,11 @@ *Sample for RecaptchaEnterpriseServiceV1Beta1Client: * *
{@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 (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = * RecaptchaEnterpriseServiceV1Beta1Client.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); diff --git a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java index 07038952..43d05814 100644 --- a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java +++ b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub.java @@ -81,7 +81,7 @@ public class HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("assessment", request.getAssessment())) + .toBody("assessment", request.getAssessment(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -118,7 +118,7 @@ public class HttpJsonRecaptchaEnterpriseServiceV1Beta1Stub .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java index cd9bc3b1..3286cb6a 100644 --- a/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java +++ b/google-cloud-recaptchaenterprise/src/main/java/com/google/cloud/recaptchaenterprise/v1beta1/stub/RecaptchaEnterpriseServiceV1Beta1StubSettings.java @@ -66,8 +66,11 @@ * For example, to set the total timeout of createAssessment 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 * RecaptchaEnterpriseServiceV1Beta1StubSettings.Builder * recaptchaEnterpriseServiceV1Beta1SettingsBuilder = * RecaptchaEnterpriseServiceV1Beta1StubSettings.newBuilder(); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/AsyncAnnotateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/AsyncAnnotateAssessment.java index 02a3c46c..191034f9 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/AsyncAnnotateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/AsyncAnnotateAssessment.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAnnotateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { AnnotateAssessmentRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessment.java index 4f210537..b37cbe57 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessment.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncAnnotateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { AnnotateAssessmentRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java index 18095252..385a3cc3 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { AssessmentName name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]"); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java index 6af10048..8e8d2c05 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncAnnotateAssessmentStringAnnotateassessmentrequestannotation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { String name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/create/SyncCreateSetCredentialsProvider.java index 401ff6dd..a55e8a89 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RecaptchaEnterpriseServiceSettings recaptchaEnterpriseServiceSettings = RecaptchaEnterpriseServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/create/SyncCreateSetEndpoint.java index 95176cb7..f63ea74c 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RecaptchaEnterpriseServiceSettings recaptchaEnterpriseServiceSettings = RecaptchaEnterpriseServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/AsyncCreateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/AsyncCreateAssessment.java index 00c7a18c..e8411aee 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/AsyncCreateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/AsyncCreateAssessment.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { CreateAssessmentRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessment.java index 0500ad09..6f077073 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessment.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { CreateAssessmentRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessmentProjectnameAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessmentProjectnameAssessment.java index 51441cc7..39f250b1 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessmentProjectnameAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessmentProjectnameAssessment.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAssessmentProjectnameAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessmentStringAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessmentStringAssessment.java index 1a6daa94..031c380f 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessmentStringAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createassessment/SyncCreateAssessmentStringAssessment.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAssessmentStringAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createkey/AsyncCreateKey.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createkey/AsyncCreateKey.java index 8cfd10bd..eb908fc9 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createkey/AsyncCreateKey.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createkey/AsyncCreateKey.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateKey() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { CreateKeyRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createkey/SyncCreateKey.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createkey/SyncCreateKey.java index f8d73e1a..f93d3806 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createkey/SyncCreateKey.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/createkey/SyncCreateKey.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateKey() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { CreateKeyRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/deletekey/AsyncDeleteKey.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/deletekey/AsyncDeleteKey.java index 21a7dde0..5187c567 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/deletekey/AsyncDeleteKey.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/deletekey/AsyncDeleteKey.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteKey() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { DeleteKeyRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/deletekey/SyncDeleteKey.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/deletekey/SyncDeleteKey.java index 06fcc9dd..74652841 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/deletekey/SyncDeleteKey.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/deletekey/SyncDeleteKey.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteKey() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { DeleteKeyRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getkey/AsyncGetKey.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getkey/AsyncGetKey.java index efae28fa..d24b8967 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getkey/AsyncGetKey.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getkey/AsyncGetKey.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetKey() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { GetKeyRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getkey/SyncGetKey.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getkey/SyncGetKey.java index 5d5cefa6..6b5a6398 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getkey/SyncGetKey.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getkey/SyncGetKey.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetKey() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { GetKeyRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/AsyncGetMetrics.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/AsyncGetMetrics.java index 906ba48b..3f504e9f 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/AsyncGetMetrics.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/AsyncGetMetrics.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetMetrics() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { GetMetricsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetrics.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetrics.java index 3f8a596c..5fb0ef33 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetrics.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetrics.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetMetrics() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { GetMetricsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetricsMetricsname.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetricsMetricsname.java index 52d0b59a..9661e640 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetricsMetricsname.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetricsMetricsname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetMetricsMetricsname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { MetricsName name = MetricsName.of("[PROJECT]", "[KEY]"); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetricsString.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetricsString.java index a45f67fb..83329fb2 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetricsString.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/getmetrics/SyncGetMetricsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetMetricsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { String name = MetricsName.of("[PROJECT]", "[KEY]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/AsyncListKeys.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/AsyncListKeys.java index 5bf13eb9..42ab1c53 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/AsyncListKeys.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/AsyncListKeys.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListKeys() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ListKeysRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/AsyncListKeysPaged.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/AsyncListKeysPaged.java index 1dba3cec..8a96e515 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/AsyncListKeysPaged.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/AsyncListKeysPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListKeysPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ListKeysRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/SyncListKeys.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/SyncListKeys.java index 0a10d4f4..95932103 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/SyncListKeys.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listkeys/SyncListKeys.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListKeys() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ListKeysRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java index 479d6e66..5ca18406 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMemberships.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRelatedAccountGroupMemberships() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ListRelatedAccountGroupMembershipsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java index 0ff33597..f96a6004 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/AsyncListRelatedAccountGroupMembershipsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRelatedAccountGroupMembershipsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ListRelatedAccountGroupMembershipsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java index 94f89c92..c246083a 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMemberships.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRelatedAccountGroupMemberships() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ListRelatedAccountGroupMembershipsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java index c5982e64..b3d5b2ca 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsRelatedaccountgroupname.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { public static void syncListRelatedAccountGroupMembershipsRelatedaccountgroupname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { RelatedAccountGroupName parent = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java index bbd1be2d..a9e7ffb5 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroupmemberships/SyncListRelatedAccountGroupMembershipsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRelatedAccountGroupMembershipsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { String parent = RelatedAccountGroupName.of("[PROJECT]", "[RELATEDACCOUNTGROUP]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java index 54534d0c..bb1a25e2 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/AsyncListRelatedAccountGroups.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRelatedAccountGroups() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ListRelatedAccountGroupsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java index cfd93e69..0d9df4c4 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/AsyncListRelatedAccountGroupsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListRelatedAccountGroupsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ListRelatedAccountGroupsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroups.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroups.java index 62715c57..106f3a3a 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroups.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroups.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRelatedAccountGroups() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ListRelatedAccountGroupsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java index 03d3590a..4cf63370 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroupsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRelatedAccountGroupsProjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java index 8790af4b..a0da3908 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/listrelatedaccountgroups/SyncListRelatedAccountGroupsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListRelatedAccountGroupsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { String parent = ProjectName.of("[PROJECT]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/migratekey/AsyncMigrateKey.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/migratekey/AsyncMigrateKey.java index a93f665b..61a84231 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/migratekey/AsyncMigrateKey.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/migratekey/AsyncMigrateKey.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncMigrateKey() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { MigrateKeyRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/migratekey/SyncMigrateKey.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/migratekey/SyncMigrateKey.java index 1cc641b9..5a07ec57 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/migratekey/SyncMigrateKey.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/migratekey/SyncMigrateKey.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncMigrateKey() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { MigrateKeyRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java index 516c8727..e9c0e1f1 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMemberships.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchRelatedAccountGroupMemberships() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { SearchRelatedAccountGroupMembershipsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java index 96345416..1bcc6e32 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/AsyncSearchRelatedAccountGroupMembershipsPaged.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchRelatedAccountGroupMembershipsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { SearchRelatedAccountGroupMembershipsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java index fae86bbd..4fe4b87b 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMemberships.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchRelatedAccountGroupMemberships() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { SearchRelatedAccountGroupMembershipsRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java index a46871ef..75c41ab4 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncSearchRelatedAccountGroupMembershipsRelatedaccountgroupnameBytestring() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { RelatedAccountGroupName project = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java index 6aa62577..4120dc67 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/searchrelatedaccountgroupmemberships/SyncSearchRelatedAccountGroupMembershipsStringBytestring.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchRelatedAccountGroupMembershipsStringBytestring() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { String project = RelatedAccountGroupName.of("[PROJECT]", "[RELATEDACCOUNTGROUP]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/updatekey/AsyncUpdateKey.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/updatekey/AsyncUpdateKey.java index 1199190c..75511ccf 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/updatekey/AsyncUpdateKey.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/updatekey/AsyncUpdateKey.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateKey() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { UpdateKeyRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/updatekey/SyncUpdateKey.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/updatekey/SyncUpdateKey.java index 993d70da..d3ba2def 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/updatekey/SyncUpdateKey.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseserviceclient/updatekey/SyncUpdateKey.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateKey() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceClient recaptchaEnterpriseServiceClient = RecaptchaEnterpriseServiceClient.create()) { UpdateKeyRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java index 426e31ea..d1d6ed67 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/recaptchaenterpriseservicesettings/createassessment/SyncCreateAssessment.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RecaptchaEnterpriseServiceSettings.Builder recaptchaEnterpriseServiceSettingsBuilder = RecaptchaEnterpriseServiceSettings.newBuilder(); recaptchaEnterpriseServiceSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java index 172b4a52..3ee1acbb 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1/stub/recaptchaenterpriseservicestubsettings/createassessment/SyncCreateAssessment.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RecaptchaEnterpriseServiceStubSettings.Builder recaptchaEnterpriseServiceSettingsBuilder = RecaptchaEnterpriseServiceStubSettings.newBuilder(); recaptchaEnterpriseServiceSettingsBuilder diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/AsyncAnnotateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/AsyncAnnotateAssessment.java index 55b61aee..5c2ec98b 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/AsyncAnnotateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/AsyncAnnotateAssessment.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncAnnotateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) { AnnotateAssessmentRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessment.java index dd7e57f5..035a8d4c 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessment.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncAnnotateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) { AnnotateAssessmentRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java index 74dda92f..7bf458d0 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncAnnotateAssessmentAssessmentnameAnnotateassessmentrequestannotation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) { AssessmentName name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]"); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java index 6002bab3..1e5ed5ad 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/annotateassessment/SyncAnnotateAssessmentStringAnnotateassessmentrequestannotation.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { public static void syncAnnotateAssessmentStringAnnotateassessmentrequestannotation() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) { String name = AssessmentName.of("[PROJECT]", "[ASSESSMENT]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetCredentialsProvider.java index 3458dba6..bd7e58ae 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetCredentialsProvider.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings = RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java index 0889e3a0..671fc93e 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings = RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder() .setTransportChannelProvider( diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetEndpoint.java index 26b82d9c..4674877a 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetEndpoint.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RecaptchaEnterpriseServiceV1Beta1Settings recaptchaEnterpriseServiceV1Beta1Settings = RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder().setEndpoint(myEndpoint).build(); RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/AsyncCreateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/AsyncCreateAssessment.java index 976eaa22..a7adf1aa 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/AsyncCreateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/AsyncCreateAssessment.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) { CreateAssessmentRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessment.java index 95b87172..e52f6b8c 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessment.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) { CreateAssessmentRequest request = diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessmentProjectnameAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessmentProjectnameAssessment.java index 7a775edb..54a6dab9 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessmentProjectnameAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessmentProjectnameAssessment.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAssessmentProjectnameAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) { ProjectName parent = ProjectName.of("[PROJECT]"); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessmentStringAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessmentStringAssessment.java index 37199b03..3cf408ba 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessmentStringAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1client/createassessment/SyncCreateAssessmentStringAssessment.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAssessmentStringAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (RecaptchaEnterpriseServiceV1Beta1Client recaptchaEnterpriseServiceV1Beta1Client = RecaptchaEnterpriseServiceV1Beta1Client.create()) { String parent = ProjectName.of("[PROJECT]").toString(); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java index 55fcfb81..fca27ed1 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/recaptchaenterpriseservicev1beta1settings/createassessment/SyncCreateAssessment.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RecaptchaEnterpriseServiceV1Beta1Settings.Builder recaptchaEnterpriseServiceV1Beta1SettingsBuilder = RecaptchaEnterpriseServiceV1Beta1Settings.newBuilder(); diff --git a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java index 951d9d8e..196d9aaa 100644 --- a/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java +++ b/samples/snippets/generated/com/google/cloud/recaptchaenterprise/v1beta1/stub/recaptchaenterpriseservicev1beta1stubsettings/createassessment/SyncCreateAssessment.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateAssessment() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library RecaptchaEnterpriseServiceV1Beta1StubSettings.Builder recaptchaEnterpriseServiceV1Beta1SettingsBuilder = RecaptchaEnterpriseServiceV1Beta1StubSettings.newBuilder(); From 7e1063d2eafa94bb82c55e93c9a9c7b4aa0a7f02 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 10 Sep 2022 02:08:23 +0000 Subject: [PATCH 4/6] chore: Generated snippets should not be owned by samples reviewers (#1575) (#886) Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 --- .github/.OwlBot.lock.yaml | 3 +-- .github/CODEOWNERS | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a20fd630..62592923 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7a9a7eb50ca2af5bfffab3abd2f38d408735c990a74bacf9b7fde2af0a086a0b -# created: 2022-08-01T15:27:14.757266067Z + digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 30fdb7b9..db2d8ad1 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -8,3 +8,6 @@ # The java-samples-reviewers team is the default owner for samples changes samples/**/*.java @googleapis/java-samples-reviewers + +# Generated snippets should not be owned by samples reviewers +samples/snippets/generated/ @googleapis/yoshi-java From cb5ef27b2f6065a15ef3394953d5e012069c0a51 Mon Sep 17 00:00:00 2001 From: WhiteSource RenovateDate: Thu, 15 Sep 2022 14:40:31 +0200 Subject: [PATCH 5/6] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#887) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-recaptchaenterprise). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f7858acf..1998a085 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@googleapis/java-shared-dependencies
### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3) ##### Dependencies - Google-cloud-core 2.8.12 ([#799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3)) - Moving gson to first-party-dependencies ([#800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814)) - Update gax.version to v2.19.1 ([#798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8)) - Update google.core.version to v2.8.11 ([#793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))From 3f46b6bac133cb2f84c494386e26cbf86b1cf975 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Sep 2022 12:58:18 +0000 Subject: [PATCH 6/6] chore(main): release 3.0.8 (#888) :robot: I have created a release *beep* *boop* --- ## [3.0.8](https://github.com/googleapis/java-recaptchaenterprise/compare/v3.0.7...v3.0.8) (2022-09-15) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#887](https://github.com/googleapis/java-recaptchaenterprise/issues/887)) ([cb5ef27](https://github.com/googleapis/java-recaptchaenterprise/commit/cb5ef27b2f6065a15ef3394953d5e012069c0a51)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-cloud-recaptchaenterprise-bom/pom.xml | 12 ++++++------ google-cloud-recaptchaenterprise/pom.xml | 4 ++-- grpc-google-cloud-recaptchaenterprise-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-cloud-recaptchaenterprise-v1/pom.xml | 4 ++-- .../pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d3614d9f..25c9a119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [3.0.8](https://github.com/googleapis/java-recaptchaenterprise/compare/v3.0.7...v3.0.8) (2022-09-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#887](https://github.com/googleapis/java-recaptchaenterprise/issues/887)) ([cb5ef27](https://github.com/googleapis/java-recaptchaenterprise/commit/cb5ef27b2f6065a15ef3394953d5e012069c0a51)) + ## [3.0.7](https://github.com/googleapis/java-recaptchaenterprise/compare/v3.0.6...v3.0.7) (2022-09-08) diff --git a/google-cloud-recaptchaenterprise-bom/pom.xml b/google-cloud-recaptchaenterprise-bom/pom.xml index 42d6cb2f..f1d78682 100644 --- a/google-cloud-recaptchaenterprise-bom/pom.xml +++ b/google-cloud-recaptchaenterprise-bom/pom.xml @@ -3,7 +3,7 @@ com.google.cloud google-cloud-shared-dependencies -3.0.2 +3.0.3 pom import 4.0.0 com.google.cloud google-cloud-recaptchaenterprise-bom -3.0.8-SNAPSHOT +3.0.8 pom com.google.cloud @@ -52,27 +52,27 @@com.google.cloud google-cloud-recaptchaenterprise -3.0.8-SNAPSHOT +3.0.8 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1 -3.0.8-SNAPSHOT +3.0.8 com.google.api.grpc grpc-google-cloud-recaptchaenterprise-v1beta1 -0.42.8-SNAPSHOT +0.42.8 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1 -3.0.8-SNAPSHOT +3.0.8 com.google.api.grpc proto-google-cloud-recaptchaenterprise-v1beta1 -0.42.8-SNAPSHOT +0.42.8