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
#289)

- [ ] 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 b5745e8 commit 224176f
Show file tree
Hide file tree
Showing 35 changed files with 70 additions and 76 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,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
* EssentialContactsServiceSettings essentialContactsServiceSettings =
* EssentialContactsServiceSettings.newBuilder()
* .setTransportChannelProvider(
* EssentialContactsServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
* .build();
* EssentialContactsServiceSettings.newHttpJsonBuilder().build();
* EssentialContactsServiceClient essentialContactsServiceClient =
* EssentialContactsServiceClient.create(essentialContactsServiceSettings);
* }</pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_async]
// [START essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.essentialcontacts.v1.ComputeContactsRequest;
import com.google.cloud.essentialcontacts.v1.Contact;
Expand Down Expand Up @@ -55,4 +55,4 @@ public static void asyncComputeContacts() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_async]
// [END essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_paged_async]
// [START essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_Paged_async]
import com.google.cloud.essentialcontacts.v1.ComputeContactsRequest;
import com.google.cloud.essentialcontacts.v1.ComputeContactsResponse;
import com.google.cloud.essentialcontacts.v1.Contact;
Expand Down Expand Up @@ -63,4 +63,4 @@ public static void asyncComputeContactsPaged() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_paged_async]
// [END essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_Paged_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_sync]
import com.google.cloud.essentialcontacts.v1.ComputeContactsRequest;
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
Expand Down Expand Up @@ -51,4 +51,4 @@ public static void syncComputeContacts() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_ComputeContacts_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_Create_SetCredentialsProvider_sync]
import com.google.api.gax.core.FixedCredentialsProvider;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings;
Expand All @@ -42,4 +42,4 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
EssentialContactsServiceClient.create(essentialContactsServiceSettings);
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_Create_SetCredentialsProvider_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider1_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_Create_SetCredentialsProvider1_sync]
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings;

Expand All @@ -33,12 +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
EssentialContactsServiceSettings essentialContactsServiceSettings =
EssentialContactsServiceSettings.newBuilder()
.setTransportChannelProvider(
EssentialContactsServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
.build();
EssentialContactsServiceSettings.newHttpJsonBuilder().build();
EssentialContactsServiceClient essentialContactsServiceClient =
EssentialContactsServiceClient.create(essentialContactsServiceSettings);
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider1_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_Create_SetCredentialsProvider1_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setendpoint_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_Create_SetEndpoint_sync]
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings;
import com.google.cloud.essentialcontacts.v1.myEndpoint;
Expand All @@ -39,4 +39,4 @@ public static void syncCreateSetEndpoint() throws Exception {
EssentialContactsServiceClient.create(essentialContactsServiceSettings);
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setendpoint_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_Create_SetEndpoint_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_async]
// [START essentialcontacts_v1_generated_EssentialContactsService_CreateContact_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.CreateContactRequest;
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void asyncCreateContact() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_async]
// [END essentialcontacts_v1_generated_EssentialContactsService_CreateContact_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_CreateContact_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.CreateContactRequest;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
Expand Down Expand Up @@ -45,4 +45,4 @@ public static void syncCreateContact() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_CreateContact_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_foldernamecontact_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_CreateContact_FoldernameContact_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.FolderName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateContactFoldernameContact() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_foldernamecontact_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_CreateContact_FoldernameContact_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_organizationnamecontact_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_CreateContact_OrganizationnameContact_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.OrganizationName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateContactOrganizationnameContact() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_organizationnamecontact_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_CreateContact_OrganizationnameContact_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_projectnamecontact_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_CreateContact_ProjectnameContact_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.ProjectName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateContactProjectnameContact() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_projectnamecontact_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_CreateContact_ProjectnameContact_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_stringcontact_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_CreateContact_StringContact_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.ProjectName;
Expand All @@ -41,4 +41,4 @@ public static void syncCreateContactStringContact() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_stringcontact_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_CreateContact_StringContact_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_async]
// [START essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.essentialcontacts.v1.ContactName;
import com.google.cloud.essentialcontacts.v1.DeleteContactRequest;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void asyncDeleteContact() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_async]
// [END essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_sync]
import com.google.cloud.essentialcontacts.v1.ContactName;
import com.google.cloud.essentialcontacts.v1.DeleteContactRequest;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void syncDeleteContact() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_contactname_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_Contactname_sync]
import com.google.cloud.essentialcontacts.v1.ContactName;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.protobuf.Empty;
Expand All @@ -40,4 +40,4 @@ public static void syncDeleteContactContactname() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_contactname_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_Contactname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_string_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_String_sync]
import com.google.cloud.essentialcontacts.v1.ContactName;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.protobuf.Empty;
Expand All @@ -40,4 +40,4 @@ public static void syncDeleteContactString() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_string_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_DeleteContact_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_async]
// [START essentialcontacts_v1_generated_EssentialContactsService_GetContact_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.ContactName;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void asyncGetContact() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_async]
// [END essentialcontacts_v1_generated_EssentialContactsService_GetContact_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_GetContact_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.ContactName;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
Expand Down Expand Up @@ -44,4 +44,4 @@ public static void syncGetContact() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_GetContact_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_contactname_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_GetContact_Contactname_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.ContactName;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
Expand All @@ -40,4 +40,4 @@ public static void syncGetContactContactname() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_contactname_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_GetContact_Contactname_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_string_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_GetContact_String_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.ContactName;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
Expand All @@ -40,4 +40,4 @@ public static void syncGetContactString() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_string_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_GetContact_String_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_async]
// [START essentialcontacts_v1_generated_EssentialContactsService_ListContacts_async]
import com.google.api.core.ApiFuture;
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
Expand Down Expand Up @@ -52,4 +52,4 @@ public static void asyncListContacts() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_async]
// [END essentialcontacts_v1_generated_EssentialContactsService_ListContacts_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_paged_async]
// [START essentialcontacts_v1_generated_EssentialContactsService_ListContacts_Paged_async]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.ListContactsRequest;
Expand Down Expand Up @@ -60,4 +60,4 @@ public static void asyncListContactsPaged() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_paged_async]
// [END essentialcontacts_v1_generated_EssentialContactsService_ListContacts_Paged_async]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_ListContacts_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.ListContactsRequest;
Expand Down Expand Up @@ -48,4 +48,4 @@ public static void syncListContacts() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_ListContacts_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_foldername_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_ListContacts_Foldername_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.FolderName;
Expand All @@ -42,4 +42,4 @@ public static void syncListContactsFoldername() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_foldername_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_ListContacts_Foldername_sync]
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.essentialcontacts.v1.samples;

// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_organizationname_sync]
// [START essentialcontacts_v1_generated_EssentialContactsService_ListContacts_Organizationname_sync]
import com.google.cloud.essentialcontacts.v1.Contact;
import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
import com.google.cloud.essentialcontacts.v1.OrganizationName;
Expand All @@ -42,4 +42,4 @@ public static void syncListContactsOrganizationname() throws Exception {
}
}
}
// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_organizationname_sync]
// [END essentialcontacts_v1_generated_EssentialContactsService_ListContacts_Organizationname_sync]
Loading

0 comments on commit 224176f

Please sign in to comment.