Skip to content

Commit

Permalink
chore: Set rest_numeric_enums = False for all gapic rules explicitly (
Browse files Browse the repository at this point in the history
#769)

- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 485623855

Source-Link: https://togithub.com/googleapis/googleapis/commit/807125e7953e32535710924fe4bf0362ac93754d

Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c4ddd6d651da69658a4762c5eafff5cd8f0e25c5
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzRkZGQ2ZDY1MWRhNjk2NThhNDc2MmM1ZWFmZmY1Y2Q4ZjBlMjVjNSJ9
  • Loading branch information
gcf-owl-bot[bot] authored Nov 8, 2022
1 parent 51a68a9 commit 237618e
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 31 deletions.
6 changes: 3 additions & 3 deletions java-phishingprotection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,20 @@ If you are using Maven without BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.1.3')
implementation platform('com.google.cloud:libraries-bom:26.1.4')
implementation 'com.google.cloud:google-cloud-phishingprotection'
```
If you are using Gradle without BOM, add this to your dependencies:

```Groovy
implementation 'com.google.cloud:google-cloud-phishingprotection:0.34.6'
implementation 'com.google.cloud:google-cloud-phishingprotection:0.36.0'
```

If you are using SBT, add this to your dependencies:

```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.34.6"
libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.36.0"
```

## Authentication
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@
* // - It may require specifying regional endpoints when creating the service client as shown in
* // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
* PhishingProtectionServiceV1Beta1Settings.newBuilder()
* .setTransportChannelProvider(
* PhishingProtectionServiceV1Beta1Settings.defaultHttpJsonTransportProviderBuilder()
* .build())
* .build();
* PhishingProtectionServiceV1Beta1Settings.newHttpJsonBuilder().build();
* PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
* PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
}
}
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider_sync]
// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetCredentialsProvider1_sync]
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;

Expand All @@ -33,13 +33,9 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
PhishingProtectionServiceV1Beta1Settings phishingProtectionServiceV1Beta1Settings =
PhishingProtectionServiceV1Beta1Settings.newBuilder()
.setTransportChannelProvider(
PhishingProtectionServiceV1Beta1Settings.defaultHttpJsonTransportProviderBuilder()
.build())
.build();
PhishingProtectionServiceV1Beta1Settings.newHttpJsonBuilder().build();
PhishingProtectionServiceV1Beta1Client phishingProtectionServiceV1Beta1Client =
PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
}
}
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setcredentialsprovider1_sync]
// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetEndpoint_sync]
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
import com.google.cloud.phishingprotection.v1beta1.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
PhishingProtectionServiceV1Beta1Client.create(phishingProtectionServiceV1Beta1Settings);
}
}
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_create_setendpoint_sync]
// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.phishingprotection.v1beta1.ProjectName;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncReportPhishing() throws Exception {
}
}
}
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_async]
// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_sync]
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.phishingprotection.v1beta1.ProjectName;
import com.google.phishingprotection.v1beta1.ReportPhishingRequest;
Expand Down Expand Up @@ -46,4 +46,4 @@ public static void syncReportPhishing() throws Exception {
}
}
}
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_sync]
// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_projectnamestring_sync]
// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_ProjectnameString_sync]
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.phishingprotection.v1beta1.ProjectName;
import com.google.phishingprotection.v1beta1.ReportPhishingResponse;
Expand All @@ -42,4 +42,4 @@ public static void syncReportPhishingProjectnameString() throws Exception {
}
}
}
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_projectnamestring_sync]
// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_ProjectnameString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_stringstring_sync]
// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_StringString_sync]
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Client;
import com.google.phishingprotection.v1beta1.ProjectName;
import com.google.phishingprotection.v1beta1.ReportPhishingResponse;
Expand All @@ -42,4 +42,4 @@ public static void syncReportPhishingStringString() throws Exception {
}
}
}
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1client_reportphishing_stringstring_sync]
// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1_ReportPhishing_StringString_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.samples;

// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1settings_reportphishing_sync]
// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1Settings_ReportPhishing_sync]
import com.google.cloud.phishingprotection.v1beta1.PhishingProtectionServiceV1Beta1Settings;
import java.time.Duration;

Expand Down Expand Up @@ -48,4 +48,4 @@ public static void syncReportPhishing() throws Exception {
phishingProtectionServiceV1Beta1SettingsBuilder.build();
}
}
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1settings_reportphishing_sync]
// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1Settings_ReportPhishing_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.phishingprotection.v1beta1.stub.samples;

// [START phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1stubsettings_reportphishing_sync]
// [START phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1StubSettings_ReportPhishing_sync]
import com.google.cloud.phishingprotection.v1beta1.stub.PhishingProtectionServiceV1Beta1StubSettings;
import java.time.Duration;

Expand Down Expand Up @@ -48,4 +48,4 @@ public static void syncReportPhishing() throws Exception {
phishingProtectionServiceV1Beta1SettingsBuilder.build();
}
}
// [END phishingprotection_v1beta1_generated_phishingprotectionservicev1beta1stubsettings_reportphishing_sync]
// [END phishingprotection_v1beta1_generated_PhishingProtectionServiceV1Beta1StubSettings_ReportPhishing_sync]

0 comments on commit 237618e

Please sign in to comment.