From b2bcb83b54b943721c47a293a8926de4d70d3d1a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:37:00 +0000 Subject: [PATCH 1/6] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../v1/EssentialContactsServiceGrpc.java | 1093 ----------------- .../v1/EssentialContactsServiceClient.java | 41 +- .../v1/EssentialContactsServiceSettings.java | 30 +- .../essentialcontacts/v1/gapic_metadata.json | 0 .../essentialcontacts/v1/package-info.java | 0 .../v1/stub/EssentialContactsServiceStub.java | 0 .../EssentialContactsServiceStubSettings.java | 59 +- ...sentialContactsServiceCallableFactory.java | 0 .../GrpcEssentialContactsServiceStub.java | 1 + ...sentialContactsServiceCallableFactory.java | 105 ++ .../HttpJsonEssentialContactsServiceStub.java | 560 +++++++++ ...tialContactsServiceClientHttpJsonTest.java | 843 +++++++++++++ .../EssentialContactsServiceClientTest.java | 0 .../v1/MockEssentialContactsService.java | 0 .../v1/MockEssentialContactsServiceImpl.java | 0 .../v1/EssentialContactsServiceGrpc.java | 835 +++++++++++++ .../v1/ComputeContactsRequest.java | 684 ++++------- .../v1/ComputeContactsRequestOrBuilder.java | 88 +- .../v1/ComputeContactsResponse.java | 472 +++---- .../v1/ComputeContactsResponseOrBuilder.java | 45 +- .../cloud/essentialcontacts/v1/Contact.java | 883 +++++-------- .../essentialcontacts/v1/ContactName.java | 0 .../v1/ContactOrBuilder.java | 109 +- .../v1/CreateContactRequest.java | 488 +++----- .../v1/CreateContactRequestOrBuilder.java | 55 +- .../v1/DeleteContactRequest.java | 342 +++--- .../v1/DeleteContactRequestOrBuilder.java | 35 + .../essentialcontacts/v1/EnumsProto.java | 50 + .../essentialcontacts/v1/FolderName.java | 0 .../v1/GetContactRequest.java | 342 +++--- .../v1/GetContactRequestOrBuilder.java | 35 + .../v1/ListContactsRequest.java | 455 +++---- .../v1/ListContactsRequestOrBuilder.java | 47 +- .../v1/ListContactsResponse.java | 464 +++---- .../v1/ListContactsResponseOrBuilder.java | 45 +- .../v1/NotificationCategory.java | 117 +- .../v1/OrganizationName.java | 0 .../essentialcontacts/v1/ProjectName.java | 0 .../v1/SendTestMessageRequest.java | 617 ++++------ .../v1/SendTestMessageRequestOrBuilder.java | 83 +- .../cloud/essentialcontacts/v1/Service.java | 281 +++++ .../v1/UpdateContactRequest.java | 516 +++----- .../v1/UpdateContactRequestOrBuilder.java | 55 +- .../essentialcontacts/v1/ValidationState.java | 82 +- .../cloud/essentialcontacts/v1/enums.proto | 0 .../cloud/essentialcontacts/v1/service.proto | 0 .../computecontacts/AsyncComputeContacts.java | 55 + .../AsyncComputeContactsPaged.java | 63 + .../computecontacts/SyncComputeContacts.java | 51 + .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../createcontact/AsyncCreateContact.java | 49 + .../createcontact/SyncCreateContact.java | 45 + .../SyncCreateContactFoldernameContact.java | 41 + ...cCreateContactOrganizationnameContact.java | 41 + .../SyncCreateContactProjectnameContact.java | 41 + .../SyncCreateContactStringContact.java | 41 + .../deletecontact/AsyncDeleteContact.java | 48 + .../deletecontact/SyncDeleteContact.java | 44 + .../SyncDeleteContactContactname.java | 40 + .../SyncDeleteContactString.java | 40 + .../getcontact/AsyncGetContact.java | 48 + .../getcontact/SyncGetContact.java | 44 + .../getcontact/SyncGetContactContactname.java | 40 + .../getcontact/SyncGetContactString.java | 40 + .../listcontacts/AsyncListContacts.java | 52 + .../listcontacts/AsyncListContactsPaged.java | 60 + .../listcontacts/SyncListContacts.java | 48 + .../SyncListContactsFoldername.java | 42 + .../SyncListContactsOrganizationname.java | 42 + .../SyncListContactsProjectname.java | 42 + .../listcontacts/SyncListContactsString.java | 42 + .../sendtestmessage/AsyncSendTestMessage.java | 52 + .../sendtestmessage/SyncSendTestMessage.java | 48 + .../updatecontact/AsyncUpdateContact.java | 49 + .../updatecontact/SyncUpdateContact.java | 45 + .../SyncUpdateContactContactFieldmask.java | 41 + .../createcontact/SyncCreateContact.java | 47 + .../createcontact/SyncCreateContact.java | 47 + .../v1/DeleteContactRequestOrBuilder.java | 60 - .../essentialcontacts/v1/EnumsProto.java | 61 - .../v1/GetContactRequestOrBuilder.java | 60 - .../cloud/essentialcontacts/v1/Service.java | 310 ----- 84 files changed, 6533 insertions(+), 5465 deletions(-) delete mode 100644 grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java (97%) rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java (90%) rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/gapic_metadata.json (100%) rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java (100%) rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStub.java (100%) rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java (90%) rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceCallableFactory.java (100%) rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceStub.java create mode 100644 owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientHttpJsonTest.java rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientTest.java (100%) rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsService.java (100%) rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsServiceImpl.java (100%) create mode 100644 owl-bot-staging/v1/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java (70%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java (67%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java (75%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java (77%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java (71%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java (100%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java (72%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java (63%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java (50%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java (100%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java (71%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java (65%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java (74%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java (73%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java (77%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java (100%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java (100%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java (65%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java (60%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java (66%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java (63%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java (70%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/proto/google/cloud/essentialcontacts/v1/enums.proto (100%) rename {proto-google-cloud-essential-contacts-v1 => owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1}/src/main/proto/google/cloud/essentialcontacts/v1/service.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContacts.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContactsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/SyncComputeContacts.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/AsyncCreateContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/AsyncDeleteContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/AsyncGetContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactContactname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContacts.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContactsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContacts.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/AsyncSendTestMessage.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/AsyncUpdateContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservicesettings/createcontact/SyncCreateContact.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/stub/essentialcontactsservicestubsettings/createcontact/SyncCreateContact.java delete mode 100644 proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java delete mode 100644 proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java delete mode 100644 proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java delete mode 100644 proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java diff --git a/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java b/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java deleted file mode 100644 index 6306545a..00000000 --- a/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java +++ /dev/null @@ -1,1093 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.essentialcontacts.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Manages contacts for important Google Cloud notifications.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/essentialcontacts/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class EssentialContactsServiceGrpc { - - private EssentialContactsServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.essentialcontacts.v1.EssentialContactsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.CreateContactRequest, - com.google.cloud.essentialcontacts.v1.Contact> - getCreateContactMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateContact", - requestType = com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, - responseType = com.google.cloud.essentialcontacts.v1.Contact.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.CreateContactRequest, - com.google.cloud.essentialcontacts.v1.Contact> - getCreateContactMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.CreateContactRequest, - com.google.cloud.essentialcontacts.v1.Contact> - getCreateContactMethod; - if ((getCreateContactMethod = EssentialContactsServiceGrpc.getCreateContactMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getCreateContactMethod = EssentialContactsServiceGrpc.getCreateContactMethod) - == null) { - EssentialContactsServiceGrpc.getCreateContactMethod = - getCreateContactMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateContact")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.CreateContactRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) - .setSchemaDescriptor( - new EssentialContactsServiceMethodDescriptorSupplier("CreateContact")) - .build(); - } - } - } - return getCreateContactMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.UpdateContactRequest, - com.google.cloud.essentialcontacts.v1.Contact> - getUpdateContactMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateContact", - requestType = com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, - responseType = com.google.cloud.essentialcontacts.v1.Contact.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.UpdateContactRequest, - com.google.cloud.essentialcontacts.v1.Contact> - getUpdateContactMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.UpdateContactRequest, - com.google.cloud.essentialcontacts.v1.Contact> - getUpdateContactMethod; - if ((getUpdateContactMethod = EssentialContactsServiceGrpc.getUpdateContactMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getUpdateContactMethod = EssentialContactsServiceGrpc.getUpdateContactMethod) - == null) { - EssentialContactsServiceGrpc.getUpdateContactMethod = - getUpdateContactMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateContact")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) - .setSchemaDescriptor( - new EssentialContactsServiceMethodDescriptorSupplier("UpdateContact")) - .build(); - } - } - } - return getUpdateContactMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.ListContactsRequest, - com.google.cloud.essentialcontacts.v1.ListContactsResponse> - getListContactsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListContacts", - requestType = com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, - responseType = com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.ListContactsRequest, - com.google.cloud.essentialcontacts.v1.ListContactsResponse> - getListContactsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.ListContactsRequest, - com.google.cloud.essentialcontacts.v1.ListContactsResponse> - getListContactsMethod; - if ((getListContactsMethod = EssentialContactsServiceGrpc.getListContactsMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getListContactsMethod = EssentialContactsServiceGrpc.getListContactsMethod) == null) { - EssentialContactsServiceGrpc.getListContactsMethod = - getListContactsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContacts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.ListContactsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.ListContactsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new EssentialContactsServiceMethodDescriptorSupplier("ListContacts")) - .build(); - } - } - } - return getListContactsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.GetContactRequest, - com.google.cloud.essentialcontacts.v1.Contact> - getGetContactMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetContact", - requestType = com.google.cloud.essentialcontacts.v1.GetContactRequest.class, - responseType = com.google.cloud.essentialcontacts.v1.Contact.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.GetContactRequest, - com.google.cloud.essentialcontacts.v1.Contact> - getGetContactMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.GetContactRequest, - com.google.cloud.essentialcontacts.v1.Contact> - getGetContactMethod; - if ((getGetContactMethod = EssentialContactsServiceGrpc.getGetContactMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getGetContactMethod = EssentialContactsServiceGrpc.getGetContactMethod) == null) { - EssentialContactsServiceGrpc.getGetContactMethod = - getGetContactMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContact")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.GetContactRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) - .setSchemaDescriptor( - new EssentialContactsServiceMethodDescriptorSupplier("GetContact")) - .build(); - } - } - } - return getGetContactMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.DeleteContactRequest, com.google.protobuf.Empty> - getDeleteContactMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteContact", - requestType = com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.DeleteContactRequest, com.google.protobuf.Empty> - getDeleteContactMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.DeleteContactRequest, com.google.protobuf.Empty> - getDeleteContactMethod; - if ((getDeleteContactMethod = EssentialContactsServiceGrpc.getDeleteContactMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getDeleteContactMethod = EssentialContactsServiceGrpc.getDeleteContactMethod) - == null) { - EssentialContactsServiceGrpc.getDeleteContactMethod = - getDeleteContactMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteContact")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new EssentialContactsServiceMethodDescriptorSupplier("DeleteContact")) - .build(); - } - } - } - return getDeleteContactMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest, - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse> - getComputeContactsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeContacts", - requestType = com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, - responseType = com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest, - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse> - getComputeContactsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest, - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse> - getComputeContactsMethod; - if ((getComputeContactsMethod = EssentialContactsServiceGrpc.getComputeContactsMethod) - == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getComputeContactsMethod = EssentialContactsServiceGrpc.getComputeContactsMethod) - == null) { - EssentialContactsServiceGrpc.getComputeContactsMethod = - getComputeContactsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeContacts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new EssentialContactsServiceMethodDescriptorSupplier("ComputeContacts")) - .build(); - } - } - } - return getComputeContactsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest, com.google.protobuf.Empty> - getSendTestMessageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendTestMessage", - requestType = com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest, com.google.protobuf.Empty> - getSendTestMessageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest, com.google.protobuf.Empty> - getSendTestMessageMethod; - if ((getSendTestMessageMethod = EssentialContactsServiceGrpc.getSendTestMessageMethod) - == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getSendTestMessageMethod = EssentialContactsServiceGrpc.getSendTestMessageMethod) - == null) { - EssentialContactsServiceGrpc.getSendTestMessageMethod = - getSendTestMessageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTestMessage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new EssentialContactsServiceMethodDescriptorSupplier("SendTestMessage")) - .build(); - } - } - } - return getSendTestMessageMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static EssentialContactsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EssentialContactsServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceStub(channel, callOptions); - } - }; - return EssentialContactsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static EssentialContactsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EssentialContactsServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceBlockingStub(channel, callOptions); - } - }; - return EssentialContactsServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static EssentialContactsServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EssentialContactsServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceFutureStub(channel, callOptions); - } - }; - return EssentialContactsServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Manages contacts for important Google Cloud notifications.
-   * 
- */ - public abstract static class EssentialContactsServiceImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Adds a new contact for a resource.
-     * 
- */ - public void createContact( - com.google.cloud.essentialcontacts.v1.CreateContactRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateContactMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a contact.
-     * Note: A contact's email address cannot be changed.
-     * 
- */ - public void updateContact( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateContactMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists the contacts that have been set on a resource.
-     * 
- */ - public void listContacts( - com.google.cloud.essentialcontacts.v1.ListContactsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListContactsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a single contact.
-     * 
- */ - public void getContact( - com.google.cloud.essentialcontacts.v1.GetContactRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContactMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a contact.
-     * 
- */ - public void deleteContact( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteContactMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all contacts for the resource that are subscribed to the
-     * specified notification categories, including contacts inherited from
-     * any parent resources.
-     * 
- */ - public void computeContacts( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getComputeContactsMethod(), responseObserver); - } - - /** - * - * - *
-     * Allows a contact admin to send a test message to contact to verify that it
-     * has been configured correctly.
-     * 
- */ - public void sendTestMessage( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSendTestMessageMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateContactMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.CreateContactRequest, - com.google.cloud.essentialcontacts.v1.Contact>( - this, METHODID_CREATE_CONTACT))) - .addMethod( - getUpdateContactMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.UpdateContactRequest, - com.google.cloud.essentialcontacts.v1.Contact>( - this, METHODID_UPDATE_CONTACT))) - .addMethod( - getListContactsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.ListContactsRequest, - com.google.cloud.essentialcontacts.v1.ListContactsResponse>( - this, METHODID_LIST_CONTACTS))) - .addMethod( - getGetContactMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.GetContactRequest, - com.google.cloud.essentialcontacts.v1.Contact>(this, METHODID_GET_CONTACT))) - .addMethod( - getDeleteContactMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.DeleteContactRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_CONTACT))) - .addMethod( - getComputeContactsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest, - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse>( - this, METHODID_COMPUTE_CONTACTS))) - .addMethod( - getSendTestMessageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest, - com.google.protobuf.Empty>(this, METHODID_SEND_TEST_MESSAGE))) - .build(); - } - } - - /** - * - * - *
-   * Manages contacts for important Google Cloud notifications.
-   * 
- */ - public static final class EssentialContactsServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private EssentialContactsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EssentialContactsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Adds a new contact for a resource.
-     * 
- */ - public void createContact( - com.google.cloud.essentialcontacts.v1.CreateContactRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateContactMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a contact.
-     * Note: A contact's email address cannot be changed.
-     * 
- */ - public void updateContact( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateContactMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists the contacts that have been set on a resource.
-     * 
- */ - public void listContacts( - com.google.cloud.essentialcontacts.v1.ListContactsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListContactsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a single contact.
-     * 
- */ - public void getContact( - com.google.cloud.essentialcontacts.v1.GetContactRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetContactMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a contact.
-     * 
- */ - public void deleteContact( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteContactMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all contacts for the resource that are subscribed to the
-     * specified notification categories, including contacts inherited from
-     * any parent resources.
-     * 
- */ - public void computeContacts( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeContactsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Allows a contact admin to send a test message to contact to verify that it
-     * has been configured correctly.
-     * 
- */ - public void sendTestMessage( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSendTestMessageMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Manages contacts for important Google Cloud notifications.
-   * 
- */ - public static final class EssentialContactsServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private EssentialContactsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EssentialContactsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Adds a new contact for a resource.
-     * 
- */ - public com.google.cloud.essentialcontacts.v1.Contact createContact( - com.google.cloud.essentialcontacts.v1.CreateContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateContactMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a contact.
-     * Note: A contact's email address cannot be changed.
-     * 
- */ - public com.google.cloud.essentialcontacts.v1.Contact updateContact( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateContactMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists the contacts that have been set on a resource.
-     * 
- */ - public com.google.cloud.essentialcontacts.v1.ListContactsResponse listContacts( - com.google.cloud.essentialcontacts.v1.ListContactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListContactsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a single contact.
-     * 
- */ - public com.google.cloud.essentialcontacts.v1.Contact getContact( - com.google.cloud.essentialcontacts.v1.GetContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetContactMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a contact.
-     * 
- */ - public com.google.protobuf.Empty deleteContact( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteContactMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all contacts for the resource that are subscribed to the
-     * specified notification categories, including contacts inherited from
-     * any parent resources.
-     * 
- */ - public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse computeContacts( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeContactsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Allows a contact admin to send a test message to contact to verify that it
-     * has been configured correctly.
-     * 
- */ - public com.google.protobuf.Empty sendTestMessage( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSendTestMessageMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Manages contacts for important Google Cloud notifications.
-   * 
- */ - public static final class EssentialContactsServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private EssentialContactsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EssentialContactsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Adds a new contact for a resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.essentialcontacts.v1.Contact> - createContact(com.google.cloud.essentialcontacts.v1.CreateContactRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateContactMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a contact.
-     * Note: A contact's email address cannot be changed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.essentialcontacts.v1.Contact> - updateContact(com.google.cloud.essentialcontacts.v1.UpdateContactRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateContactMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists the contacts that have been set on a resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.essentialcontacts.v1.ListContactsResponse> - listContacts(com.google.cloud.essentialcontacts.v1.ListContactsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListContactsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a single contact.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.essentialcontacts.v1.Contact> - getContact(com.google.cloud.essentialcontacts.v1.GetContactRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetContactMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a contact.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteContact(com.google.cloud.essentialcontacts.v1.DeleteContactRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteContactMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all contacts for the resource that are subscribed to the
-     * specified notification categories, including contacts inherited from
-     * any parent resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse> - computeContacts(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeContactsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Allows a contact admin to send a test message to contact to verify that it
-     * has been configured correctly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - sendTestMessage(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSendTestMessageMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONTACT = 0; - private static final int METHODID_UPDATE_CONTACT = 1; - private static final int METHODID_LIST_CONTACTS = 2; - private static final int METHODID_GET_CONTACT = 3; - private static final int METHODID_DELETE_CONTACT = 4; - private static final int METHODID_COMPUTE_CONTACTS = 5; - private static final int METHODID_SEND_TEST_MESSAGE = 6; - - private static final class MethodHandlers - implements io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final EssentialContactsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(EssentialContactsServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CONTACT: - serviceImpl.createContact( - (com.google.cloud.essentialcontacts.v1.CreateContactRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_CONTACT: - serviceImpl.updateContact( - (com.google.cloud.essentialcontacts.v1.UpdateContactRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_CONTACTS: - serviceImpl.listContacts( - (com.google.cloud.essentialcontacts.v1.ListContactsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.essentialcontacts.v1.ListContactsResponse>) - responseObserver); - break; - case METHODID_GET_CONTACT: - serviceImpl.getContact( - (com.google.cloud.essentialcontacts.v1.GetContactRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_CONTACT: - serviceImpl.deleteContact( - (com.google.cloud.essentialcontacts.v1.DeleteContactRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COMPUTE_CONTACTS: - serviceImpl.computeContacts( - (com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse>) - responseObserver); - break; - case METHODID_SEND_TEST_MESSAGE: - serviceImpl.sendTestMessage( - (com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private abstract static class EssentialContactsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - EssentialContactsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("EssentialContactsService"); - } - } - - private static final class EssentialContactsServiceFileDescriptorSupplier - extends EssentialContactsServiceBaseDescriptorSupplier { - EssentialContactsServiceFileDescriptorSupplier() {} - } - - private static final class EssentialContactsServiceMethodDescriptorSupplier - extends EssentialContactsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - EssentialContactsServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (EssentialContactsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new EssentialContactsServiceFileDescriptorSupplier()) - .addMethod(getCreateContactMethod()) - .addMethod(getUpdateContactMethod()) - .addMethod(getListContactsMethod()) - .addMethod(getGetContactMethod()) - .addMethod(getDeleteContactMethod()) - .addMethod(getComputeContactsMethod()) - .addMethod(getSendTestMessageMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java similarity index 97% rename from google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java index 91bb4529..2f887edf 100644 --- a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java @@ -60,13 +60,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -103,6 +103,21 @@ * EssentialContactsServiceClient.create(essentialContactsServiceSettings); * } * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * EssentialContactsServiceSettings essentialContactsServiceSettings =
+ *     EssentialContactsServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             EssentialContactsServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * EssentialContactsServiceClient essentialContactsServiceClient =
+ *     EssentialContactsServiceClient.create(essentialContactsServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -1036,10 +1051,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListContactsPagedResponse extends AbstractPagedListResponse< - ListContactsRequest, - ListContactsResponse, - Contact, - ListContactsPage, + ListContactsRequest, ListContactsResponse, Contact, ListContactsPage, ListContactsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1088,10 +1100,7 @@ public ApiFuture createPageAsync( public static class ListContactsFixedSizeCollection extends AbstractFixedSizeCollection< - ListContactsRequest, - ListContactsResponse, - Contact, - ListContactsPage, + ListContactsRequest, ListContactsResponse, Contact, ListContactsPage, ListContactsFixedSizeCollection> { private ListContactsFixedSizeCollection(List pages, int collectionSize) { @@ -1111,10 +1120,7 @@ protected ListContactsFixedSizeCollection createCollection( public static class ComputeContactsPagedResponse extends AbstractPagedListResponse< - ComputeContactsRequest, - ComputeContactsResponse, - Contact, - ComputeContactsPage, + ComputeContactsRequest, ComputeContactsResponse, Contact, ComputeContactsPage, ComputeContactsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1164,10 +1170,7 @@ public ApiFuture createPageAsync( public static class ComputeContactsFixedSizeCollection extends AbstractFixedSizeCollection< - ComputeContactsRequest, - ComputeContactsResponse, - Contact, - ComputeContactsPage, + ComputeContactsRequest, ComputeContactsResponse, Contact, ComputeContactsPage, ComputeContactsFixedSizeCollection> { private ComputeContactsFixedSizeCollection( diff --git a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java similarity index 90% rename from google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java index 3824718c..04d0f751 100644 --- a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java @@ -24,10 +24,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.essentialcontacts.v1.stub.EssentialContactsServiceStubSettings; @@ -43,10 +45,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (essentialcontacts.googleapis.com) and default port (443) are + *
  • The default service address (essentialcontacts.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -139,11 +141,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return EssentialContactsServiceStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return EssentialContactsServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return EssentialContactsServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return EssentialContactsServiceStubSettings.defaultTransportChannelProvider(); } @@ -153,11 +162,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return EssentialContactsServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -196,6 +211,11 @@ private static Builder createDefault() { return new Builder(EssentialContactsServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(EssentialContactsServiceStubSettings.newHttpJsonBuilder()); + } + public EssentialContactsServiceStubSettings.Builder getStubSettingsBuilder() { return ((EssentialContactsServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/gapic_metadata.json similarity index 100% rename from google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/gapic_metadata.json diff --git a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java similarity index 100% rename from google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java diff --git a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStub.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStub.java similarity index 100% rename from google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStub.java rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStub.java diff --git a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java similarity index 90% rename from google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java index bf319787..9b02da8b 100644 --- a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java @@ -28,6 +28,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -68,10 +71,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (essentialcontacts.googleapis.com) and default port (443) are + *
  • The default service address (essentialcontacts.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -268,6 +271,11 @@ public EssentialContactsServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcEssentialContactsServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonEssentialContactsServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -300,18 +308,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(EssentialContactsServiceStubSettings.class)) @@ -319,11 +334,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(EssentialContactsServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return EssentialContactsServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -464,6 +498,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .createContactSettings() diff --git a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceCallableFactory.java similarity index 100% rename from google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceCallableFactory.java diff --git a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java similarity index 99% rename from google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java index dfc416c5..78be5fdb 100644 --- a/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java @@ -41,6 +41,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceCallableFactory.java new file mode 100644 index 00000000..e839b388 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.essentialcontacts.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the EssentialContactsService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonEssentialContactsServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceStub.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceStub.java new file mode 100644 index 00000000..07f8f531 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceStub.java @@ -0,0 +1,560 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.essentialcontacts.v1.stub; + +import static com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient.ComputeContactsPagedResponse; +import static com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient.ListContactsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.essentialcontacts.v1.ComputeContactsRequest; +import com.google.cloud.essentialcontacts.v1.ComputeContactsResponse; +import com.google.cloud.essentialcontacts.v1.Contact; +import com.google.cloud.essentialcontacts.v1.CreateContactRequest; +import com.google.cloud.essentialcontacts.v1.DeleteContactRequest; +import com.google.cloud.essentialcontacts.v1.GetContactRequest; +import com.google.cloud.essentialcontacts.v1.ListContactsRequest; +import com.google.cloud.essentialcontacts.v1.ListContactsResponse; +import com.google.cloud.essentialcontacts.v1.SendTestMessageRequest; +import com.google.cloud.essentialcontacts.v1.UpdateContactRequest; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the EssentialContactsService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonEssentialContactsServiceStub extends EssentialContactsServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + createContactMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.essentialcontacts.v1.EssentialContactsService/CreateContact") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/contacts", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/contacts", + "/v1/{parent=organizations/*}/contacts") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("contact", request.getContact())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Contact.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateContactMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.essentialcontacts.v1.EssentialContactsService/UpdateContact") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{contact.name=projects/*/contacts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "contact.name", request.getContact().getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{contact.name=folders/*/contacts/*}", + "/v1/{contact.name=organizations/*/contacts/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create().toBody("contact", request.getContact())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Contact.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listContactsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.essentialcontacts.v1.EssentialContactsService/ListContacts") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/contacts", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/contacts", + "/v1/{parent=organizations/*}/contacts") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListContactsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor getContactMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.essentialcontacts.v1.EssentialContactsService/GetContact") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/contacts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/contacts/*}", "/v1/{name=organizations/*/contacts/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Contact.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteContactMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.essentialcontacts.v1.EssentialContactsService/DeleteContact") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/contacts/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v1/{name=folders/*/contacts/*}", + "/v1/{name=organizations/*/contacts/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + computeContactsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.essentialcontacts.v1.EssentialContactsService/ComputeContacts") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*}/contacts:compute", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v1/{parent=folders/*}/contacts:compute", + "/v1/{parent=organizations/*}/contacts:compute") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, + "notificationCategories", + request.getNotificationCategoriesList()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ComputeContactsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + sendTestMessageMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.essentialcontacts.v1.EssentialContactsService/SendTestMessage") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*}/contacts:sendTestMessage", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setAdditionalPaths( + "/v1/{resource=folders/*}/contacts:sendTestMessage", + "/v1/{resource=organizations/*}/contacts:sendTestMessage") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createContactCallable; + private final UnaryCallable updateContactCallable; + private final UnaryCallable listContactsCallable; + private final UnaryCallable + listContactsPagedCallable; + private final UnaryCallable getContactCallable; + private final UnaryCallable deleteContactCallable; + private final UnaryCallable + computeContactsCallable; + private final UnaryCallable + computeContactsPagedCallable; + private final UnaryCallable sendTestMessageCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonEssentialContactsServiceStub create( + EssentialContactsServiceStubSettings settings) throws IOException { + return new HttpJsonEssentialContactsServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonEssentialContactsServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonEssentialContactsServiceStub( + EssentialContactsServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonEssentialContactsServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonEssentialContactsServiceStub( + EssentialContactsServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonEssentialContactsServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonEssentialContactsServiceStub( + EssentialContactsServiceStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonEssentialContactsServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonEssentialContactsServiceStub, using the given settings. This + * is protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonEssentialContactsServiceStub( + EssentialContactsServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings createContactTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createContactMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings updateContactTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateContactMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings listContactsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listContactsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getContactTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getContactMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings deleteContactTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteContactMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + computeContactsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(computeContactsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings sendTestMessageTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(sendTestMessageMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.createContactCallable = + callableFactory.createUnaryCallable( + createContactTransportSettings, settings.createContactSettings(), clientContext); + this.updateContactCallable = + callableFactory.createUnaryCallable( + updateContactTransportSettings, settings.updateContactSettings(), clientContext); + this.listContactsCallable = + callableFactory.createUnaryCallable( + listContactsTransportSettings, settings.listContactsSettings(), clientContext); + this.listContactsPagedCallable = + callableFactory.createPagedCallable( + listContactsTransportSettings, settings.listContactsSettings(), clientContext); + this.getContactCallable = + callableFactory.createUnaryCallable( + getContactTransportSettings, settings.getContactSettings(), clientContext); + this.deleteContactCallable = + callableFactory.createUnaryCallable( + deleteContactTransportSettings, settings.deleteContactSettings(), clientContext); + this.computeContactsCallable = + callableFactory.createUnaryCallable( + computeContactsTransportSettings, settings.computeContactsSettings(), clientContext); + this.computeContactsPagedCallable = + callableFactory.createPagedCallable( + computeContactsTransportSettings, settings.computeContactsSettings(), clientContext); + this.sendTestMessageCallable = + callableFactory.createUnaryCallable( + sendTestMessageTransportSettings, settings.sendTestMessageSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createContactMethodDescriptor); + methodDescriptors.add(updateContactMethodDescriptor); + methodDescriptors.add(listContactsMethodDescriptor); + methodDescriptors.add(getContactMethodDescriptor); + methodDescriptors.add(deleteContactMethodDescriptor); + methodDescriptors.add(computeContactsMethodDescriptor); + methodDescriptors.add(sendTestMessageMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable createContactCallable() { + return createContactCallable; + } + + @Override + public UnaryCallable updateContactCallable() { + return updateContactCallable; + } + + @Override + public UnaryCallable listContactsCallable() { + return listContactsCallable; + } + + @Override + public UnaryCallable listContactsPagedCallable() { + return listContactsPagedCallable; + } + + @Override + public UnaryCallable getContactCallable() { + return getContactCallable; + } + + @Override + public UnaryCallable deleteContactCallable() { + return deleteContactCallable; + } + + @Override + public UnaryCallable computeContactsCallable() { + return computeContactsCallable; + } + + @Override + public UnaryCallable + computeContactsPagedCallable() { + return computeContactsPagedCallable; + } + + @Override + public UnaryCallable sendTestMessageCallable() { + return sendTestMessageCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientHttpJsonTest.java new file mode 100644 index 00000000..5bafc8e6 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientHttpJsonTest.java @@ -0,0 +1,843 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.essentialcontacts.v1; + +import static com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient.ComputeContactsPagedResponse; +import static com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient.ListContactsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.essentialcontacts.v1.stub.HttpJsonEssentialContactsServiceStub; +import com.google.common.collect.Lists; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class EssentialContactsServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static EssentialContactsServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonEssentialContactsServiceStub.getMethodDescriptors(), + EssentialContactsServiceSettings.getDefaultEndpoint()); + EssentialContactsServiceSettings settings = + EssentialContactsServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + EssentialContactsServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = EssentialContactsServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createContactTest() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString()) + .setEmail("email96619420") + .addAllNotificationCategorySubscriptions(new ArrayList()) + .setLanguageTag("languageTag-1175857886") + .setValidationState(ValidationState.forNumber(0)) + .setValidateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + Contact contact = Contact.newBuilder().build(); + + Contact actualResponse = client.createContact(parent, contact); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createContactExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + Contact contact = Contact.newBuilder().build(); + client.createContact(parent, contact); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createContactTest2() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString()) + .setEmail("email96619420") + .addAllNotificationCategorySubscriptions(new ArrayList()) + .setLanguageTag("languageTag-1175857886") + .setValidationState(ValidationState.forNumber(0)) + .setValidateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Contact contact = Contact.newBuilder().build(); + + Contact actualResponse = client.createContact(parent, contact); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createContactExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + Contact contact = Contact.newBuilder().build(); + client.createContact(parent, contact); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createContactTest3() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString()) + .setEmail("email96619420") + .addAllNotificationCategorySubscriptions(new ArrayList()) + .setLanguageTag("languageTag-1175857886") + .setValidationState(ValidationState.forNumber(0)) + .setValidateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + Contact contact = Contact.newBuilder().build(); + + Contact actualResponse = client.createContact(parent, contact); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createContactExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + Contact contact = Contact.newBuilder().build(); + client.createContact(parent, contact); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createContactTest4() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString()) + .setEmail("email96619420") + .addAllNotificationCategorySubscriptions(new ArrayList()) + .setLanguageTag("languageTag-1175857886") + .setValidationState(ValidationState.forNumber(0)) + .setValidateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + Contact contact = Contact.newBuilder().build(); + + Contact actualResponse = client.createContact(parent, contact); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createContactExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + Contact contact = Contact.newBuilder().build(); + client.createContact(parent, contact); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateContactTest() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString()) + .setEmail("email96619420") + .addAllNotificationCategorySubscriptions(new ArrayList()) + .setLanguageTag("languageTag-1175857886") + .setValidationState(ValidationState.forNumber(0)) + .setValidateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + Contact contact = + Contact.newBuilder() + .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString()) + .setEmail("email96619420") + .addAllNotificationCategorySubscriptions(new ArrayList()) + .setLanguageTag("languageTag-1175857886") + .setValidationState(ValidationState.forNumber(0)) + .setValidateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + Contact actualResponse = client.updateContact(contact, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateContactExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + Contact contact = + Contact.newBuilder() + .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString()) + .setEmail("email96619420") + .addAllNotificationCategorySubscriptions(new ArrayList()) + .setLanguageTag("languageTag-1175857886") + .setValidationState(ValidationState.forNumber(0)) + .setValidateTime(Timestamp.newBuilder().build()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateContact(contact, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContactsTest() throws Exception { + Contact responsesElement = Contact.newBuilder().build(); + ListContactsResponse expectedResponse = + ListContactsResponse.newBuilder() + .setNextPageToken("") + .addAllContacts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderName parent = FolderName.of("[FOLDER]"); + + ListContactsPagedResponse pagedListResponse = client.listContacts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContactsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listContactsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderName parent = FolderName.of("[FOLDER]"); + client.listContacts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContactsTest2() throws Exception { + Contact responsesElement = Contact.newBuilder().build(); + ListContactsResponse expectedResponse = + ListContactsResponse.newBuilder() + .setNextPageToken("") + .addAllContacts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + + ListContactsPagedResponse pagedListResponse = client.listContacts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContactsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listContactsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationName parent = OrganizationName.of("[ORGANIZATION]"); + client.listContacts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContactsTest3() throws Exception { + Contact responsesElement = Contact.newBuilder().build(); + ListContactsResponse expectedResponse = + ListContactsResponse.newBuilder() + .setNextPageToken("") + .addAllContacts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ProjectName parent = ProjectName.of("[PROJECT]"); + + ListContactsPagedResponse pagedListResponse = client.listContacts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContactsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listContactsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ProjectName parent = ProjectName.of("[PROJECT]"); + client.listContacts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listContactsTest4() throws Exception { + Contact responsesElement = Contact.newBuilder().build(); + ListContactsResponse expectedResponse = + ListContactsResponse.newBuilder() + .setNextPageToken("") + .addAllContacts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-2353"; + + ListContactsPagedResponse pagedListResponse = client.listContacts(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContactsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listContactsExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-2353"; + client.listContacts(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getContactTest() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString()) + .setEmail("email96619420") + .addAllNotificationCategorySubscriptions(new ArrayList()) + .setLanguageTag("languageTag-1175857886") + .setValidationState(ValidationState.forNumber(0)) + .setValidateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ContactName name = ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]"); + + Contact actualResponse = client.getContact(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getContactExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ContactName name = ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]"); + client.getContact(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getContactTest2() throws Exception { + Contact expectedResponse = + Contact.newBuilder() + .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString()) + .setEmail("email96619420") + .addAllNotificationCategorySubscriptions(new ArrayList()) + .setLanguageTag("languageTag-1175857886") + .setValidationState(ValidationState.forNumber(0)) + .setValidateTime(Timestamp.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1347/contacts/contact-1347"; + + Contact actualResponse = client.getContact(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getContactExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1347/contacts/contact-1347"; + client.getContact(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteContactTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + ContactName name = ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]"); + + client.deleteContact(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteContactExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ContactName name = ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]"); + client.deleteContact(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteContactTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-1347/contacts/contact-1347"; + + client.deleteContact(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteContactExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-1347/contacts/contact-1347"; + client.deleteContact(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void computeContactsTest() throws Exception { + Contact responsesElement = Contact.newBuilder().build(); + ComputeContactsResponse expectedResponse = + ComputeContactsResponse.newBuilder() + .setNextPageToken("") + .addAllContacts(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ComputeContactsRequest request = + ComputeContactsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .addAllNotificationCategories(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ComputeContactsPagedResponse pagedListResponse = client.computeContacts(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getContactsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void computeContactsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ComputeContactsRequest request = + ComputeContactsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .addAllNotificationCategories(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.computeContacts(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void sendTestMessageTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + SendTestMessageRequest request = + SendTestMessageRequest.newBuilder() + .addAllContacts(new ArrayList()) + .setResource(ProjectName.of("[PROJECT]").toString()) + .setNotificationCategory(NotificationCategory.forNumber(0)) + .build(); + + client.sendTestMessage(request); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void sendTestMessageExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SendTestMessageRequest request = + SendTestMessageRequest.newBuilder() + .addAllContacts(new ArrayList()) + .setResource(ProjectName.of("[PROJECT]").toString()) + .setNotificationCategory(NotificationCategory.forNumber(0)) + .build(); + client.sendTestMessage(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientTest.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientTest.java similarity index 100% rename from google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientTest.java diff --git a/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsService.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsService.java similarity index 100% rename from google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsService.java rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsService.java diff --git a/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsServiceImpl.java b/owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsServiceImpl.java similarity index 100% rename from google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsServiceImpl.java rename to owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsServiceImpl.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java new file mode 100644 index 00000000..8ac23c7f --- /dev/null +++ b/owl-bot-staging/v1/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java @@ -0,0 +1,835 @@ +package com.google.cloud.essentialcontacts.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *

+ * Manages contacts for important Google Cloud notifications.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/essentialcontacts/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class EssentialContactsServiceGrpc { + + private EssentialContactsServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.essentialcontacts.v1.EssentialContactsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateContactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateContact", + requestType = com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, + responseType = com.google.cloud.essentialcontacts.v1.Contact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateContactMethod() { + io.grpc.MethodDescriptor getCreateContactMethod; + if ((getCreateContactMethod = EssentialContactsServiceGrpc.getCreateContactMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getCreateContactMethod = EssentialContactsServiceGrpc.getCreateContactMethod) == null) { + EssentialContactsServiceGrpc.getCreateContactMethod = getCreateContactMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateContact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.CreateContactRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) + .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("CreateContact")) + .build(); + } + } + } + return getCreateContactMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateContactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateContact", + requestType = com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, + responseType = com.google.cloud.essentialcontacts.v1.Contact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateContactMethod() { + io.grpc.MethodDescriptor getUpdateContactMethod; + if ((getUpdateContactMethod = EssentialContactsServiceGrpc.getUpdateContactMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getUpdateContactMethod = EssentialContactsServiceGrpc.getUpdateContactMethod) == null) { + EssentialContactsServiceGrpc.getUpdateContactMethod = getUpdateContactMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateContact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.UpdateContactRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) + .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("UpdateContact")) + .build(); + } + } + } + return getUpdateContactMethod; + } + + private static volatile io.grpc.MethodDescriptor getListContactsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListContacts", + requestType = com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, + responseType = com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListContactsMethod() { + io.grpc.MethodDescriptor getListContactsMethod; + if ((getListContactsMethod = EssentialContactsServiceGrpc.getListContactsMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getListContactsMethod = EssentialContactsServiceGrpc.getListContactsMethod) == null) { + EssentialContactsServiceGrpc.getListContactsMethod = getListContactsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContacts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.ListContactsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.ListContactsResponse.getDefaultInstance())) + .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("ListContacts")) + .build(); + } + } + } + return getListContactsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetContactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetContact", + requestType = com.google.cloud.essentialcontacts.v1.GetContactRequest.class, + responseType = com.google.cloud.essentialcontacts.v1.Contact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetContactMethod() { + io.grpc.MethodDescriptor getGetContactMethod; + if ((getGetContactMethod = EssentialContactsServiceGrpc.getGetContactMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getGetContactMethod = EssentialContactsServiceGrpc.getGetContactMethod) == null) { + EssentialContactsServiceGrpc.getGetContactMethod = getGetContactMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.GetContactRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) + .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("GetContact")) + .build(); + } + } + } + return getGetContactMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteContactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteContact", + requestType = com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteContactMethod() { + io.grpc.MethodDescriptor getDeleteContactMethod; + if ((getDeleteContactMethod = EssentialContactsServiceGrpc.getDeleteContactMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getDeleteContactMethod = EssentialContactsServiceGrpc.getDeleteContactMethod) == null) { + EssentialContactsServiceGrpc.getDeleteContactMethod = getDeleteContactMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteContact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.DeleteContactRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("DeleteContact")) + .build(); + } + } + } + return getDeleteContactMethod; + } + + private static volatile io.grpc.MethodDescriptor getComputeContactsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeContacts", + requestType = com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, + responseType = com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getComputeContactsMethod() { + io.grpc.MethodDescriptor getComputeContactsMethod; + if ((getComputeContactsMethod = EssentialContactsServiceGrpc.getComputeContactsMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getComputeContactsMethod = EssentialContactsServiceGrpc.getComputeContactsMethod) == null) { + EssentialContactsServiceGrpc.getComputeContactsMethod = getComputeContactsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeContacts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.getDefaultInstance())) + .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("ComputeContacts")) + .build(); + } + } + } + return getComputeContactsMethod; + } + + private static volatile io.grpc.MethodDescriptor getSendTestMessageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SendTestMessage", + requestType = com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSendTestMessageMethod() { + io.grpc.MethodDescriptor getSendTestMessageMethod; + if ((getSendTestMessageMethod = EssentialContactsServiceGrpc.getSendTestMessageMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getSendTestMessageMethod = EssentialContactsServiceGrpc.getSendTestMessageMethod) == null) { + EssentialContactsServiceGrpc.getSendTestMessageMethod = getSendTestMessageMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTestMessage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("SendTestMessage")) + .build(); + } + } + } + return getSendTestMessageMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static EssentialContactsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EssentialContactsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceStub(channel, callOptions); + } + }; + return EssentialContactsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EssentialContactsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EssentialContactsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceBlockingStub(channel, callOptions); + } + }; + return EssentialContactsServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static EssentialContactsServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EssentialContactsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceFutureStub(channel, callOptions); + } + }; + return EssentialContactsServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Manages contacts for important Google Cloud notifications.
+   * 
+ */ + public static abstract class EssentialContactsServiceImplBase implements io.grpc.BindableService { + + /** + *
+     * Adds a new contact for a resource.
+     * 
+ */ + public void createContact(com.google.cloud.essentialcontacts.v1.CreateContactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateContactMethod(), responseObserver); + } + + /** + *
+     * Updates a contact.
+     * Note: A contact's email address cannot be changed.
+     * 
+ */ + public void updateContact(com.google.cloud.essentialcontacts.v1.UpdateContactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateContactMethod(), responseObserver); + } + + /** + *
+     * Lists the contacts that have been set on a resource.
+     * 
+ */ + public void listContacts(com.google.cloud.essentialcontacts.v1.ListContactsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListContactsMethod(), responseObserver); + } + + /** + *
+     * Gets a single contact.
+     * 
+ */ + public void getContact(com.google.cloud.essentialcontacts.v1.GetContactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContactMethod(), responseObserver); + } + + /** + *
+     * Deletes a contact.
+     * 
+ */ + public void deleteContact(com.google.cloud.essentialcontacts.v1.DeleteContactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteContactMethod(), responseObserver); + } + + /** + *
+     * Lists all contacts for the resource that are subscribed to the
+     * specified notification categories, including contacts inherited from
+     * any parent resources.
+     * 
+ */ + public void computeContacts(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeContactsMethod(), responseObserver); + } + + /** + *
+     * Allows a contact admin to send a test message to contact to verify that it
+     * has been configured correctly.
+     * 
+ */ + public void sendTestMessage(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendTestMessageMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateContactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.CreateContactRequest, + com.google.cloud.essentialcontacts.v1.Contact>( + this, METHODID_CREATE_CONTACT))) + .addMethod( + getUpdateContactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.UpdateContactRequest, + com.google.cloud.essentialcontacts.v1.Contact>( + this, METHODID_UPDATE_CONTACT))) + .addMethod( + getListContactsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.ListContactsRequest, + com.google.cloud.essentialcontacts.v1.ListContactsResponse>( + this, METHODID_LIST_CONTACTS))) + .addMethod( + getGetContactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.GetContactRequest, + com.google.cloud.essentialcontacts.v1.Contact>( + this, METHODID_GET_CONTACT))) + .addMethod( + getDeleteContactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.DeleteContactRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_CONTACT))) + .addMethod( + getComputeContactsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest, + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse>( + this, METHODID_COMPUTE_CONTACTS))) + .addMethod( + getSendTestMessageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest, + com.google.protobuf.Empty>( + this, METHODID_SEND_TEST_MESSAGE))) + .build(); + } + } + + /** + *
+   * Manages contacts for important Google Cloud notifications.
+   * 
+ */ + public static final class EssentialContactsServiceStub extends io.grpc.stub.AbstractAsyncStub { + private EssentialContactsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EssentialContactsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceStub(channel, callOptions); + } + + /** + *
+     * Adds a new contact for a resource.
+     * 
+ */ + public void createContact(com.google.cloud.essentialcontacts.v1.CreateContactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateContactMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Updates a contact.
+     * Note: A contact's email address cannot be changed.
+     * 
+ */ + public void updateContact(com.google.cloud.essentialcontacts.v1.UpdateContactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateContactMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists the contacts that have been set on a resource.
+     * 
+ */ + public void listContacts(com.google.cloud.essentialcontacts.v1.ListContactsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListContactsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a single contact.
+     * 
+ */ + public void getContact(com.google.cloud.essentialcontacts.v1.GetContactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetContactMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Deletes a contact.
+     * 
+ */ + public void deleteContact(com.google.cloud.essentialcontacts.v1.DeleteContactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteContactMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Lists all contacts for the resource that are subscribed to the
+     * specified notification categories, including contacts inherited from
+     * any parent resources.
+     * 
+ */ + public void computeContacts(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeContactsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Allows a contact admin to send a test message to contact to verify that it
+     * has been configured correctly.
+     * 
+ */ + public void sendTestMessage(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSendTestMessageMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Manages contacts for important Google Cloud notifications.
+   * 
+ */ + public static final class EssentialContactsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private EssentialContactsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EssentialContactsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Adds a new contact for a resource.
+     * 
+ */ + public com.google.cloud.essentialcontacts.v1.Contact createContact(com.google.cloud.essentialcontacts.v1.CreateContactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateContactMethod(), getCallOptions(), request); + } + + /** + *
+     * Updates a contact.
+     * Note: A contact's email address cannot be changed.
+     * 
+ */ + public com.google.cloud.essentialcontacts.v1.Contact updateContact(com.google.cloud.essentialcontacts.v1.UpdateContactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateContactMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists the contacts that have been set on a resource.
+     * 
+ */ + public com.google.cloud.essentialcontacts.v1.ListContactsResponse listContacts(com.google.cloud.essentialcontacts.v1.ListContactsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListContactsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a single contact.
+     * 
+ */ + public com.google.cloud.essentialcontacts.v1.Contact getContact(com.google.cloud.essentialcontacts.v1.GetContactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetContactMethod(), getCallOptions(), request); + } + + /** + *
+     * Deletes a contact.
+     * 
+ */ + public com.google.protobuf.Empty deleteContact(com.google.cloud.essentialcontacts.v1.DeleteContactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteContactMethod(), getCallOptions(), request); + } + + /** + *
+     * Lists all contacts for the resource that are subscribed to the
+     * specified notification categories, including contacts inherited from
+     * any parent resources.
+     * 
+ */ + public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse computeContacts(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeContactsMethod(), getCallOptions(), request); + } + + /** + *
+     * Allows a contact admin to send a test message to contact to verify that it
+     * has been configured correctly.
+     * 
+ */ + public com.google.protobuf.Empty sendTestMessage(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSendTestMessageMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Manages contacts for important Google Cloud notifications.
+   * 
+ */ + public static final class EssentialContactsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private EssentialContactsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EssentialContactsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Adds a new contact for a resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createContact( + com.google.cloud.essentialcontacts.v1.CreateContactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateContactMethod(), getCallOptions()), request); + } + + /** + *
+     * Updates a contact.
+     * Note: A contact's email address cannot be changed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture updateContact( + com.google.cloud.essentialcontacts.v1.UpdateContactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateContactMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists the contacts that have been set on a resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listContacts( + com.google.cloud.essentialcontacts.v1.ListContactsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListContactsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a single contact.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getContact( + com.google.cloud.essentialcontacts.v1.GetContactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetContactMethod(), getCallOptions()), request); + } + + /** + *
+     * Deletes a contact.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteContact( + com.google.cloud.essentialcontacts.v1.DeleteContactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteContactMethod(), getCallOptions()), request); + } + + /** + *
+     * Lists all contacts for the resource that are subscribed to the
+     * specified notification categories, including contacts inherited from
+     * any parent resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture computeContacts( + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeContactsMethod(), getCallOptions()), request); + } + + /** + *
+     * Allows a contact admin to send a test message to contact to verify that it
+     * has been configured correctly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture sendTestMessage( + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSendTestMessageMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CONTACT = 0; + private static final int METHODID_UPDATE_CONTACT = 1; + private static final int METHODID_LIST_CONTACTS = 2; + private static final int METHODID_GET_CONTACT = 3; + private static final int METHODID_DELETE_CONTACT = 4; + private static final int METHODID_COMPUTE_CONTACTS = 5; + private static final int METHODID_SEND_TEST_MESSAGE = 6; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final EssentialContactsServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(EssentialContactsServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CONTACT: + serviceImpl.createContact((com.google.cloud.essentialcontacts.v1.CreateContactRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONTACT: + serviceImpl.updateContact((com.google.cloud.essentialcontacts.v1.UpdateContactRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONTACTS: + serviceImpl.listContacts((com.google.cloud.essentialcontacts.v1.ListContactsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CONTACT: + serviceImpl.getContact((com.google.cloud.essentialcontacts.v1.GetContactRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_CONTACT: + serviceImpl.deleteContact((com.google.cloud.essentialcontacts.v1.DeleteContactRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPUTE_CONTACTS: + serviceImpl.computeContacts((com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SEND_TEST_MESSAGE: + serviceImpl.sendTestMessage((com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class EssentialContactsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EssentialContactsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("EssentialContactsService"); + } + } + + private static final class EssentialContactsServiceFileDescriptorSupplier + extends EssentialContactsServiceBaseDescriptorSupplier { + EssentialContactsServiceFileDescriptorSupplier() {} + } + + private static final class EssentialContactsServiceMethodDescriptorSupplier + extends EssentialContactsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + EssentialContactsServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (EssentialContactsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EssentialContactsServiceFileDescriptorSupplier()) + .addMethod(getCreateContactMethod()) + .addMethod(getUpdateContactMethod()) + .addMethod(getListContactsMethod()) + .addMethod(getGetContactMethod()) + .addMethod(getDeleteContactMethod()) + .addMethod(getComputeContactsMethod()) + .addMethod(getSendTestMessageMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java similarity index 70% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java index 2598a422..0190bbb3 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** - * - * *
  * Request message for the ComputeContacts method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ComputeContactsRequest} */ -public final class ComputeContactsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeContactsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.ComputeContactsRequest) ComputeContactsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeContactsRequest.newBuilder() to construct. private ComputeContactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeContactsRequest() { parent_ = ""; notificationCategories_ = java.util.Collections.emptyList(); @@ -45,15 +27,16 @@ private ComputeContactsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeContactsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ComputeContactsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,57 +56,53 @@ private ComputeContactsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 24: - { - pageSize_ = input.readInt32(); - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 24: { + + pageSize_ = input.readInt32(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; + pageToken_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notificationCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 48: - { + notificationCategories_.add(rawValue); + break; + } + case 50: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { notificationCategories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } notificationCategories_.add(rawValue); - break; - } - case 50: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notificationCategories_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - notificationCategories_.add(rawValue); - } - input.popLimit(oldLimit); - break; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + input.popLimit(oldLimit); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -131,7 +110,8 @@ private ComputeContactsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { notificationCategories_ = java.util.Collections.unmodifiableList(notificationCategories_); @@ -140,37 +120,29 @@ private ComputeContactsRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The name of the resource to compute contacts for.
    * Format: organizations/{organization_id},
    * folders/{folder_id} or projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -179,33 +151,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The name of the resource to compute contacts for.
    * Format: organizations/{organization_id},
    * folders/{folder_id} or projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -216,55 +186,38 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int NOTIFICATION_CATEGORIES_FIELD_NUMBER = 6; private java.util.List notificationCategories_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory> - notificationCategories_converter_ = + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory> notificationCategories_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>() { - public com.google.cloud.essentialcontacts.v1.NotificationCategory convert( - java.lang.Integer from) { + public com.google.cloud.essentialcontacts.v1.NotificationCategory convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.NotificationCategory result = - com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(from); - return result == null - ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED - : result; + com.google.cloud.essentialcontacts.v1.NotificationCategory result = com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(from); + return result == null ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED : result; } }; /** - * - * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @return A list containing the notificationCategories. */ @java.lang.Override - public java.util.List - getNotificationCategoriesList() { + public java.util.List getNotificationCategoriesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>( - notificationCategories_, notificationCategories_converter_); + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>(notificationCategories_, notificationCategories_converter_); } /** - * - * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @return The count of notificationCategories. */ @java.lang.Override @@ -272,58 +225,43 @@ public int getNotificationCategoriesCount() { return notificationCategories_.size(); } /** - * - * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param index The index of the element to return. * @return The notificationCategories at the given index. */ @java.lang.Override - public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategories( - int index) { + public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategories(int index) { return notificationCategories_converter_.convert(notificationCategories_.get(index)); } /** - * - * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @return A list containing the enum numeric values on the wire for notificationCategories. */ @java.lang.Override - public java.util.List getNotificationCategoriesValueList() { + public java.util.List + getNotificationCategoriesValueList() { return notificationCategories_; } /** - * - * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of notificationCategories at the given index. */ @@ -331,14 +269,11 @@ public java.util.List getNotificationCategoriesValueList() { public int getNotificationCategoriesValue(int index) { return notificationCategories_.get(index); } - private int notificationCategoriesMemoizedSerializedSize; public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -347,7 +282,6 @@ public int getNotificationCategoriesValue(int index) {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -358,8 +292,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -368,7 +300,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -377,15 +308,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -394,15 +324,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -411,7 +342,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -423,7 +353,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); @@ -454,7 +385,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -462,16 +394,14 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < notificationCategories_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - notificationCategories_.get(i)); + dataSize += com.google.protobuf.CodedOutputStream + .computeEnumSizeNoTag(notificationCategories_.get(i)); } size += dataSize; - if (!getNotificationCategoriesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - notificationCategoriesMemoizedSerializedSize = dataSize; + if (!getNotificationCategoriesList().isEmpty()) { size += 1; + size += com.google.protobuf.CodedOutputStream + .computeUInt32SizeNoTag(dataSize); + }notificationCategoriesMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -481,18 +411,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.ComputeContactsRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest other = - (com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) obj; + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest other = (com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (!notificationCategories_.equals(other.notificationCategories_)) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -520,127 +452,117 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest prototype) { + public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the ComputeContacts method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ComputeContactsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.ComputeContactsRequest) com.google.cloud.essentialcontacts.v1.ComputeContactsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.newBuilder() @@ -648,15 +570,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -672,14 +595,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; } @java.lang.Override - public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest - getDefaultInstanceForType() { + public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest getDefaultInstanceForType() { return com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.getDefaultInstance(); } @@ -694,8 +616,7 @@ public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest result = - new com.google.cloud.essentialcontacts.v1.ComputeContactsRequest(this); + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest result = new com.google.cloud.essentialcontacts.v1.ComputeContactsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -713,39 +634,38 @@ public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.ComputeContactsRequest)other); } else { super.mergeFrom(other); return this; @@ -753,9 +673,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest other) { - if (other - == com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -796,8 +714,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -806,29 +723,24 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The name of the resource to compute contacts for.
      * Format: organizations/{organization_id},
      * folders/{folder_id} or projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -837,25 +749,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The name of the resource to compute contacts for.
      * Format: organizations/{organization_id},
      * folders/{folder_id} or projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -863,160 +772,122 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The name of the resource to compute contacts for.
      * Format: organizations/{organization_id},
      * folders/{folder_id} or projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the resource to compute contacts for.
      * Format: organizations/{organization_id},
      * folders/{folder_id} or projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The name of the resource to compute contacts for.
      * Format: organizations/{organization_id},
      * folders/{folder_id} or projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } private java.util.List notificationCategories_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNotificationCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationCategories_ = - new java.util.ArrayList(notificationCategories_); + notificationCategories_ = new java.util.ArrayList(notificationCategories_); bitField0_ |= 0x00000001; } } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @return A list containing the notificationCategories. */ - public java.util.List - getNotificationCategoriesList() { + public java.util.List getNotificationCategoriesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>( - notificationCategories_, notificationCategories_converter_); + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>(notificationCategories_, notificationCategories_converter_); } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @return The count of notificationCategories. */ public int getNotificationCategoriesCount() { return notificationCategories_.size(); } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param index The index of the element to return. * @return The notificationCategories at the given index. */ - public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategories( - int index) { + public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategories(int index) { return notificationCategories_converter_.convert(notificationCategories_.get(index)); } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param index The index to set the value at. * @param value The notificationCategories to set. * @return This builder for chaining. @@ -1032,23 +903,17 @@ public Builder setNotificationCategories( return this; } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param value The notificationCategories to add. * @return This builder for chaining. */ - public Builder addNotificationCategories( - com.google.cloud.essentialcontacts.v1.NotificationCategory value) { + public Builder addNotificationCategories(com.google.cloud.essentialcontacts.v1.NotificationCategory value) { if (value == null) { throw new NullPointerException(); } @@ -1058,24 +923,18 @@ public Builder addNotificationCategories( return this; } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param values The notificationCategories to add. * @return This builder for chaining. */ public Builder addAllNotificationCategories( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureNotificationCategoriesIsMutable(); for (com.google.cloud.essentialcontacts.v1.NotificationCategory value : values) { notificationCategories_.add(value.getNumber()); @@ -1084,18 +943,13 @@ public Builder addAllNotificationCategories( return this; } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @return This builder for chaining. */ public Builder clearNotificationCategories() { @@ -1105,36 +959,27 @@ public Builder clearNotificationCategories() { return this; } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @return A list containing the enum numeric values on the wire for notificationCategories. */ - public java.util.List getNotificationCategoriesValueList() { + public java.util.List + getNotificationCategoriesValueList() { return java.util.Collections.unmodifiableList(notificationCategories_); } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of notificationCategories at the given index. */ @@ -1142,41 +987,32 @@ public int getNotificationCategoriesValue(int index) { return notificationCategories_.get(index); } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of notificationCategories at the given index. * @return This builder for chaining. */ - public Builder setNotificationCategoriesValue(int index, int value) { + public Builder setNotificationCategoriesValue( + int index, int value) { ensureNotificationCategoriesIsMutable(); notificationCategories_.set(index, value); onChanged(); return this; } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param value The enum numeric value on the wire for notificationCategories to add. * @return This builder for chaining. */ @@ -1187,22 +1023,18 @@ public Builder addNotificationCategoriesValue(int value) { return this; } /** - * - * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param values The enum numeric values on the wire for notificationCategories to add. * @return This builder for chaining. */ - public Builder addAllNotificationCategoriesValue(java.lang.Iterable values) { + public Builder addAllNotificationCategoriesValue( + java.lang.Iterable values) { ensureNotificationCategoriesIsMutable(); for (int value : values) { notificationCategories_.add(value); @@ -1211,10 +1043,8 @@ public Builder addAllNotificationCategoriesValue(java.lang.Iterable * Optional. The maximum number of results to return from this request. * Non-positive values are ignored. The presence of `next_page_token` in the @@ -1223,7 +1053,6 @@ public Builder addAllNotificationCategoriesValue(java.lang.Iterable * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1231,8 +1060,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -1241,19 +1068,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -1262,11 +1086,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1274,8 +1097,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -1284,13 +1105,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1299,8 +1120,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -1309,14 +1128,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1324,8 +1144,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -1334,22 +1152,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -1358,18 +1174,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -1378,23 +1191,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1404,13 +1217,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.ComputeContactsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.ComputeContactsRequest) - private static final com.google.cloud.essentialcontacts.v1.ComputeContactsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.essentialcontacts.v1.ComputeContactsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.ComputeContactsRequest(); } @@ -1419,16 +1231,16 @@ public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeContactsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ComputeContactsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeContactsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComputeContactsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1443,4 +1255,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java similarity index 67% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java index 066f77b9..ce3b0d6a 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java @@ -1,148 +1,96 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface ComputeContactsRequestOrBuilder - extends +public interface ComputeContactsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.ComputeContactsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The name of the resource to compute contacts for.
    * Format: organizations/{organization_id},
    * folders/{folder_id} or projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The name of the resource to compute contacts for.
    * Format: organizations/{organization_id},
    * folders/{folder_id} or projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @return A list containing the notificationCategories. */ - java.util.List - getNotificationCategoriesList(); + java.util.List getNotificationCategoriesList(); /** - * - * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @return The count of notificationCategories. */ int getNotificationCategoriesCount(); /** - * - * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param index The index of the element to return. * @return The notificationCategories at the given index. */ com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategories(int index); /** - * - * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @return A list containing the enum numeric values on the wire for notificationCategories. */ - java.util.List getNotificationCategoriesValueList(); + java.util.List + getNotificationCategoriesValueList(); /** - * - * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; * @param index The index of the value to return. * @return The enum numeric value on the wire of notificationCategories at the given index. */ int getNotificationCategoriesValue(int index); /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -151,14 +99,11 @@ public interface ComputeContactsRequestOrBuilder
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -167,13 +112,10 @@ public interface ComputeContactsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -182,8 +124,8 @@ public interface ComputeContactsRequestOrBuilder
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java similarity index 75% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java index 237c51ba..4c36a468 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** - * - * *
  * Response message for the ComputeContacts method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ComputeContactsResponse} */ -public final class ComputeContactsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ComputeContactsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.ComputeContactsResponse) ComputeContactsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ComputeContactsResponse.newBuilder() to construct. private ComputeContactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ComputeContactsResponse() { contacts_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ComputeContactsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ComputeContactsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ComputeContactsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ComputeContactsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contacts_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - contacts_.add( - input.readMessage( - com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contacts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + contacts_.add( + input.readMessage(com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ComputeContactsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { contacts_ = java.util.Collections.unmodifiableList(contacts_); @@ -114,27 +94,22 @@ private ComputeContactsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.Builder.class); + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.Builder.class); } public static final int CONTACTS_FIELD_NUMBER = 1; private java.util.List contacts_; /** - * - * *
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -148,8 +123,6 @@ public java.util.List getContacts
     return contacts_;
   }
   /**
-   *
-   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -159,13 +132,11 @@ public java.util.List getContacts
    * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getContactsOrBuilderList() {
     return contacts_;
   }
   /**
-   *
-   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -179,8 +150,6 @@ public int getContactsCount() {
     return contacts_.size();
   }
   /**
-   *
-   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -194,8 +163,6 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) {
     return contacts_.get(index);
   }
   /**
-   *
-   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -205,15 +172,14 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) {
    * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
    */
   @java.lang.Override
-  public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index) {
+  public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(
+      int index) {
     return contacts_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
-   *
-   *
    * 
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -222,7 +188,6 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -231,15 +196,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -248,15 +212,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -265,7 +230,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,7 +241,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < contacts_.size(); i++) { output.writeMessage(1, contacts_.get(i)); } @@ -294,7 +259,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < contacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contacts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, contacts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -307,16 +273,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.ComputeContactsResponse)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse other = - (com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) obj; + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse other = (com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) obj; - if (!getContactsList().equals(other.getContactsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getContactsList() + .equals(other.getContactsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -340,127 +307,117 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse prototype) { + public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.ComputeContactsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the ComputeContacts method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ComputeContactsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.ComputeContactsResponse) com.google.cloud.essentialcontacts.v1.ComputeContactsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.Builder.class); + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.newBuilder() @@ -468,17 +425,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getContactsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -494,14 +451,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; } @java.lang.Override - public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse - getDefaultInstanceForType() { + public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse getDefaultInstanceForType() { return com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.getDefaultInstance(); } @@ -516,8 +472,7 @@ public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse buildPartial() { - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse result = - new com.google.cloud.essentialcontacts.v1.ComputeContactsResponse(this); + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse result = new com.google.cloud.essentialcontacts.v1.ComputeContactsResponse(this); int from_bitField0_ = bitField0_; if (contactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -537,39 +492,38 @@ public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.ComputeContactsResponse)other); } else { super.mergeFrom(other); return this; @@ -577,9 +531,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ComputeContactsResponse other) { - if (other - == com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.getDefaultInstance()) return this; if (contactsBuilder_ == null) { if (!other.contacts_.isEmpty()) { if (contacts_.isEmpty()) { @@ -598,10 +550,9 @@ public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ComputeContactsRe contactsBuilder_ = null; contacts_ = other.contacts_; bitField0_ = (bitField0_ & ~0x00000001); - contactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getContactsFieldBuilder() - : null; + contactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getContactsFieldBuilder() : null; } else { contactsBuilder_.addAllMessages(other.contacts_); } @@ -630,9 +581,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -641,29 +590,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List contacts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureContactsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - contacts_ = - new java.util.ArrayList(contacts_); + contacts_ = new java.util.ArrayList(contacts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, - com.google.cloud.essentialcontacts.v1.Contact.Builder, - com.google.cloud.essentialcontacts.v1.ContactOrBuilder> - contactsBuilder_; + com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> contactsBuilder_; /** - * - * *
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -680,8 +621,6 @@ public java.util.List getContacts
       }
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -698,8 +637,6 @@ public int getContactsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -716,8 +653,6 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) {
       }
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -726,7 +661,8 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) {
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public Builder setContacts(int index, com.google.cloud.essentialcontacts.v1.Contact value) {
+    public Builder setContacts(
+        int index, com.google.cloud.essentialcontacts.v1.Contact value) {
       if (contactsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -740,8 +676,6 @@ public Builder setContacts(int index, com.google.cloud.essentialcontacts.v1.Cont
       return this;
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -762,8 +696,6 @@ public Builder setContacts(
       return this;
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -786,8 +718,6 @@ public Builder addContacts(com.google.cloud.essentialcontacts.v1.Contact value)
       return this;
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -796,7 +726,8 @@ public Builder addContacts(com.google.cloud.essentialcontacts.v1.Contact value)
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public Builder addContacts(int index, com.google.cloud.essentialcontacts.v1.Contact value) {
+    public Builder addContacts(
+        int index, com.google.cloud.essentialcontacts.v1.Contact value) {
       if (contactsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -810,8 +741,6 @@ public Builder addContacts(int index, com.google.cloud.essentialcontacts.v1.Cont
       return this;
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -832,8 +761,6 @@ public Builder addContacts(
       return this;
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -854,8 +781,6 @@ public Builder addContacts(
       return this;
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -868,7 +793,8 @@ public Builder addAllContacts(
         java.lang.Iterable values) {
       if (contactsBuilder_ == null) {
         ensureContactsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, contacts_);
         onChanged();
       } else {
         contactsBuilder_.addAllMessages(values);
@@ -876,8 +802,6 @@ public Builder addAllContacts(
       return this;
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -897,8 +821,6 @@ public Builder clearContacts() {
       return this;
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -918,8 +840,6 @@ public Builder removeContacts(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -928,12 +848,11 @@ public Builder removeContacts(int index) {
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactsBuilder(int index) {
+    public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactsBuilder(
+        int index) {
       return getContactsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -942,16 +861,14 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactsBuilder(
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index) {
+    public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(
+        int index) {
       if (contactsBuilder_ == null) {
-        return contacts_.get(index);
-      } else {
+        return contacts_.get(index);  } else {
         return contactsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -960,8 +877,8 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public java.util.List
-        getContactsOrBuilderList() {
+    public java.util.List 
+         getContactsOrBuilderList() {
       if (contactsBuilder_ != null) {
         return contactsBuilder_.getMessageOrBuilderList();
       } else {
@@ -969,8 +886,6 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
       }
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -980,12 +895,10 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
     public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder() {
-      return getContactsFieldBuilder()
-          .addBuilder(com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance());
+      return getContactsFieldBuilder().addBuilder(
+          com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -994,13 +907,12 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(int index) {
-      return getContactsFieldBuilder()
-          .addBuilder(index, com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance());
+    public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
+        int index) {
+      return getContactsFieldBuilder().addBuilder(
+          index, com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -1009,23 +921,20 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public java.util.List
-        getContactsBuilderList() {
+    public java.util.List 
+         getContactsBuilderList() {
       return getContactsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.essentialcontacts.v1.Contact,
-            com.google.cloud.essentialcontacts.v1.Contact.Builder,
-            com.google.cloud.essentialcontacts.v1.ContactOrBuilder>
+        com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> 
         getContactsFieldBuilder() {
       if (contactsBuilder_ == null) {
-        contactsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.essentialcontacts.v1.Contact,
-                com.google.cloud.essentialcontacts.v1.Contact.Builder,
-                com.google.cloud.essentialcontacts.v1.ContactOrBuilder>(
-                contacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
+        contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder>(
+                contacts_,
+                ((bitField0_ & 0x00000001) != 0),
+                getParentForChildren(),
+                isClean());
         contacts_ = null;
       }
       return contactsBuilder_;
@@ -1033,8 +942,6 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
-     *
-     *
      * 
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1043,13 +950,13 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1058,8 +965,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1068,14 +973,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1083,8 +989,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1093,22 +997,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1117,18 +1019,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1137,23 +1036,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1163,13 +1062,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.ComputeContactsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.ComputeContactsResponse) - private static final com.google.cloud.essentialcontacts.v1.ComputeContactsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.essentialcontacts.v1.ComputeContactsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.ComputeContactsResponse(); } @@ -1178,16 +1076,16 @@ public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeContactsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ComputeContactsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeContactsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComputeContactsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1202,4 +1100,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java similarity index 77% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java index 52b366b9..fcdb71ee 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface ComputeContactsResponseOrBuilder - extends +public interface ComputeContactsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.ComputeContactsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -34,10 +16,9 @@ public interface ComputeContactsResponseOrBuilder
    *
    * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
    */
-  java.util.List getContactsList();
+  java.util.List 
+      getContactsList();
   /**
-   *
-   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -48,8 +29,6 @@ public interface ComputeContactsResponseOrBuilder
    */
   com.google.cloud.essentialcontacts.v1.Contact getContacts(int index);
   /**
-   *
-   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -60,8 +39,6 @@ public interface ComputeContactsResponseOrBuilder
    */
   int getContactsCount();
   /**
-   *
-   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -70,11 +47,9 @@ public interface ComputeContactsResponseOrBuilder
    *
    * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
    */
-  java.util.List
+  java.util.List 
       getContactsOrBuilderList();
   /**
-   *
-   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -83,11 +58,10 @@ public interface ComputeContactsResponseOrBuilder
    *
    * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
    */
-  com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index);
+  com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(
+      int index);
 
   /**
-   *
-   *
    * 
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -96,13 +70,10 @@ public interface ComputeContactsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -111,8 +82,8 @@ public interface ComputeContactsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java similarity index 71% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java index 2c1abc6f..343ef239 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** - * - * *
  * A contact that will receive notifications from Google Cloud.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.Contact} */ -public final class Contact extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Contact extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.Contact) ContactOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Contact.newBuilder() to construct. private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Contact() { name_ = ""; email_ = ""; @@ -47,15 +29,16 @@ private Contact() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Contact(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Contact( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -75,81 +58,73 @@ private Contact( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - email_ = s; - break; + email_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notificationCategorySubscriptions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 24: - { + notificationCategorySubscriptions_.add(rawValue); + break; + } + case 26: { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while(input.getBytesUntilLimit() > 0) { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { notificationCategorySubscriptions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } notificationCategorySubscriptions_.add(rawValue); - break; - } - case 26: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notificationCategorySubscriptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - notificationCategorySubscriptions_.add(rawValue); - } - input.popLimit(oldLimit); - break; } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + input.popLimit(oldLimit); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - languageTag_ = s; - break; - } - case 64: - { - int rawValue = input.readEnum(); + languageTag_ = s; + break; + } + case 64: { + int rawValue = input.readEnum(); - validationState_ = rawValue; - break; + validationState_ = rawValue; + break; + } + case 74: { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (validateTime_ != null) { + subBuilder = validateTime_.toBuilder(); } - case 74: - { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (validateTime_ != null) { - subBuilder = validateTime_.toBuilder(); - } - validateTime_ = - input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validateTime_); - validateTime_ = subBuilder.buildPartial(); - } - - break; + validateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(validateTime_); + validateTime_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -157,44 +132,38 @@ private Contact( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - notificationCategorySubscriptions_ = - java.util.Collections.unmodifiableList(notificationCategorySubscriptions_); + notificationCategorySubscriptions_ = java.util.Collections.unmodifiableList(notificationCategorySubscriptions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.Contact.class, - com.google.cloud.essentialcontacts.v1.Contact.Builder.class); + com.google.cloud.essentialcontacts.v1.Contact.class, com.google.cloud.essentialcontacts.v1.Contact.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The identifier for the contact.
    * Format: {resource_type}/{resource_id}/contacts/{contact_id}
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -203,30 +172,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The identifier for the contact.
    * Format: {resource_type}/{resource_id}/contacts/{contact_id}
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -237,15 +206,12 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int EMAIL_FIELD_NUMBER = 2; private volatile java.lang.Object email_; /** - * - * *
    * Required. The email address to send notifications to. This does not need to
    * be a Google account.
    * 
* * string email = 2; - * * @return The email. */ @java.lang.Override @@ -254,30 +220,30 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** - * - * *
    * Required. The email address to send notifications to. This does not need to
    * be a Google account.
    * 
* * string email = 2; - * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -288,53 +254,36 @@ public com.google.protobuf.ByteString getEmailBytes() { public static final int NOTIFICATION_CATEGORY_SUBSCRIPTIONS_FIELD_NUMBER = 3; private java.util.List notificationCategorySubscriptions_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory> - notificationCategorySubscriptions_converter_ = + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory> notificationCategorySubscriptions_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>() { - public com.google.cloud.essentialcontacts.v1.NotificationCategory convert( - java.lang.Integer from) { + public com.google.cloud.essentialcontacts.v1.NotificationCategory convert(java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.NotificationCategory result = - com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(from); - return result == null - ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED - : result; + com.google.cloud.essentialcontacts.v1.NotificationCategory result = com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(from); + return result == null ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED : result; } }; /** - * - * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @return A list containing the notificationCategorySubscriptions. */ @java.lang.Override - public java.util.List - getNotificationCategorySubscriptionsList() { + public java.util.List getNotificationCategorySubscriptionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>( - notificationCategorySubscriptions_, notificationCategorySubscriptions_converter_); + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>(notificationCategorySubscriptions_, notificationCategorySubscriptions_converter_); } /** - * - * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @return The count of notificationCategorySubscriptions. */ @java.lang.Override @@ -342,73 +291,52 @@ public int getNotificationCategorySubscriptionsCount() { return notificationCategorySubscriptions_.size(); } /** - * - * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param index The index of the element to return. * @return The notificationCategorySubscriptions at the given index. */ @java.lang.Override - public com.google.cloud.essentialcontacts.v1.NotificationCategory - getNotificationCategorySubscriptions(int index) { - return notificationCategorySubscriptions_converter_.convert( - notificationCategorySubscriptions_.get(index)); + public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategorySubscriptions(int index) { + return notificationCategorySubscriptions_converter_.convert(notificationCategorySubscriptions_.get(index)); } /** - * - * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * - * @return A list containing the enum numeric values on the wire for - * notificationCategorySubscriptions. + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * @return A list containing the enum numeric values on the wire for notificationCategorySubscriptions. */ @java.lang.Override - public java.util.List getNotificationCategorySubscriptionsValueList() { + public java.util.List + getNotificationCategorySubscriptionsValueList() { return notificationCategorySubscriptions_; } /** - * - * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param index The index of the value to return. - * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given - * index. + * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given index. */ @java.lang.Override public int getNotificationCategorySubscriptionsValue(int index) { return notificationCategorySubscriptions_.get(index); } - private int notificationCategorySubscriptionsMemoizedSerializedSize; public static final int LANGUAGE_TAG_FIELD_NUMBER = 4; private volatile java.lang.Object languageTag_; /** - * - * *
    * The preferred language for notifications, as a ISO 639-1 language code. See
    * [Supported
@@ -417,7 +345,6 @@ public int getNotificationCategorySubscriptionsValue(int index) {
    * 
* * string language_tag = 4; - * * @return The languageTag. */ @java.lang.Override @@ -426,15 +353,14 @@ public java.lang.String getLanguageTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageTag_ = s; return s; } } /** - * - * *
    * The preferred language for notifications, as a ISO 639-1 language code. See
    * [Supported
@@ -443,15 +369,16 @@ public java.lang.String getLanguageTag() {
    * 
* * string language_tag = 4; - * * @return The bytes for languageTag. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageTagBytes() { + public com.google.protobuf.ByteString + getLanguageTagBytes() { java.lang.Object ref = languageTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageTag_ = b; return b; } else { @@ -462,48 +389,35 @@ public com.google.protobuf.ByteString getLanguageTagBytes() { public static final int VALIDATION_STATE_FIELD_NUMBER = 8; private int validationState_; /** - * - * *
    * The validity of the contact. A contact is considered valid if it is the
    * correct recipient for notifications for a particular resource.
    * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; - * * @return The enum numeric value on the wire for validationState. */ - @java.lang.Override - public int getValidationStateValue() { + @java.lang.Override public int getValidationStateValue() { return validationState_; } /** - * - * *
    * The validity of the contact. A contact is considered valid if it is the
    * correct recipient for notifications for a particular resource.
    * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; - * * @return The validationState. */ - @java.lang.Override - public com.google.cloud.essentialcontacts.v1.ValidationState getValidationState() { + @java.lang.Override public com.google.cloud.essentialcontacts.v1.ValidationState getValidationState() { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.ValidationState result = - com.google.cloud.essentialcontacts.v1.ValidationState.valueOf(validationState_); - return result == null - ? com.google.cloud.essentialcontacts.v1.ValidationState.UNRECOGNIZED - : result; + com.google.cloud.essentialcontacts.v1.ValidationState result = com.google.cloud.essentialcontacts.v1.ValidationState.valueOf(validationState_); + return result == null ? com.google.cloud.essentialcontacts.v1.ValidationState.UNRECOGNIZED : result; } public static final int VALIDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp validateTime_; /** - * - * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
@@ -511,7 +425,6 @@ public com.google.cloud.essentialcontacts.v1.ValidationState getValidationState(
    * 
* * .google.protobuf.Timestamp validate_time = 9; - * * @return Whether the validateTime field is set. */ @java.lang.Override @@ -519,8 +432,6 @@ public boolean hasValidateTime() { return validateTime_ != null; } /** - * - * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
@@ -528,18 +439,13 @@ public boolean hasValidateTime() {
    * 
* * .google.protobuf.Timestamp validate_time = 9; - * * @return The validateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getValidateTime() { - return validateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : validateTime_; + return validateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validateTime_; } /** - * - * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
@@ -554,7 +460,6 @@ public com.google.protobuf.TimestampOrBuilder getValidateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -566,7 +471,8 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output)
+                      throws java.io.IOException {
     getSerializedSize();
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
@@ -584,9 +490,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageTag_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageTag_);
     }
-    if (validationState_
-        != com.google.cloud.essentialcontacts.v1.ValidationState.VALIDATION_STATE_UNSPECIFIED
-            .getNumber()) {
+    if (validationState_ != com.google.cloud.essentialcontacts.v1.ValidationState.VALIDATION_STATE_UNSPECIFIED.getNumber()) {
       output.writeEnum(8, validationState_);
     }
     if (validateTime_ != null) {
@@ -610,27 +514,25 @@ public int getSerializedSize() {
     {
       int dataSize = 0;
       for (int i = 0; i < notificationCategorySubscriptions_.size(); i++) {
-        dataSize +=
-            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
-                notificationCategorySubscriptions_.get(i));
+        dataSize += com.google.protobuf.CodedOutputStream
+          .computeEnumSizeNoTag(notificationCategorySubscriptions_.get(i));
       }
       size += dataSize;
-      if (!getNotificationCategorySubscriptionsList().isEmpty()) {
-        size += 1;
-        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
-      }
-      notificationCategorySubscriptionsMemoizedSerializedSize = dataSize;
+      if (!getNotificationCategorySubscriptionsList().isEmpty()) {  size += 1;
+        size += com.google.protobuf.CodedOutputStream
+          .computeUInt32SizeNoTag(dataSize);
+      }notificationCategorySubscriptionsMemoizedSerializedSize = dataSize;
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageTag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageTag_);
     }
-    if (validationState_
-        != com.google.cloud.essentialcontacts.v1.ValidationState.VALIDATION_STATE_UNSPECIFIED
-            .getNumber()) {
-      size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, validationState_);
+    if (validationState_ != com.google.cloud.essentialcontacts.v1.ValidationState.VALIDATION_STATE_UNSPECIFIED.getNumber()) {
+      size += com.google.protobuf.CodedOutputStream
+        .computeEnumSize(8, validationState_);
     }
     if (validateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getValidateTime());
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(9, getValidateTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -640,23 +542,25 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-      return true;
+     return true;
     }
     if (!(obj instanceof com.google.cloud.essentialcontacts.v1.Contact)) {
       return super.equals(obj);
     }
-    com.google.cloud.essentialcontacts.v1.Contact other =
-        (com.google.cloud.essentialcontacts.v1.Contact) obj;
+    com.google.cloud.essentialcontacts.v1.Contact other = (com.google.cloud.essentialcontacts.v1.Contact) obj;
 
-    if (!getName().equals(other.getName())) return false;
-    if (!getEmail().equals(other.getEmail())) return false;
-    if (!notificationCategorySubscriptions_.equals(other.notificationCategorySubscriptions_))
-      return false;
-    if (!getLanguageTag().equals(other.getLanguageTag())) return false;
+    if (!getName()
+        .equals(other.getName())) return false;
+    if (!getEmail()
+        .equals(other.getEmail())) return false;
+    if (!notificationCategorySubscriptions_.equals(other.notificationCategorySubscriptions_)) return false;
+    if (!getLanguageTag()
+        .equals(other.getLanguageTag())) return false;
     if (validationState_ != other.validationState_) return false;
     if (hasValidateTime() != other.hasValidateTime()) return false;
     if (hasValidateTime()) {
-      if (!getValidateTime().equals(other.getValidateTime())) return false;
+      if (!getValidateTime()
+          .equals(other.getValidateTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -690,127 +594,118 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
-      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
-      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
-
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
-
-  public static com.google.cloud.essentialcontacts.v1.Contact parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.essentialcontacts.v1.Contact parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.essentialcontacts.v1.Contact parseDelimitedFrom(
-      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input,
+      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
   }
-
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
-      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
-        PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3
+        .parseWithIOException(PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() {
-    return newBuilder();
-  }
-
+  public Builder newBuilderForType() { return newBuilder(); }
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
-
   public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.Contact prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
-
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE
+        ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(
+      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
-   *
-   *
    * 
    * A contact that will receive notifications from Google Cloud.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.Contact} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.Contact) com.google.cloud.essentialcontacts.v1.ContactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.Contact.class, - com.google.cloud.essentialcontacts.v1.Contact.Builder.class); + com.google.cloud.essentialcontacts.v1.Contact.class, com.google.cloud.essentialcontacts.v1.Contact.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.Contact.newBuilder() @@ -818,15 +713,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -850,9 +746,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; } @java.lang.Override @@ -871,14 +767,12 @@ public com.google.cloud.essentialcontacts.v1.Contact build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.Contact buildPartial() { - com.google.cloud.essentialcontacts.v1.Contact result = - new com.google.cloud.essentialcontacts.v1.Contact(this); + com.google.cloud.essentialcontacts.v1.Contact result = new com.google.cloud.essentialcontacts.v1.Contact(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.email_ = email_; if (((bitField0_ & 0x00000001) != 0)) { - notificationCategorySubscriptions_ = - java.util.Collections.unmodifiableList(notificationCategorySubscriptions_); + notificationCategorySubscriptions_ = java.util.Collections.unmodifiableList(notificationCategorySubscriptions_); bitField0_ = (bitField0_ & ~0x00000001); } result.notificationCategorySubscriptions_ = notificationCategorySubscriptions_; @@ -897,39 +791,38 @@ public com.google.cloud.essentialcontacts.v1.Contact buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.Contact) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.Contact) other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.Contact)other); } else { super.mergeFrom(other); return this; @@ -994,26 +887,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * The identifier for the contact.
      * Format: {resource_type}/{resource_id}/contacts/{contact_id}
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1022,22 +912,21 @@ public java.lang.String getName() { } } /** - * - * *
      * The identifier for the contact.
      * Format: {resource_type}/{resource_id}/contacts/{contact_id}
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1045,64 +934,57 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The identifier for the contact.
      * Format: {resource_type}/{resource_id}/contacts/{contact_id}
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The identifier for the contact.
      * Format: {resource_type}/{resource_id}/contacts/{contact_id}
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The identifier for the contact.
      * Format: {resource_type}/{resource_id}/contacts/{contact_id}
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -1110,21 +992,19 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object email_ = ""; /** - * - * *
      * Required. The email address to send notifications to. This does not need to
      * be a Google account.
      * 
* * string email = 2; - * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -1133,22 +1013,21 @@ public java.lang.String getEmail() { } } /** - * - * *
      * Required. The email address to send notifications to. This does not need to
      * be a Google account.
      * 
* * string email = 2; - * * @return The bytes for email. */ - public com.google.protobuf.ByteString getEmailBytes() { + public com.google.protobuf.ByteString + getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); email_ = b; return b; } else { @@ -1156,148 +1035,115 @@ public com.google.protobuf.ByteString getEmailBytes() { } } /** - * - * *
      * Required. The email address to send notifications to. This does not need to
      * be a Google account.
      * 
* * string email = 2; - * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail(java.lang.String value) { + public Builder setEmail( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + email_ = value; onChanged(); return this; } /** - * - * *
      * Required. The email address to send notifications to. This does not need to
      * be a Google account.
      * 
* * string email = 2; - * * @return This builder for chaining. */ public Builder clearEmail() { - + email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** - * - * *
      * Required. The email address to send notifications to. This does not need to
      * be a Google account.
      * 
* * string email = 2; - * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; onChanged(); return this; } private java.util.List notificationCategorySubscriptions_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNotificationCategorySubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationCategorySubscriptions_ = - new java.util.ArrayList(notificationCategorySubscriptions_); + notificationCategorySubscriptions_ = new java.util.ArrayList(notificationCategorySubscriptions_); bitField0_ |= 0x00000001; } } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @return A list containing the notificationCategorySubscriptions. */ - public java.util.List - getNotificationCategorySubscriptionsList() { + public java.util.List getNotificationCategorySubscriptionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>( - notificationCategorySubscriptions_, notificationCategorySubscriptions_converter_); + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>(notificationCategorySubscriptions_, notificationCategorySubscriptions_converter_); } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @return The count of notificationCategorySubscriptions. */ public int getNotificationCategorySubscriptionsCount() { return notificationCategorySubscriptions_.size(); } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param index The index of the element to return. * @return The notificationCategorySubscriptions at the given index. */ - public com.google.cloud.essentialcontacts.v1.NotificationCategory - getNotificationCategorySubscriptions(int index) { - return notificationCategorySubscriptions_converter_.convert( - notificationCategorySubscriptions_.get(index)); + public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategorySubscriptions(int index) { + return notificationCategorySubscriptions_converter_.convert(notificationCategorySubscriptions_.get(index)); } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param index The index to set the value at. * @param value The notificationCategorySubscriptions to set. * @return This builder for chaining. @@ -1313,22 +1159,16 @@ public Builder setNotificationCategorySubscriptions( return this; } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param value The notificationCategorySubscriptions to add. * @return This builder for chaining. */ - public Builder addNotificationCategorySubscriptions( - com.google.cloud.essentialcontacts.v1.NotificationCategory value) { + public Builder addNotificationCategorySubscriptions(com.google.cloud.essentialcontacts.v1.NotificationCategory value) { if (value == null) { throw new NullPointerException(); } @@ -1338,23 +1178,17 @@ public Builder addNotificationCategorySubscriptions( return this; } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param values The notificationCategorySubscriptions to add. * @return This builder for chaining. */ public Builder addAllNotificationCategorySubscriptions( - java.lang.Iterable - values) { + java.lang.Iterable values) { ensureNotificationCategorySubscriptionsIsMutable(); for (com.google.cloud.essentialcontacts.v1.NotificationCategory value : values) { notificationCategorySubscriptions_.add(value.getNumber()); @@ -1363,17 +1197,12 @@ public Builder addAllNotificationCategorySubscriptions( return this; } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @return This builder for chaining. */ public Builder clearNotificationCategorySubscriptions() { @@ -1383,77 +1212,56 @@ public Builder clearNotificationCategorySubscriptions() { return this; } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * - * @return A list containing the enum numeric values on the wire for - * notificationCategorySubscriptions. + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * @return A list containing the enum numeric values on the wire for notificationCategorySubscriptions. */ - public java.util.List getNotificationCategorySubscriptionsValueList() { + public java.util.List + getNotificationCategorySubscriptionsValueList() { return java.util.Collections.unmodifiableList(notificationCategorySubscriptions_); } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param index The index of the value to return. - * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given - * index. + * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given index. */ public int getNotificationCategorySubscriptionsValue(int index) { return notificationCategorySubscriptions_.get(index); } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param index The index of the value to return. - * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given - * index. + * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given index. * @return This builder for chaining. */ - public Builder setNotificationCategorySubscriptionsValue(int index, int value) { + public Builder setNotificationCategorySubscriptionsValue( + int index, int value) { ensureNotificationCategorySubscriptionsIsMutable(); notificationCategorySubscriptions_.set(index, value); onChanged(); return this; } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param value The enum numeric value on the wire for notificationCategorySubscriptions to add. * @return This builder for chaining. */ @@ -1464,19 +1272,13 @@ public Builder addNotificationCategorySubscriptionsValue(int value) { return this; } /** - * - * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * - * @param values The enum numeric values on the wire for notificationCategorySubscriptions to - * add. + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * @param values The enum numeric values on the wire for notificationCategorySubscriptions to add. * @return This builder for chaining. */ public Builder addAllNotificationCategorySubscriptionsValue( @@ -1491,8 +1293,6 @@ public Builder addAllNotificationCategorySubscriptionsValue( private java.lang.Object languageTag_ = ""; /** - * - * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1501,13 +1301,13 @@ public Builder addAllNotificationCategorySubscriptionsValue(
      * 
* * string language_tag = 4; - * * @return The languageTag. */ public java.lang.String getLanguageTag() { java.lang.Object ref = languageTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageTag_ = s; return s; @@ -1516,8 +1316,6 @@ public java.lang.String getLanguageTag() { } } /** - * - * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1526,14 +1324,15 @@ public java.lang.String getLanguageTag() {
      * 
* * string language_tag = 4; - * * @return The bytes for languageTag. */ - public com.google.protobuf.ByteString getLanguageTagBytes() { + public com.google.protobuf.ByteString + getLanguageTagBytes() { java.lang.Object ref = languageTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); languageTag_ = b; return b; } else { @@ -1541,8 +1340,6 @@ public com.google.protobuf.ByteString getLanguageTagBytes() { } } /** - * - * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1551,22 +1348,20 @@ public com.google.protobuf.ByteString getLanguageTagBytes() {
      * 
* * string language_tag = 4; - * * @param value The languageTag to set. * @return This builder for chaining. */ - public Builder setLanguageTag(java.lang.String value) { + public Builder setLanguageTag( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageTag_ = value; onChanged(); return this; } /** - * - * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1575,18 +1370,15 @@ public Builder setLanguageTag(java.lang.String value) {
      * 
* * string language_tag = 4; - * * @return This builder for chaining. */ public Builder clearLanguageTag() { - + languageTag_ = getDefaultInstance().getLanguageTag(); onChanged(); return this; } /** - * - * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1595,16 +1387,16 @@ public Builder clearLanguageTag() {
      * 
* * string language_tag = 4; - * * @param value The bytes for languageTag to set. * @return This builder for chaining. */ - public Builder setLanguageTagBytes(com.google.protobuf.ByteString value) { + public Builder setLanguageTagBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageTag_ = value; onChanged(); return this; @@ -1612,71 +1404,55 @@ public Builder setLanguageTagBytes(com.google.protobuf.ByteString value) { private int validationState_ = 0; /** - * - * *
      * The validity of the contact. A contact is considered valid if it is the
      * correct recipient for notifications for a particular resource.
      * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; - * * @return The enum numeric value on the wire for validationState. */ - @java.lang.Override - public int getValidationStateValue() { + @java.lang.Override public int getValidationStateValue() { return validationState_; } /** - * - * *
      * The validity of the contact. A contact is considered valid if it is the
      * correct recipient for notifications for a particular resource.
      * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; - * * @param value The enum numeric value on the wire for validationState to set. * @return This builder for chaining. */ public Builder setValidationStateValue(int value) { - + validationState_ = value; onChanged(); return this; } /** - * - * *
      * The validity of the contact. A contact is considered valid if it is the
      * correct recipient for notifications for a particular resource.
      * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; - * * @return The validationState. */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.ValidationState getValidationState() { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.ValidationState result = - com.google.cloud.essentialcontacts.v1.ValidationState.valueOf(validationState_); - return result == null - ? com.google.cloud.essentialcontacts.v1.ValidationState.UNRECOGNIZED - : result; + com.google.cloud.essentialcontacts.v1.ValidationState result = com.google.cloud.essentialcontacts.v1.ValidationState.valueOf(validationState_); + return result == null ? com.google.cloud.essentialcontacts.v1.ValidationState.UNRECOGNIZED : result; } /** - * - * *
      * The validity of the contact. A contact is considered valid if it is the
      * correct recipient for notifications for a particular resource.
      * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; - * * @param value The validationState to set. * @return This builder for chaining. */ @@ -1684,25 +1460,22 @@ public Builder setValidationState(com.google.cloud.essentialcontacts.v1.Validati if (value == null) { throw new NullPointerException(); } - + validationState_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * The validity of the contact. A contact is considered valid if it is the
      * correct recipient for notifications for a particular resource.
      * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; - * * @return This builder for chaining. */ public Builder clearValidationState() { - + validationState_ = 0; onChanged(); return this; @@ -1710,13 +1483,8 @@ public Builder clearValidationState() { private com.google.protobuf.Timestamp validateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - validateTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> validateTimeBuilder_; /** - * - * *
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1724,15 +1492,12 @@ public Builder clearValidationState() {
      * 
* * .google.protobuf.Timestamp validate_time = 9; - * * @return Whether the validateTime field is set. */ public boolean hasValidateTime() { return validateTimeBuilder_ != null || validateTime_ != null; } /** - * - * *
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1740,21 +1505,16 @@ public boolean hasValidateTime() {
      * 
* * .google.protobuf.Timestamp validate_time = 9; - * * @return The validateTime. */ public com.google.protobuf.Timestamp getValidateTime() { if (validateTimeBuilder_ == null) { - return validateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : validateTime_; + return validateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validateTime_; } else { return validateTimeBuilder_.getMessage(); } } /** - * - * *
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1777,8 +1537,6 @@ public Builder setValidateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1787,7 +1545,8 @@ public Builder setValidateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp validate_time = 9;
      */
-    public Builder setValidateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setValidateTime(
+        com.google.protobuf.Timestamp.Builder builderForValue) {
       if (validateTimeBuilder_ == null) {
         validateTime_ = builderForValue.build();
         onChanged();
@@ -1798,8 +1557,6 @@ public Builder setValidateTime(com.google.protobuf.Timestamp.Builder builderForV
       return this;
     }
     /**
-     *
-     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1812,9 +1569,7 @@ public Builder mergeValidateTime(com.google.protobuf.Timestamp value) {
       if (validateTimeBuilder_ == null) {
         if (validateTime_ != null) {
           validateTime_ =
-              com.google.protobuf.Timestamp.newBuilder(validateTime_)
-                  .mergeFrom(value)
-                  .buildPartial();
+            com.google.protobuf.Timestamp.newBuilder(validateTime_).mergeFrom(value).buildPartial();
         } else {
           validateTime_ = value;
         }
@@ -1826,8 +1581,6 @@ public Builder mergeValidateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1848,8 +1601,6 @@ public Builder clearValidateTime() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1859,13 +1610,11 @@ public Builder clearValidateTime() {
      * .google.protobuf.Timestamp validate_time = 9;
      */
     public com.google.protobuf.Timestamp.Builder getValidateTimeBuilder() {
-
+      
       onChanged();
       return getValidateTimeFieldBuilder().getBuilder();
     }
     /**
-     *
-     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1878,14 +1627,11 @@ public com.google.protobuf.TimestampOrBuilder getValidateTimeOrBuilder() {
       if (validateTimeBuilder_ != null) {
         return validateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return validateTime_ == null
-            ? com.google.protobuf.Timestamp.getDefaultInstance()
-            : validateTime_;
+        return validateTime_ == null ?
+            com.google.protobuf.Timestamp.getDefaultInstance() : validateTime_;
       }
     }
     /**
-     *
-     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1895,24 +1641,21 @@ public com.google.protobuf.TimestampOrBuilder getValidateTimeOrBuilder() {
      * .google.protobuf.Timestamp validate_time = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp,
-            com.google.protobuf.Timestamp.Builder,
-            com.google.protobuf.TimestampOrBuilder>
+        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
         getValidateTimeFieldBuilder() {
       if (validateTimeBuilder_ == null) {
-        validateTimeBuilder_ =
-            new com.google.protobuf.SingleFieldBuilderV3<
-                com.google.protobuf.Timestamp,
-                com.google.protobuf.Timestamp.Builder,
-                com.google.protobuf.TimestampOrBuilder>(
-                getValidateTime(), getParentForChildren(), isClean());
+        validateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
+                getValidateTime(),
+                getParentForChildren(),
+                isClean());
         validateTime_ = null;
       }
       return validateTimeBuilder_;
     }
-
     @java.lang.Override
-    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(
+        final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1922,12 +1665,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.Contact)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.Contact)
   private static final com.google.cloud.essentialcontacts.v1.Contact DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.Contact();
   }
@@ -1936,16 +1679,16 @@ public static com.google.cloud.essentialcontacts.v1.Contact getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Contact parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new Contact(input, extensionRegistry);
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Contact parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      return new Contact(input, extensionRegistry);
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1960,4 +1703,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.essentialcontacts.v1.Contact getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java
similarity index 100%
rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java
rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java
diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java
similarity index 72%
rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java
rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java
index 5ec6c0eb..65963fa2 100644
--- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java
+++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java
@@ -1,167 +1,111 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/essentialcontacts/v1/service.proto
 
 package com.google.cloud.essentialcontacts.v1;
 
-public interface ContactOrBuilder
-    extends
+public interface ContactOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.Contact)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The identifier for the contact.
    * Format: {resource_type}/{resource_id}/contacts/{contact_id}
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The identifier for the contact.
    * Format: {resource_type}/{resource_id}/contacts/{contact_id}
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * Required. The email address to send notifications to. This does not need to
    * be a Google account.
    * 
* * string email = 2; - * * @return The email. */ java.lang.String getEmail(); /** - * - * *
    * Required. The email address to send notifications to. This does not need to
    * be a Google account.
    * 
* * string email = 2; - * * @return The bytes for email. */ - com.google.protobuf.ByteString getEmailBytes(); + com.google.protobuf.ByteString + getEmailBytes(); /** - * - * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @return A list containing the notificationCategorySubscriptions. */ - java.util.List - getNotificationCategorySubscriptionsList(); + java.util.List getNotificationCategorySubscriptionsList(); /** - * - * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @return The count of notificationCategorySubscriptions. */ int getNotificationCategorySubscriptionsCount(); /** - * - * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param index The index of the element to return. * @return The notificationCategorySubscriptions at the given index. */ - com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategorySubscriptions( - int index); + com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategorySubscriptions(int index); /** - * - * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * - * @return A list containing the enum numeric values on the wire for - * notificationCategorySubscriptions. + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * @return A list containing the enum numeric values on the wire for notificationCategorySubscriptions. */ - java.util.List getNotificationCategorySubscriptionsValueList(); + java.util.List + getNotificationCategorySubscriptionsValueList(); /** - * - * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * - * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; * @param index The index of the value to return. - * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given - * index. + * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given index. */ int getNotificationCategorySubscriptionsValue(int index); /** - * - * *
    * The preferred language for notifications, as a ISO 639-1 language code. See
    * [Supported
@@ -170,13 +114,10 @@ com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCatego
    * 
* * string language_tag = 4; - * * @return The languageTag. */ java.lang.String getLanguageTag(); /** - * - * *
    * The preferred language for notifications, as a ISO 639-1 language code. See
    * [Supported
@@ -185,41 +126,33 @@ com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCatego
    * 
* * string language_tag = 4; - * * @return The bytes for languageTag. */ - com.google.protobuf.ByteString getLanguageTagBytes(); + com.google.protobuf.ByteString + getLanguageTagBytes(); /** - * - * *
    * The validity of the contact. A contact is considered valid if it is the
    * correct recipient for notifications for a particular resource.
    * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; - * * @return The enum numeric value on the wire for validationState. */ int getValidationStateValue(); /** - * - * *
    * The validity of the contact. A contact is considered valid if it is the
    * correct recipient for notifications for a particular resource.
    * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; - * * @return The validationState. */ com.google.cloud.essentialcontacts.v1.ValidationState getValidationState(); /** - * - * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
@@ -227,13 +160,10 @@ com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCatego
    * 
* * .google.protobuf.Timestamp validate_time = 9; - * * @return Whether the validateTime field is set. */ boolean hasValidateTime(); /** - * - * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
@@ -241,13 +171,10 @@ com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCatego
    * 
* * .google.protobuf.Timestamp validate_time = 9; - * * @return The validateTime. */ com.google.protobuf.Timestamp getValidateTime(); /** - * - * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java
similarity index 63%
rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java
index 28f6b2e9..783af329 100644
--- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java
@@ -1,57 +1,40 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/essentialcontacts/v1/service.proto
 
 package com.google.cloud.essentialcontacts.v1;
 
 /**
- *
- *
  * 
  * Request message for the CreateContact method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.CreateContactRequest} */ -public final class CreateContactRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class CreateContactRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.CreateContactRequest) CreateContactRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use CreateContactRequest.newBuilder() to construct. private CreateContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateContactRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CreateContactRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private CreateContactRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,36 +53,32 @@ private CreateContactRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; + parent_ = s; + break; + } + case 18: { + com.google.cloud.essentialcontacts.v1.Contact.Builder subBuilder = null; + if (contact_ != null) { + subBuilder = contact_.toBuilder(); } - case 18: - { - com.google.cloud.essentialcontacts.v1.Contact.Builder subBuilder = null; - if (contact_ != null) { - subBuilder = contact_.toBuilder(); - } - contact_ = - input.readMessage( - com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contact_); - contact_ = subBuilder.buildPartial(); - } - - break; + contact_ = input.readMessage(com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(contact_); + contact_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,43 +86,36 @@ private CreateContactRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, - com.google.cloud.essentialcontacts.v1.CreateContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, com.google.cloud.essentialcontacts.v1.CreateContactRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The resource to save this contact for.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -152,33 +124,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The resource to save this contact for.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -189,17 +159,12 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int CONTACT_FIELD_NUMBER = 2; private com.google.cloud.essentialcontacts.v1.Contact contact_; /** - * - * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the contact field is set. */ @java.lang.Override @@ -207,36 +172,25 @@ public boolean hasContact() { return contact_ != null; } /** - * - * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The contact. */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.Contact getContact() { - return contact_ == null - ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() - : contact_; + return contact_ == null ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; } /** - * - * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder() { @@ -244,7 +198,6 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,7 +209,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -276,7 +230,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (contact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContact()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getContact()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -286,18 +241,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.CreateContactRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.CreateContactRequest other = - (com.google.cloud.essentialcontacts.v1.CreateContactRequest) obj; + com.google.cloud.essentialcontacts.v1.CreateContactRequest other = (com.google.cloud.essentialcontacts.v1.CreateContactRequest) obj; - if (!getParent().equals(other.getParent())) return false; + if (!getParent() + .equals(other.getParent())) return false; if (hasContact() != other.hasContact()) return false; if (hasContact()) { - if (!getContact().equals(other.getContact())) return false; + if (!getContact() + .equals(other.getContact())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -322,127 +278,117 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.essentialcontacts.v1.CreateContactRequest prototype) { + public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.CreateContactRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the CreateContact method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.CreateContactRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.CreateContactRequest) com.google.cloud.essentialcontacts.v1.CreateContactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, - com.google.cloud.essentialcontacts.v1.CreateContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, com.google.cloud.essentialcontacts.v1.CreateContactRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.CreateContactRequest.newBuilder() @@ -450,15 +396,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -474,9 +421,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; } @java.lang.Override @@ -495,8 +442,7 @@ public com.google.cloud.essentialcontacts.v1.CreateContactRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.CreateContactRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.CreateContactRequest result = - new com.google.cloud.essentialcontacts.v1.CreateContactRequest(this); + com.google.cloud.essentialcontacts.v1.CreateContactRequest result = new com.google.cloud.essentialcontacts.v1.CreateContactRequest(this); result.parent_ = parent_; if (contactBuilder_ == null) { result.contact_ = contact_; @@ -511,39 +457,38 @@ public com.google.cloud.essentialcontacts.v1.CreateContactRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.CreateContactRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.CreateContactRequest) other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.CreateContactRequest)other); } else { super.mergeFrom(other); return this; @@ -551,8 +496,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.CreateContactRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.CreateContactRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.essentialcontacts.v1.CreateContactRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -579,8 +523,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.essentialcontacts.v1.CreateContactRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.essentialcontacts.v1.CreateContactRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -592,24 +535,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The resource to save this contact for.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -618,25 +557,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The resource to save this contact for.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -644,73 +580,60 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The resource to save this contact for.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The resource to save this contact for.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The resource to save this contact for.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -718,61 +641,42 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { private com.google.cloud.essentialcontacts.v1.Contact contact_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, - com.google.cloud.essentialcontacts.v1.Contact.Builder, - com.google.cloud.essentialcontacts.v1.ContactOrBuilder> - contactBuilder_; + com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> contactBuilder_; /** - * - * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the contact field is set. */ public boolean hasContact() { return contactBuilder_ != null || contact_ != null; } /** - * - * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The contact. */ public com.google.cloud.essentialcontacts.v1.Contact getContact() { if (contactBuilder_ == null) { - return contact_ == null - ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() - : contact_; + return contact_ == null ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; } else { return contactBuilder_.getMessage(); } } /** - * - * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setContact(com.google.cloud.essentialcontacts.v1.Contact value) { if (contactBuilder_ == null) { @@ -788,16 +692,12 @@ public Builder setContact(com.google.cloud.essentialcontacts.v1.Contact value) { return this; } /** - * - * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setContact( com.google.cloud.essentialcontacts.v1.Contact.Builder builderForValue) { @@ -811,24 +711,18 @@ public Builder setContact( return this; } /** - * - * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeContact(com.google.cloud.essentialcontacts.v1.Contact value) { if (contactBuilder_ == null) { if (contact_ != null) { contact_ = - com.google.cloud.essentialcontacts.v1.Contact.newBuilder(contact_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.essentialcontacts.v1.Contact.newBuilder(contact_).mergeFrom(value).buildPartial(); } else { contact_ = value; } @@ -840,16 +734,12 @@ public Builder mergeContact(com.google.cloud.essentialcontacts.v1.Contact value) return this; } /** - * - * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearContact() { if (contactBuilder_ == null) { @@ -863,74 +753,58 @@ public Builder clearContact() { return this; } /** - * - * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactBuilder() { - + onChanged(); return getContactFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder() { if (contactBuilder_ != null) { return contactBuilder_.getMessageOrBuilder(); } else { - return contact_ == null - ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() - : contact_; + return contact_ == null ? + com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; } } /** - * - * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, - com.google.cloud.essentialcontacts.v1.Contact.Builder, - com.google.cloud.essentialcontacts.v1.ContactOrBuilder> + com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> getContactFieldBuilder() { if (contactBuilder_ == null) { - contactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, - com.google.cloud.essentialcontacts.v1.Contact.Builder, - com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( - getContact(), getParentForChildren(), isClean()); + contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( + getContact(), + getParentForChildren(), + isClean()); contact_ = null; } return contactBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -940,12 +814,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.CreateContactRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.CreateContactRequest) private static final com.google.cloud.essentialcontacts.v1.CreateContactRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.CreateContactRequest(); } @@ -954,16 +828,16 @@ public static com.google.cloud.essentialcontacts.v1.CreateContactRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateContactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateContactRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateContactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateContactRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -978,4 +852,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.CreateContactRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java similarity index 50% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java index 83bec6cb..2c951c66 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java @@ -1,102 +1,63 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface CreateContactRequestOrBuilder - extends +public interface CreateContactRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.CreateContactRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The resource to save this contact for.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The resource to save this contact for.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the contact field is set. */ boolean hasContact(); /** - * - * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The contact. */ com.google.cloud.essentialcontacts.v1.Contact getContact(); /** - * - * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder(); } diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java similarity index 66% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java index e2419df1..a2295f6e 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** - * - * *
  * Request message for the DeleteContact method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.DeleteContactRequest} */ -public final class DeleteContactRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class DeleteContactRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.DeleteContactRequest) DeleteContactRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use DeleteContactRequest.newBuilder() to construct. private DeleteContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteContactRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new DeleteContactRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private DeleteContactRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private DeleteContactRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private DeleteContactRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, - com.google.cloud.essentialcontacts.v1.DeleteContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, com.google.cloud.essentialcontacts.v1.DeleteContactRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the contact to delete.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the contact to delete.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -153,18 +127,17 @@ public java.lang.String getName() {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +146,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +157,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,15 +182,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.DeleteContactRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.DeleteContactRequest other = - (com.google.cloud.essentialcontacts.v1.DeleteContactRequest) obj; + com.google.cloud.essentialcontacts.v1.DeleteContactRequest other = (com.google.cloud.essentialcontacts.v1.DeleteContactRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,127 +210,117 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest prototype) { + public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.DeleteContactRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the DeleteContact method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.DeleteContactRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.DeleteContactRequest) com.google.cloud.essentialcontacts.v1.DeleteContactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, - com.google.cloud.essentialcontacts.v1.DeleteContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, com.google.cloud.essentialcontacts.v1.DeleteContactRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.DeleteContactRequest.newBuilder() @@ -365,15 +328,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; } @java.lang.Override @@ -404,8 +368,7 @@ public com.google.cloud.essentialcontacts.v1.DeleteContactRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.DeleteContactRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.DeleteContactRequest result = - new com.google.cloud.essentialcontacts.v1.DeleteContactRequest(this); + com.google.cloud.essentialcontacts.v1.DeleteContactRequest result = new com.google.cloud.essentialcontacts.v1.DeleteContactRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,39 +378,38 @@ public com.google.cloud.essentialcontacts.v1.DeleteContactRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.DeleteContactRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.DeleteContactRequest) other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.DeleteContactRequest)other); } else { super.mergeFrom(other); return this; @@ -455,8 +417,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.DeleteContactRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.DeleteContactRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.essentialcontacts.v1.DeleteContactRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,8 +441,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.essentialcontacts.v1.DeleteContactRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.essentialcontacts.v1.DeleteContactRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,8 +453,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -502,16 +460,14 @@ public Builder mergeFrom(
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,8 +476,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -529,17 +483,16 @@ public java.lang.String getName() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -556,25 +507,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -582,21 +529,16 @@ public Builder setName(java.lang.String value) {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -604,26 +546,24 @@ public Builder clearName() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +573,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.DeleteContactRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.DeleteContactRequest) private static final com.google.cloud.essentialcontacts.v1.DeleteContactRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.DeleteContactRequest(); } @@ -647,16 +587,16 @@ public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteContactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteContactRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteContactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteContactRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,4 +611,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.DeleteContactRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java new file mode 100644 index 00000000..8ace0cf0 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/essentialcontacts/v1/service.proto + +package com.google.cloud.essentialcontacts.v1; + +public interface DeleteContactRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.DeleteContactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the contact to delete.
+   * Format: organizations/{organization_id}/contacts/{contact_id},
+   * folders/{folder_id}/contacts/{contact_id} or
+   * projects/{project_id}/contacts/{contact_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the contact to delete.
+   * Format: organizations/{organization_id}/contacts/{contact_id},
+   * folders/{folder_id}/contacts/{contact_id} or
+   * projects/{project_id}/contacts/{contact_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java new file mode 100644 index 00000000..52914f08 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java @@ -0,0 +1,50 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/essentialcontacts/v1/enums.proto + +package com.google.cloud.essentialcontacts.v1; + +public final class EnumsProto { + private EnumsProto() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/essentialcontacts/v1/enum" + + "s.proto\022!google.cloud.essentialcontacts." + + "v1*\271\001\n\024NotificationCategory\022%\n!NOTIFICAT" + + "ION_CATEGORY_UNSPECIFIED\020\000\022\007\n\003ALL\020\002\022\016\n\nS" + + "USPENSION\020\003\022\014\n\010SECURITY\020\005\022\r\n\tTECHNICAL\020\006" + + "\022\013\n\007BILLING\020\007\022\t\n\005LEGAL\020\010\022\023\n\017PRODUCT_UPDA" + + "TES\020\t\022\027\n\023TECHNICAL_INCIDENTS\020\n*K\n\017Valida" + + "tionState\022 \n\034VALIDATION_STATE_UNSPECIFIE" + + "D\020\000\022\t\n\005VALID\020\001\022\013\n\007INVALID\020\002B\370\001\n%com.goog" + + "le.cloud.essentialcontacts.v1B\nEnumsProt" + + "oP\001ZRgoogle.golang.org/genproto/googleap" + + "is/cloud/essentialcontacts/v1;essentialc" + + "ontacts\252\002!Google.Cloud.EssentialContacts" + + ".V1\312\002!Google\\Cloud\\EssentialContacts\\V1\352" + + "\002$Google::Cloud::EssentialContacts::V1b\006" + + "proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java similarity index 100% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java similarity index 66% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java index cdfb63c5..765d1b1c 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** - * - * *
  * Request message for the GetContact method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.GetContactRequest} */ -public final class GetContactRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetContactRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.GetContactRequest) GetContactRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetContactRequest.newBuilder() to construct. private GetContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetContactRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetContactRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private GetContactRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private GetContactRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,33 +73,29 @@ private GetContactRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.GetContactRequest.class, - com.google.cloud.essentialcontacts.v1.GetContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.GetContactRequest.class, com.google.cloud.essentialcontacts.v1.GetContactRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * Required. The name of the contact to retrieve.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -125,10 +103,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ @java.lang.Override @@ -137,15 +112,14 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Required. The name of the contact to retrieve.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -153,18 +127,17 @@ public java.lang.String getName() {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -173,7 +146,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,7 +157,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -209,15 +182,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.GetContactRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.GetContactRequest other = - (com.google.cloud.essentialcontacts.v1.GetContactRequest) obj; + com.google.cloud.essentialcontacts.v1.GetContactRequest other = (com.google.cloud.essentialcontacts.v1.GetContactRequest) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -237,127 +210,117 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.essentialcontacts.v1.GetContactRequest prototype) { + public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.GetContactRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the GetContact method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.GetContactRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.GetContactRequest) com.google.cloud.essentialcontacts.v1.GetContactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.GetContactRequest.class, - com.google.cloud.essentialcontacts.v1.GetContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.GetContactRequest.class, com.google.cloud.essentialcontacts.v1.GetContactRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.GetContactRequest.newBuilder() @@ -365,15 +328,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -383,9 +347,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; } @java.lang.Override @@ -404,8 +368,7 @@ public com.google.cloud.essentialcontacts.v1.GetContactRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.GetContactRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.GetContactRequest result = - new com.google.cloud.essentialcontacts.v1.GetContactRequest(this); + com.google.cloud.essentialcontacts.v1.GetContactRequest result = new com.google.cloud.essentialcontacts.v1.GetContactRequest(this); result.name_ = name_; onBuilt(); return result; @@ -415,39 +378,38 @@ public com.google.cloud.essentialcontacts.v1.GetContactRequest buildPartial() { public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.GetContactRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.GetContactRequest) other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.GetContactRequest)other); } else { super.mergeFrom(other); return this; @@ -455,8 +417,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.GetContactRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.GetContactRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.essentialcontacts.v1.GetContactRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -480,8 +441,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.essentialcontacts.v1.GetContactRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.essentialcontacts.v1.GetContactRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -493,8 +453,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -502,16 +460,14 @@ public Builder mergeFrom(
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -520,8 +476,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -529,17 +483,16 @@ public java.lang.String getName() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -547,8 +500,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -556,25 +507,21 @@ public com.google.protobuf.ByteString getNameBytes() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -582,21 +529,16 @@ public Builder setName(java.lang.String value) {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -604,26 +546,24 @@ public Builder clearName() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -633,12 +573,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.GetContactRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.GetContactRequest) private static final com.google.cloud.essentialcontacts.v1.GetContactRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.GetContactRequest(); } @@ -647,16 +587,16 @@ public static com.google.cloud.essentialcontacts.v1.GetContactRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetContactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetContactRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetContactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetContactRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -671,4 +611,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.GetContactRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java new file mode 100644 index 00000000..081673e3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/essentialcontacts/v1/service.proto + +package com.google.cloud.essentialcontacts.v1; + +public interface GetContactRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.GetContactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Required. The name of the contact to retrieve.
+   * Format: organizations/{organization_id}/contacts/{contact_id},
+   * folders/{folder_id}/contacts/{contact_id} or
+   * projects/{project_id}/contacts/{contact_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The name. + */ + java.lang.String getName(); + /** + *
+   * Required. The name of the contact to retrieve.
+   * Format: organizations/{organization_id}/contacts/{contact_id},
+   * folders/{folder_id}/contacts/{contact_id} or
+   * projects/{project_id}/contacts/{contact_id}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); +} diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java similarity index 71% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java index d6d50041..5196c18c 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** - * - * *
  * Request message for the ListContacts method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ListContactsRequest} */ -public final class ListContactsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListContactsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.ListContactsRequest) ListContactsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListContactsRequest.newBuilder() to construct. private ListContactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListContactsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListContactsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListContactsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListContactsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListContactsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,43 +85,36 @@ private ListContactsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, - com.google.cloud.essentialcontacts.v1.ListContactsRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, com.google.cloud.essentialcontacts.v1.ListContactsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. The parent resource name.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -149,33 +123,31 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. The parent resource name.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -186,8 +158,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -196,7 +166,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -207,8 +176,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -217,7 +184,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -226,15 +192,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -243,15 +208,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -260,7 +226,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,7 +237,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -295,7 +261,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -308,17 +275,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.ListContactsRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.ListContactsRequest other = - (com.google.cloud.essentialcontacts.v1.ListContactsRequest) obj; + com.google.cloud.essentialcontacts.v1.ListContactsRequest other = (com.google.cloud.essentialcontacts.v1.ListContactsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -342,127 +311,117 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.essentialcontacts.v1.ListContactsRequest prototype) { + public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.ListContactsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the ListContacts method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ListContactsRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.ListContactsRequest) com.google.cloud.essentialcontacts.v1.ListContactsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, - com.google.cloud.essentialcontacts.v1.ListContactsRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, com.google.cloud.essentialcontacts.v1.ListContactsRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.ListContactsRequest.newBuilder() @@ -470,15 +429,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -492,9 +452,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; } @java.lang.Override @@ -513,8 +473,7 @@ public com.google.cloud.essentialcontacts.v1.ListContactsRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.ListContactsRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.ListContactsRequest result = - new com.google.cloud.essentialcontacts.v1.ListContactsRequest(this); + com.google.cloud.essentialcontacts.v1.ListContactsRequest result = new com.google.cloud.essentialcontacts.v1.ListContactsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -526,39 +485,38 @@ public com.google.cloud.essentialcontacts.v1.ListContactsRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.ListContactsRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.ListContactsRequest) other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.ListContactsRequest)other); } else { super.mergeFrom(other); return this; @@ -566,8 +524,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ListContactsRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.ListContactsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.essentialcontacts.v1.ListContactsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -598,8 +555,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.essentialcontacts.v1.ListContactsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.essentialcontacts.v1.ListContactsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -611,24 +567,20 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent resource name.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -637,25 +589,22 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent resource name.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -663,82 +612,67 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent resource name.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. The parent resource name.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. The parent resource name.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -747,7 +681,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -755,8 +688,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -765,19 +696,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -786,11 +714,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -798,8 +725,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -808,13 +733,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -823,8 +748,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -833,14 +756,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -848,8 +772,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -858,22 +780,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -882,18 +802,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -902,23 +819,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -928,12 +845,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.ListContactsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.ListContactsRequest) private static final com.google.cloud.essentialcontacts.v1.ListContactsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.ListContactsRequest(); } @@ -942,16 +859,16 @@ public static com.google.cloud.essentialcontacts.v1.ListContactsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListContactsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListContactsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContactsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListContactsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -966,4 +883,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.ListContactsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java index fb569d12..e83d817b 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java @@ -1,64 +1,37 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface ListContactsRequestOrBuilder - extends +public interface ListContactsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.ListContactsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent resource name.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. The parent resource name.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -67,14 +40,11 @@ public interface ListContactsRequestOrBuilder
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -83,13 +53,10 @@ public interface ListContactsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -98,8 +65,8 @@ public interface ListContactsRequestOrBuilder
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java similarity index 74% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java index 3b742b5e..c5754082 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** - * - * *
  * Response message for the ListContacts method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ListContactsResponse} */ -public final class ListContactsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListContactsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.ListContactsResponse) ListContactsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListContactsResponse.newBuilder() to construct. private ListContactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListContactsResponse() { contacts_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,15 +26,16 @@ private ListContactsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListContactsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListContactsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,32 +55,28 @@ private ListContactsResponse( case 0: done = true; break; - case 10: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contacts_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - contacts_.add( - input.readMessage( - com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry)); - break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contacts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + contacts_.add( + input.readMessage(com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry)); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + nextPageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -105,7 +84,8 @@ private ListContactsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { contacts_ = java.util.Collections.unmodifiableList(contacts_); @@ -114,27 +94,22 @@ private ListContactsResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, - com.google.cloud.essentialcontacts.v1.ListContactsResponse.Builder.class); + com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, com.google.cloud.essentialcontacts.v1.ListContactsResponse.Builder.class); } public static final int CONTACTS_FIELD_NUMBER = 1; private java.util.List contacts_; /** - * - * *
    * The contacts for the specified resource.
    * 
@@ -146,8 +121,6 @@ public java.util.List getContacts return contacts_; } /** - * - * *
    * The contacts for the specified resource.
    * 
@@ -155,13 +128,11 @@ public java.util.List getContacts * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ @java.lang.Override - public java.util.List + public java.util.List getContactsOrBuilderList() { return contacts_; } /** - * - * *
    * The contacts for the specified resource.
    * 
@@ -173,8 +144,6 @@ public int getContactsCount() { return contacts_.size(); } /** - * - * *
    * The contacts for the specified resource.
    * 
@@ -186,8 +155,6 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) { return contacts_.get(index); } /** - * - * *
    * The contacts for the specified resource.
    * 
@@ -195,15 +162,14 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) { * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ @java.lang.Override - public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index) { + public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder( + int index) { return contacts_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -212,7 +178,6 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -221,15 +186,14 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -238,15 +202,16 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -255,7 +220,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -267,7 +231,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < contacts_.size(); i++) { output.writeMessage(1, contacts_.get(i)); } @@ -284,7 +249,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < contacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contacts_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, contacts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -297,16 +263,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.ListContactsResponse)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.ListContactsResponse other = - (com.google.cloud.essentialcontacts.v1.ListContactsResponse) obj; + com.google.cloud.essentialcontacts.v1.ListContactsResponse other = (com.google.cloud.essentialcontacts.v1.ListContactsResponse) obj; - if (!getContactsList().equals(other.getContactsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getContactsList() + .equals(other.getContactsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,127 +297,117 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.essentialcontacts.v1.ListContactsResponse prototype) { + public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.ListContactsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Response message for the ListContacts method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ListContactsResponse} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.ListContactsResponse) com.google.cloud.essentialcontacts.v1.ListContactsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, - com.google.cloud.essentialcontacts.v1.ListContactsResponse.Builder.class); + com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, com.google.cloud.essentialcontacts.v1.ListContactsResponse.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.ListContactsResponse.newBuilder() @@ -458,17 +415,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getContactsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -484,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; } @java.lang.Override @@ -505,8 +462,7 @@ public com.google.cloud.essentialcontacts.v1.ListContactsResponse build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.ListContactsResponse buildPartial() { - com.google.cloud.essentialcontacts.v1.ListContactsResponse result = - new com.google.cloud.essentialcontacts.v1.ListContactsResponse(this); + com.google.cloud.essentialcontacts.v1.ListContactsResponse result = new com.google.cloud.essentialcontacts.v1.ListContactsResponse(this); int from_bitField0_ = bitField0_; if (contactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -526,39 +482,38 @@ public com.google.cloud.essentialcontacts.v1.ListContactsResponse buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.ListContactsResponse) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.ListContactsResponse) other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.ListContactsResponse)other); } else { super.mergeFrom(other); return this; @@ -566,8 +521,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ListContactsResponse other) { - if (other == com.google.cloud.essentialcontacts.v1.ListContactsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.essentialcontacts.v1.ListContactsResponse.getDefaultInstance()) return this; if (contactsBuilder_ == null) { if (!other.contacts_.isEmpty()) { if (contacts_.isEmpty()) { @@ -586,10 +540,9 @@ public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ListContactsRespo contactsBuilder_ = null; contacts_ = other.contacts_; bitField0_ = (bitField0_ & ~0x00000001); - contactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getContactsFieldBuilder() - : null; + contactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getContactsFieldBuilder() : null; } else { contactsBuilder_.addAllMessages(other.contacts_); } @@ -618,8 +571,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.essentialcontacts.v1.ListContactsResponse) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.essentialcontacts.v1.ListContactsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -628,29 +580,21 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.util.List contacts_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureContactsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - contacts_ = - new java.util.ArrayList(contacts_); + contacts_ = new java.util.ArrayList(contacts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, - com.google.cloud.essentialcontacts.v1.Contact.Builder, - com.google.cloud.essentialcontacts.v1.ContactOrBuilder> - contactsBuilder_; + com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> contactsBuilder_; /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -665,8 +609,6 @@ public java.util.List getContacts } } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -681,8 +623,6 @@ public int getContactsCount() { } } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -697,15 +637,14 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) { } } /** - * - * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public Builder setContacts(int index, com.google.cloud.essentialcontacts.v1.Contact value) { + public Builder setContacts( + int index, com.google.cloud.essentialcontacts.v1.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -719,8 +658,6 @@ public Builder setContacts(int index, com.google.cloud.essentialcontacts.v1.Cont return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -739,8 +676,6 @@ public Builder setContacts( return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -761,15 +696,14 @@ public Builder addContacts(com.google.cloud.essentialcontacts.v1.Contact value) return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public Builder addContacts(int index, com.google.cloud.essentialcontacts.v1.Contact value) { + public Builder addContacts( + int index, com.google.cloud.essentialcontacts.v1.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -783,8 +717,6 @@ public Builder addContacts(int index, com.google.cloud.essentialcontacts.v1.Cont return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -803,8 +735,6 @@ public Builder addContacts( return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -823,8 +753,6 @@ public Builder addContacts( return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -835,7 +763,8 @@ public Builder addAllContacts( java.lang.Iterable values) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contacts_); onChanged(); } else { contactsBuilder_.addAllMessages(values); @@ -843,8 +772,6 @@ public Builder addAllContacts( return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -862,8 +789,6 @@ public Builder clearContacts() { return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -881,44 +806,39 @@ public Builder removeContacts(int index) { return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactsBuilder(int index) { + public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactsBuilder( + int index) { return getContactsFieldBuilder().getBuilder(index); } /** - * - * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index) { + public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder( + int index) { if (contactsBuilder_ == null) { - return contacts_.get(index); - } else { + return contacts_.get(index); } else { return contactsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public java.util.List - getContactsOrBuilderList() { + public java.util.List + getContactsOrBuilderList() { if (contactsBuilder_ != null) { return contactsBuilder_.getMessageOrBuilderList(); } else { @@ -926,8 +846,6 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild } } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -935,48 +853,42 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder() { - return getContactsFieldBuilder() - .addBuilder(com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance()); + return getContactsFieldBuilder().addBuilder( + com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance()); } /** - * - * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(int index) { - return getContactsFieldBuilder() - .addBuilder(index, com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance()); + public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder( + int index) { + return getContactsFieldBuilder().addBuilder( + index, com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance()); } /** - * - * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public java.util.List - getContactsBuilderList() { + public java.util.List + getContactsBuilderList() { return getContactsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, - com.google.cloud.essentialcontacts.v1.Contact.Builder, - com.google.cloud.essentialcontacts.v1.ContactOrBuilder> + com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> getContactsFieldBuilder() { if (contactsBuilder_ == null) { - contactsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, - com.google.cloud.essentialcontacts.v1.Contact.Builder, - com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( - contacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( + contacts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); contacts_ = null; } return contactsBuilder_; @@ -984,8 +896,6 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder( private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -994,13 +904,13 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1009,8 +919,6 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1019,14 +927,15 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1034,8 +943,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1044,22 +951,20 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() {
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1068,18 +973,15 @@ public Builder setNextPageToken(java.lang.String value) {
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1088,23 +990,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1114,12 +1016,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.ListContactsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.ListContactsResponse) private static final com.google.cloud.essentialcontacts.v1.ListContactsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.ListContactsResponse(); } @@ -1128,16 +1030,16 @@ public static com.google.cloud.essentialcontacts.v1.ListContactsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListContactsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListContactsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContactsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListContactsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1152,4 +1054,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.ListContactsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java similarity index 73% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java index be9b0e65..ff691bf2 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface ListContactsResponseOrBuilder - extends +public interface ListContactsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.ListContactsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The contacts for the specified resource.
    * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - java.util.List getContactsList(); + java.util.List + getContactsList(); /** - * - * *
    * The contacts for the specified resource.
    * 
@@ -44,8 +25,6 @@ public interface ListContactsResponseOrBuilder */ com.google.cloud.essentialcontacts.v1.Contact getContacts(int index); /** - * - * *
    * The contacts for the specified resource.
    * 
@@ -54,30 +33,25 @@ public interface ListContactsResponseOrBuilder */ int getContactsCount(); /** - * - * *
    * The contacts for the specified resource.
    * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - java.util.List + java.util.List getContactsOrBuilderList(); /** - * - * *
    * The contacts for the specified resource.
    * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index); + com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder( + int index); /** - * - * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -86,13 +60,10 @@ public interface ListContactsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -101,8 +72,8 @@ public interface ListContactsResponseOrBuilder
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java similarity index 77% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java index ab1a48d9..6e8fdacb 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/enums.proto package com.google.cloud.essentialcontacts.v1; /** - * - * *
  * The notification categories that an essential contact can be subscribed to.
  * Each notification will be categorized by the sender into one of the following
@@ -30,10 +13,9 @@
  *
  * Protobuf enum {@code google.cloud.essentialcontacts.v1.NotificationCategory}
  */
-public enum NotificationCategory implements com.google.protobuf.ProtocolMessageEnum {
+public enum NotificationCategory
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * Notification category is unrecognized or unspecified.
    * 
@@ -42,8 +24,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE */ NOTIFICATION_CATEGORY_UNSPECIFIED(0), /** - * - * *
    * All notifications related to the resource, including notifications
    * pertaining to categories added in the future.
@@ -53,8 +33,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   ALL(2),
   /**
-   *
-   *
    * 
    * Notifications related to imminent account suspension.
    * 
@@ -63,8 +41,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE */ SUSPENSION(3), /** - * - * *
    * Notifications related to security/privacy incidents, notifications, and
    * vulnerabilities.
@@ -74,8 +50,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   SECURITY(5),
   /**
-   *
-   *
    * 
    * Notifications related to technical events and issues such as outages,
    * errors, or bugs.
@@ -85,8 +59,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   TECHNICAL(6),
   /**
-   *
-   *
    * 
    * Notifications related to billing and payments notifications, price updates,
    * errors, or credits.
@@ -96,8 +68,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   BILLING(7),
   /**
-   *
-   *
    * 
    * Notifications related to enforcement actions, regulatory compliance, or
    * government notices.
@@ -107,8 +77,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   LEGAL(8),
   /**
-   *
-   *
    * 
    * Notifications related to new versions, product terms updates, or
    * deprecations.
@@ -118,8 +86,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   PRODUCT_UPDATES(9),
   /**
-   *
-   *
    * 
    * Child category of TECHNICAL. If assigned, technical incident notifications
    * will go to these contacts instead of TECHNICAL.
@@ -132,8 +98,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
   ;
 
   /**
-   *
-   *
    * 
    * Notification category is unrecognized or unspecified.
    * 
@@ -142,8 +106,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE */ public static final int NOTIFICATION_CATEGORY_UNSPECIFIED_VALUE = 0; /** - * - * *
    * All notifications related to the resource, including notifications
    * pertaining to categories added in the future.
@@ -153,8 +115,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   public static final int ALL_VALUE = 2;
   /**
-   *
-   *
    * 
    * Notifications related to imminent account suspension.
    * 
@@ -163,8 +123,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE */ public static final int SUSPENSION_VALUE = 3; /** - * - * *
    * Notifications related to security/privacy incidents, notifications, and
    * vulnerabilities.
@@ -174,8 +132,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   public static final int SECURITY_VALUE = 5;
   /**
-   *
-   *
    * 
    * Notifications related to technical events and issues such as outages,
    * errors, or bugs.
@@ -185,8 +141,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   public static final int TECHNICAL_VALUE = 6;
   /**
-   *
-   *
    * 
    * Notifications related to billing and payments notifications, price updates,
    * errors, or credits.
@@ -196,8 +150,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   public static final int BILLING_VALUE = 7;
   /**
-   *
-   *
    * 
    * Notifications related to enforcement actions, regulatory compliance, or
    * government notices.
@@ -207,8 +159,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   public static final int LEGAL_VALUE = 8;
   /**
-   *
-   *
    * 
    * Notifications related to new versions, product terms updates, or
    * deprecations.
@@ -218,8 +168,6 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   public static final int PRODUCT_UPDATES_VALUE = 9;
   /**
-   *
-   *
    * 
    * Child category of TECHNICAL. If assigned, technical incident notifications
    * will go to these contacts instead of TECHNICAL.
@@ -229,6 +177,7 @@ public enum NotificationCategory implements com.google.protobuf.ProtocolMessageE
    */
   public static final int TECHNICAL_INCIDENTS_VALUE = 10;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -253,26 +202,16 @@ public static NotificationCategory valueOf(int value) {
    */
   public static NotificationCategory forNumber(int value) {
     switch (value) {
-      case 0:
-        return NOTIFICATION_CATEGORY_UNSPECIFIED;
-      case 2:
-        return ALL;
-      case 3:
-        return SUSPENSION;
-      case 5:
-        return SECURITY;
-      case 6:
-        return TECHNICAL;
-      case 7:
-        return BILLING;
-      case 8:
-        return LEGAL;
-      case 9:
-        return PRODUCT_UPDATES;
-      case 10:
-        return TECHNICAL_INCIDENTS;
-      default:
-        return null;
+      case 0: return NOTIFICATION_CATEGORY_UNSPECIFIED;
+      case 2: return ALL;
+      case 3: return SUSPENSION;
+      case 5: return SECURITY;
+      case 6: return TECHNICAL;
+      case 7: return BILLING;
+      case 8: return LEGAL;
+      case 9: return PRODUCT_UPDATES;
+      case 10: return TECHNICAL_INCIDENTS;
+      default: return null;
     }
   }
 
@@ -280,28 +219,28 @@ public static NotificationCategory forNumber(int value) {
       internalGetValueMap() {
     return internalValueMap;
   }
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      NotificationCategory> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public NotificationCategory findValueByNumber(int number) {
+            return NotificationCategory.forNumber(number);
+          }
+        };
 
-  private static final com.google.protobuf.Internal.EnumLiteMap
-      internalValueMap =
-          new com.google.protobuf.Internal.EnumLiteMap() {
-            public NotificationCategory findValueByNumber(int number) {
-              return NotificationCategory.forNumber(number);
-            }
-          };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
     return com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor().getEnumTypes().get(0);
   }
 
@@ -310,7 +249,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor
   public static NotificationCategory valueOf(
       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -326,3 +266,4 @@ private NotificationCategory(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.essentialcontacts.v1.NotificationCategory)
 }
+
diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java
similarity index 100%
rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java
rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java
diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java
similarity index 100%
rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java
rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java
diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java
similarity index 65%
rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java
rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java
index c99bfb2f..1ec937dc 100644
--- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java
+++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java
@@ -1,42 +1,24 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/essentialcontacts/v1/service.proto
 
 package com.google.cloud.essentialcontacts.v1;
 
 /**
- *
- *
  * 
  * Request message for the SendTestMessage method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.SendTestMessageRequest} */ -public final class SendTestMessageRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class SendTestMessageRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.SendTestMessageRequest) SendTestMessageRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use SendTestMessageRequest.newBuilder() to construct. private SendTestMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private SendTestMessageRequest() { contacts_ = com.google.protobuf.LazyStringArrayList.EMPTY; resource_ = ""; @@ -45,15 +27,16 @@ private SendTestMessageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new SendTestMessageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private SendTestMessageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,37 +56,34 @@ private SendTestMessageRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contacts_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - contacts_.add(s); - break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contacts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + contacts_.add(s); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 24: - { - int rawValue = input.readEnum(); + resource_ = s; + break; + } + case 24: { + int rawValue = input.readEnum(); - notificationCategory_ = rawValue; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + notificationCategory_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -111,7 +91,8 @@ private SendTestMessageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { contacts_ = contacts_.getUnmodifiableView(); @@ -120,27 +101,22 @@ private SendTestMessageRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.Builder.class); } public static final int CONTACTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList contacts_; /** - * - * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -148,18 +124,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the contacts. */ - public com.google.protobuf.ProtocolStringList getContactsList() { + public com.google.protobuf.ProtocolStringList + getContactsList() { return contacts_; } /** - * - * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -167,18 +139,13 @@ public com.google.protobuf.ProtocolStringList getContactsList() {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of contacts. */ public int getContactsCount() { return contacts_.size(); } /** - * - * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -186,10 +153,7 @@ public int getContactsCount() {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The contacts at the given index. */ @@ -197,8 +161,6 @@ public java.lang.String getContacts(int index) { return contacts_.get(index); } /** - * - * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -206,22 +168,18 @@ public java.lang.String getContacts(int index) {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the contacts at the given index. */ - public com.google.protobuf.ByteString getContactsBytes(int index) { + public com.google.protobuf.ByteString + getContactsBytes(int index) { return contacts_.getByteString(index); } public static final int RESOURCE_FIELD_NUMBER = 2; private volatile java.lang.Object resource_; /** - * - * *
    * Required. The name of the resource to send the test message for. All
    * contacts must either be set directly on this resource or inherited from
@@ -230,10 +188,7 @@ public com.google.protobuf.ByteString getContactsBytes(int index) {
    * projects/{project_id}
    * 
* - * - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ @java.lang.Override @@ -242,15 +197,14 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** - * - * *
    * Required. The name of the resource to send the test message for. All
    * contacts must either be set directly on this resource or inherited from
@@ -259,18 +213,17 @@ public java.lang.String getResource() {
    * projects/{project_id}
    * 
* - * - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -281,49 +234,33 @@ public com.google.protobuf.ByteString getResourceBytes() { public static final int NOTIFICATION_CATEGORY_FIELD_NUMBER = 3; private int notificationCategory_; /** - * - * *
    * Required. The notification category to send the test message for. All
    * contacts must be subscribed to this category.
    * 
* - * - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for notificationCategory. */ - @java.lang.Override - public int getNotificationCategoryValue() { + @java.lang.Override public int getNotificationCategoryValue() { return notificationCategory_; } /** - * - * *
    * Required. The notification category to send the test message for. All
    * contacts must be subscribed to this category.
    * 
* - * - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationCategory. */ - @java.lang.Override - public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategory() { + @java.lang.Override public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategory() { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.NotificationCategory result = - com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(notificationCategory_); - return result == null - ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED - : result; + com.google.cloud.essentialcontacts.v1.NotificationCategory result = com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(notificationCategory_); + return result == null ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -335,17 +272,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < contacts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contacts_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_); } - if (notificationCategory_ - != com.google.cloud.essentialcontacts.v1.NotificationCategory - .NOTIFICATION_CATEGORY_UNSPECIFIED - .getNumber()) { + if (notificationCategory_ != com.google.cloud.essentialcontacts.v1.NotificationCategory.NOTIFICATION_CATEGORY_UNSPECIFIED.getNumber()) { output.writeEnum(3, notificationCategory_); } unknownFields.writeTo(output); @@ -368,11 +303,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_); } - if (notificationCategory_ - != com.google.cloud.essentialcontacts.v1.NotificationCategory - .NOTIFICATION_CATEGORY_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, notificationCategory_); + if (notificationCategory_ != com.google.cloud.essentialcontacts.v1.NotificationCategory.NOTIFICATION_CATEGORY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, notificationCategory_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -382,16 +315,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.SendTestMessageRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest other = - (com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) obj; + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest other = (com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) obj; - if (!getContactsList().equals(other.getContactsList())) return false; - if (!getResource().equals(other.getResource())) return false; + if (!getContactsList() + .equals(other.getContactsList())) return false; + if (!getResource() + .equals(other.getResource())) return false; if (notificationCategory_ != other.notificationCategory_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -418,127 +352,117 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest prototype) { + public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the SendTestMessage method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.SendTestMessageRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.SendTestMessageRequest) com.google.cloud.essentialcontacts.v1.SendTestMessageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.newBuilder() @@ -546,15 +470,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -568,14 +493,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; } @java.lang.Override - public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest - getDefaultInstanceForType() { + public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest getDefaultInstanceForType() { return com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.getDefaultInstance(); } @@ -590,8 +514,7 @@ public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest result = - new com.google.cloud.essentialcontacts.v1.SendTestMessageRequest(this); + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest result = new com.google.cloud.essentialcontacts.v1.SendTestMessageRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { contacts_ = contacts_.getUnmodifiableView(); @@ -608,39 +531,38 @@ public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.SendTestMessageRequest)other); } else { super.mergeFrom(other); return this; @@ -648,9 +570,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest other) { - if (other - == com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.getDefaultInstance()) return this; if (!other.contacts_.isEmpty()) { if (contacts_.isEmpty()) { contacts_ = other.contacts_; @@ -687,8 +607,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -697,21 +616,16 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList contacts_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList contacts_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureContactsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { contacts_ = new com.google.protobuf.LazyStringArrayList(contacts_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -719,18 +633,14 @@ private void ensureContactsIsMutable() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the contacts. */ - public com.google.protobuf.ProtocolStringList getContactsList() { + public com.google.protobuf.ProtocolStringList + getContactsList() { return contacts_.getUnmodifiableView(); } /** - * - * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -738,18 +648,13 @@ public com.google.protobuf.ProtocolStringList getContactsList() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of contacts. */ public int getContactsCount() { return contacts_.size(); } /** - * - * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -757,10 +662,7 @@ public int getContactsCount() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The contacts at the given index. */ @@ -768,8 +670,6 @@ public java.lang.String getContacts(int index) { return contacts_.get(index); } /** - * - * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -777,19 +677,15 @@ public java.lang.String getContacts(int index) {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the contacts at the given index. */ - public com.google.protobuf.ByteString getContactsBytes(int index) { + public com.google.protobuf.ByteString + getContactsBytes(int index) { return contacts_.getByteString(index); } /** - * - * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -797,26 +693,22 @@ public com.google.protobuf.ByteString getContactsBytes(int index) {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index to set the value at. * @param value The contacts to set. * @return This builder for chaining. */ - public Builder setContacts(int index, java.lang.String value) { + public Builder setContacts( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContactsIsMutable(); + throw new NullPointerException(); + } + ensureContactsIsMutable(); contacts_.set(index, value); onChanged(); return this; } /** - * - * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -824,25 +716,21 @@ public Builder setContacts(int index, java.lang.String value) {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The contacts to add. * @return This builder for chaining. */ - public Builder addContacts(java.lang.String value) { + public Builder addContacts( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContactsIsMutable(); + throw new NullPointerException(); + } + ensureContactsIsMutable(); contacts_.add(value); onChanged(); return this; } /** - * - * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -850,22 +738,19 @@ public Builder addContacts(java.lang.String value) {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param values The contacts to add. * @return This builder for chaining. */ - public Builder addAllContacts(java.lang.Iterable values) { + public Builder addAllContacts( + java.lang.Iterable values) { ensureContactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contacts_); onChanged(); return this; } /** - * - * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -873,10 +758,7 @@ public Builder addAllContacts(java.lang.Iterable values) {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearContacts() { @@ -886,8 +768,6 @@ public Builder clearContacts() { return this; } /** - * - * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -895,18 +775,16 @@ public Builder clearContacts() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes of the contacts to add. * @return This builder for chaining. */ - public Builder addContactsBytes(com.google.protobuf.ByteString value) { + public Builder addContactsBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureContactsIsMutable(); contacts_.add(value); onChanged(); @@ -915,8 +793,6 @@ public Builder addContactsBytes(com.google.protobuf.ByteString value) { private java.lang.Object resource_ = ""; /** - * - * *
      * Required. The name of the resource to send the test message for. All
      * contacts must either be set directly on this resource or inherited from
@@ -925,16 +801,14 @@ public Builder addContactsBytes(com.google.protobuf.ByteString value) {
      * projects/{project_id}
      * 
* - * - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -943,8 +817,6 @@ public java.lang.String getResource() { } } /** - * - * *
      * Required. The name of the resource to send the test message for. All
      * contacts must either be set directly on this resource or inherited from
@@ -953,17 +825,16 @@ public java.lang.String getResource() {
      * projects/{project_id}
      * 
* - * - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - public com.google.protobuf.ByteString getResourceBytes() { + public com.google.protobuf.ByteString + getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); resource_ = b; return b; } else { @@ -971,8 +842,6 @@ public com.google.protobuf.ByteString getResourceBytes() { } } /** - * - * *
      * Required. The name of the resource to send the test message for. All
      * contacts must either be set directly on this resource or inherited from
@@ -981,25 +850,21 @@ public com.google.protobuf.ByteString getResourceBytes() {
      * projects/{project_id}
      * 
* - * - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource(java.lang.String value) { + public Builder setResource( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** - * - * *
      * Required. The name of the resource to send the test message for. All
      * contacts must either be set directly on this resource or inherited from
@@ -1008,21 +873,16 @@ public Builder setResource(java.lang.String value) {
      * projects/{project_id}
      * 
* - * - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** - * - * *
      * Required. The name of the resource to send the test message for. All
      * contacts must either be set directly on this resource or inherited from
@@ -1031,19 +891,17 @@ public Builder clearResource() {
      * projects/{project_id}
      * 
* - * - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { + public Builder setResourceBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -1051,115 +909,85 @@ public Builder setResourceBytes(com.google.protobuf.ByteString value) { private int notificationCategory_ = 0; /** - * - * *
      * Required. The notification category to send the test message for. All
      * contacts must be subscribed to this category.
      * 
* - * - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for notificationCategory. */ - @java.lang.Override - public int getNotificationCategoryValue() { + @java.lang.Override public int getNotificationCategoryValue() { return notificationCategory_; } /** - * - * *
      * Required. The notification category to send the test message for. All
      * contacts must be subscribed to this category.
      * 
* - * - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The enum numeric value on the wire for notificationCategory to set. * @return This builder for chaining. */ public Builder setNotificationCategoryValue(int value) { - + notificationCategory_ = value; onChanged(); return this; } /** - * - * *
      * Required. The notification category to send the test message for. All
      * contacts must be subscribed to this category.
      * 
* - * - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationCategory. */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategory() { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.NotificationCategory result = - com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(notificationCategory_); - return result == null - ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED - : result; + com.google.cloud.essentialcontacts.v1.NotificationCategory result = com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(notificationCategory_); + return result == null ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED : result; } /** - * - * *
      * Required. The notification category to send the test message for. All
      * contacts must be subscribed to this category.
      * 
* - * - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; * @param value The notificationCategory to set. * @return This builder for chaining. */ - public Builder setNotificationCategory( - com.google.cloud.essentialcontacts.v1.NotificationCategory value) { + public Builder setNotificationCategory(com.google.cloud.essentialcontacts.v1.NotificationCategory value) { if (value == null) { throw new NullPointerException(); } - + notificationCategory_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Required. The notification category to send the test message for. All
      * contacts must be subscribed to this category.
      * 
* - * - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; * @return This builder for chaining. */ public Builder clearNotificationCategory() { - + notificationCategory_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1169,13 +997,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.SendTestMessageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.SendTestMessageRequest) - private static final com.google.cloud.essentialcontacts.v1.SendTestMessageRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.essentialcontacts.v1.SendTestMessageRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.SendTestMessageRequest(); } @@ -1184,16 +1011,16 @@ public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendTestMessageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SendTestMessageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendTestMessageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SendTestMessageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1208,4 +1035,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java similarity index 60% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java index 02b73f21..e4dff759 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java @@ -1,31 +1,13 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface SendTestMessageRequestOrBuilder - extends +public interface SendTestMessageRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.SendTestMessageRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -33,16 +15,12 @@ public interface SendTestMessageRequestOrBuilder
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return A list containing the contacts. */ - java.util.List getContactsList(); + java.util.List + getContactsList(); /** - * - * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -50,16 +28,11 @@ public interface SendTestMessageRequestOrBuilder
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The count of contacts. */ int getContactsCount(); /** - * - * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -67,17 +40,12 @@ public interface SendTestMessageRequestOrBuilder
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the element to return. * @return The contacts at the given index. */ java.lang.String getContacts(int index); /** - * - * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -85,18 +53,14 @@ public interface SendTestMessageRequestOrBuilder
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param index The index of the value to return. * @return The bytes of the contacts at the given index. */ - com.google.protobuf.ByteString getContactsBytes(int index); + com.google.protobuf.ByteString + getContactsBytes(int index); /** - * - * *
    * Required. The name of the resource to send the test message for. All
    * contacts must either be set directly on this resource or inherited from
@@ -105,16 +69,11 @@ public interface SendTestMessageRequestOrBuilder
    * projects/{project_id}
    * 
* - * - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The resource. */ java.lang.String getResource(); /** - * - * *
    * Required. The name of the resource to send the test message for. All
    * contacts must either be set directly on this resource or inherited from
@@ -123,41 +82,29 @@ public interface SendTestMessageRequestOrBuilder
    * projects/{project_id}
    * 
* - * - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for resource. */ - com.google.protobuf.ByteString getResourceBytes(); + com.google.protobuf.ByteString + getResourceBytes(); /** - * - * *
    * Required. The notification category to send the test message for. All
    * contacts must be subscribed to this category.
    * 
* - * - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The enum numeric value on the wire for notificationCategory. */ int getNotificationCategoryValue(); /** - * - * *
    * Required. The notification category to send the test message for. All
    * contacts must be subscribed to this category.
    * 
* - * - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; * @return The notificationCategory. */ com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategory(); diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java new file mode 100644 index 00000000..e4240793 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java @@ -0,0 +1,281 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/essentialcontacts/v1/service.proto + +package com.google.cloud.essentialcontacts.v1; + +public final class Service { + private Service() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/essentialcontacts/v1/serv" + + "ice.proto\022!google.cloud.essentialcontact" + + "s.v1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + "-google/cloud/essentialcontacts/v1/enums" + + ".proto\032\033google/protobuf/empty.proto\032 goo" + + "gle/protobuf/field_mask.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\321\003\n\007Contact\022\014\n\004na" + + "me\030\001 \001(\t\022\r\n\005email\030\002 \001(\t\022d\n#notification_" + + "category_subscriptions\030\003 \003(\01627.google.cl" + + "oud.essentialcontacts.v1.NotificationCat" + + "egory\022\024\n\014language_tag\030\004 \001(\t\022L\n\020validatio" + + "n_state\030\010 \001(\01622.google.cloud.essentialco" + + "ntacts.v1.ValidationState\0221\n\rvalidate_ti" + + "me\030\t \001(\0132\032.google.protobuf.Timestamp:\253\001\352" + + "A\247\001\n(essentialcontacts.googleapis.com/Co" + + "ntact\022%projects/{project}/contacts/{cont" + + "act}\022#folders/{folder}/contacts/{contact" + + "}\022/organizations/{organization}/contacts" + + "/{contact}\"\210\001\n\023ListContactsRequest\022@\n\006pa" + + "rent\030\001 \001(\tB0\340A\002\372A*\022(essentialcontacts.go" + + "ogleapis.com/Contact\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"m\n\024ListCon" + + "tactsResponse\022<\n\010contacts\030\001 \003(\0132*.google" + + ".cloud.essentialcontacts.v1.Contact\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"S\n\021GetContactReques" + + "t\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(essentialcontac" + + "ts.googleapis.com/Contact\"V\n\024DeleteConta" + + "ctRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(essenti" + + "alcontacts.googleapis.com/Contact\"\232\001\n\024Cr" + + "eateContactRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(essentialcontacts.googleapis.com/Con" + + "tact\022@\n\007contact\030\002 \001(\0132*.google.cloud.ess" + + "entialcontacts.v1.ContactB\003\340A\002\"\216\001\n\024Updat" + + "eContactRequest\022@\n\007contact\030\002 \001(\0132*.googl" + + "e.cloud.essentialcontacts.v1.ContactB\003\340A" + + "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\001\"\345\001\n\026ComputeContactsReque" + + "st\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(essentialcon" + + "tacts.googleapis.com/Contact\022X\n\027notifica" + + "tion_categories\030\006 \003(\01627.google.cloud.ess" + + "entialcontacts.v1.NotificationCategory\022\026" + + "\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001" + + "(\tB\003\340A\001\"p\n\027ComputeContactsResponse\022<\n\010co" + + "ntacts\030\001 \003(\0132*.google.cloud.essentialcon" + + "tacts.v1.Contact\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\375\001\n\026SendTestMessageRequest\022B\n\010contacts" + + "\030\001 \003(\tB0\340A\002\372A*\n(essentialcontacts.google" + + "apis.com/Contact\022B\n\010resource\030\002 \001(\tB0\340A\002\372" + + "A*\022(essentialcontacts.googleapis.com/Con" + + "tact\022[\n\025notification_category\030\003 \001(\01627.go" + + "ogle.cloud.essentialcontacts.v1.Notifica" + + "tionCategoryB\003\340A\0022\313\017\n\030EssentialContactsS" + + "ervice\022\230\002\n\rCreateContact\0227.google.cloud." + + "essentialcontacts.v1.CreateContactReques" + + "t\032*.google.cloud.essentialcontacts.v1.Co" + + "ntact\"\241\001\202\323\344\223\002\211\001\" /v1/{parent=projects/*}" + + "/contacts:\007contactZ*\"\037/v1/{parent=folder" + + "s/*}/contacts:\007contactZ0\"%/v1/{parent=or" + + "ganizations/*}/contacts:\007contact\332A\016paren" + + "t,contact\022\265\002\n\rUpdateContact\0227.google.clo" + + "ud.essentialcontacts.v1.UpdateContactReq" + + "uest\032*.google.cloud.essentialcontacts.v1" + + ".Contact\"\276\001\202\323\344\223\002\241\0012(/v1/{contact.name=pr" + + "ojects/*/contacts/*}:\007contactZ22\'/v1/{co" + + "ntact.name=folders/*/contacts/*}:\007contac" + + "tZ82-/v1/{contact.name=organizations/*/c" + + "ontacts/*}:\007contact\332A\023contact,update_mas" + + "k\022\376\001\n\014ListContacts\0226.google.cloud.essent" + + "ialcontacts.v1.ListContactsRequest\0327.goo" + + "gle.cloud.essentialcontacts.v1.ListConta" + + "ctsResponse\"}\202\323\344\223\002n\022 /v1/{parent=project" + + "s/*}/contactsZ!\022\037/v1/{parent=folders/*}/" + + "contactsZ\'\022%/v1/{parent=organizations/*}" + + "/contacts\332A\006parent\022\353\001\n\nGetContact\0224.goog" + + "le.cloud.essentialcontacts.v1.GetContact" + + "Request\032*.google.cloud.essentialcontacts" + + ".v1.Contact\"{\202\323\344\223\002n\022 /v1/{name=projects/" + + "*/contacts/*}Z!\022\037/v1/{name=folders/*/con" + + "tacts/*}Z\'\022%/v1/{name=organizations/*/co" + + "ntacts/*}\332A\004name\022\335\001\n\rDeleteContact\0227.goo" + + "gle.cloud.essentialcontacts.v1.DeleteCon" + + "tactRequest\032\026.google.protobuf.Empty\"{\202\323\344" + + "\223\002n* /v1/{name=projects/*/contacts/*}Z!*" + + "\037/v1/{name=folders/*/contacts/*}Z\'*%/v1/" + + "{name=organizations/*/contacts/*}\332A\004name" + + "\022\230\002\n\017ComputeContacts\0229.google.cloud.esse" + + "ntialcontacts.v1.ComputeContactsRequest\032" + + ":.google.cloud.essentialcontacts.v1.Comp" + + "uteContactsResponse\"\215\001\202\323\344\223\002\206\001\022(/v1/{pare" + + "nt=projects/*}/contacts:computeZ)\022\'/v1/{" + + "parent=folders/*}/contacts:computeZ/\022-/v" + + "1/{parent=organizations/*}/contacts:comp" + + "ute\022\233\002\n\017SendTestMessage\0229.google.cloud.e" + + "ssentialcontacts.v1.SendTestMessageReque" + + "st\032\026.google.protobuf.Empty\"\264\001\202\323\344\223\002\255\001\"2/v" + + "1/{resource=projects/*}/contacts:sendTes" + + "tMessage:\001*Z6\"1/v1/{resource=folders/*}/" + + "contacts:sendTestMessage:\001*Z<\"7/v1/{reso" + + "urce=organizations/*}/contacts:sendTestM" + + "essage:\001*\032T\312A essentialcontacts.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\354\001\n%com.google.cloud.ess" + + "entialcontacts.v1P\001ZRgoogle.golang.org/g" + + "enproto/googleapis/cloud/essentialcontac" + + "ts/v1;essentialcontacts\252\002!Google.Cloud.E" + + "ssentialContacts.V1\312\002!Google\\Cloud\\Essen" + + "tialContacts\\V1\352\002$Google::Cloud::Essenti" + + "alContacts::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor, + new java.lang.String[] { "Name", "Email", "NotificationCategorySubscriptions", "LanguageTag", "ValidationState", "ValidateTime", }); + internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor, + new java.lang.String[] { "Contacts", "NextPageToken", }); + internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor, + new java.lang.String[] { "Name", }); + internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor, + new java.lang.String[] { "Parent", "Contact", }); + internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor, + new java.lang.String[] { "Contact", "UpdateMask", }); + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor, + new java.lang.String[] { "Parent", "NotificationCategories", "PageSize", "PageToken", }); + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor, + new java.lang.String[] { "Contacts", "NextPageToken", }); + internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor, + new java.lang.String[] { "Contacts", "Resource", "NotificationCategory", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java similarity index 66% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java index 168ec6da..a0a84d1b 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** - * - * *
  * Request message for the UpdateContact method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.UpdateContactRequest} */ -public final class UpdateContactRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class UpdateContactRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.UpdateContactRequest) UpdateContactRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use UpdateContactRequest.newBuilder() to construct. private UpdateContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private UpdateContactRequest() {} + private UpdateContactRequest() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new UpdateContactRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private UpdateContactRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,44 +52,39 @@ private UpdateContactRequest( case 0: done = true; break; - case 18: - { - com.google.cloud.essentialcontacts.v1.Contact.Builder subBuilder = null; - if (contact_ != null) { - subBuilder = contact_.toBuilder(); - } - contact_ = - input.readMessage( - com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contact_); - contact_ = subBuilder.buildPartial(); - } - - break; + case 18: { + com.google.cloud.essentialcontacts.v1.Contact.Builder subBuilder = null; + if (contact_ != null) { + subBuilder = contact_.toBuilder(); + } + contact_ = input.readMessage(com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(contact_); + contact_ = subBuilder.buildPartial(); } - case 26: - { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = - input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - break; + break; + } + case 26: { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -113,42 +92,35 @@ private UpdateContactRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, - com.google.cloud.essentialcontacts.v1.UpdateContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, com.google.cloud.essentialcontacts.v1.UpdateContactRequest.Builder.class); } public static final int CONTACT_FIELD_NUMBER = 2; private com.google.cloud.essentialcontacts.v1.Contact contact_; /** - * - * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the contact field is set. */ @java.lang.Override @@ -156,36 +128,25 @@ public boolean hasContact() { return contact_ != null; } /** - * - * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The contact. */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.Contact getContact() { - return contact_ == null - ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() - : contact_; + return contact_ == null ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; } /** - * - * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder() { @@ -195,17 +156,13 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** - * - * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ @java.lang.Override @@ -213,17 +170,13 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** - * - * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ @java.lang.Override @@ -231,16 +184,13 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** - * - * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -248,7 +198,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -260,7 +209,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (contact_ != null) { output.writeMessage(2, getContact()); } @@ -277,10 +227,12 @@ public int getSerializedSize() { size = 0; if (contact_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContact()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getContact()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -290,21 +242,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.UpdateContactRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.UpdateContactRequest other = - (com.google.cloud.essentialcontacts.v1.UpdateContactRequest) obj; + com.google.cloud.essentialcontacts.v1.UpdateContactRequest other = (com.google.cloud.essentialcontacts.v1.UpdateContactRequest) obj; if (hasContact() != other.hasContact()) return false; if (hasContact()) { - if (!getContact().equals(other.getContact())) return false; + if (!getContact() + .equals(other.getContact())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask().equals(other.getUpdateMask())) return false; + if (!getUpdateMask() + .equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -331,127 +284,117 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - + public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - - public static Builder newBuilder( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest prototype) { + public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.UpdateContactRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } - @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** - * - * *
    * Request message for the UpdateContact method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.UpdateContactRequest} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.UpdateContactRequest) com.google.cloud.essentialcontacts.v1.UpdateContactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, - com.google.cloud.essentialcontacts.v1.UpdateContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, com.google.cloud.essentialcontacts.v1.UpdateContactRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.UpdateContactRequest.newBuilder() @@ -459,15 +402,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -487,9 +431,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service - .internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; } @java.lang.Override @@ -508,8 +452,7 @@ public com.google.cloud.essentialcontacts.v1.UpdateContactRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.UpdateContactRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.UpdateContactRequest result = - new com.google.cloud.essentialcontacts.v1.UpdateContactRequest(this); + com.google.cloud.essentialcontacts.v1.UpdateContactRequest result = new com.google.cloud.essentialcontacts.v1.UpdateContactRequest(this); if (contactBuilder_ == null) { result.contact_ = contact_; } else { @@ -528,39 +471,38 @@ public com.google.cloud.essentialcontacts.v1.UpdateContactRequest buildPartial() public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.UpdateContactRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.UpdateContactRequest) other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.UpdateContactRequest)other); } else { super.mergeFrom(other); return this; @@ -568,8 +510,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.UpdateContactRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.UpdateContactRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.essentialcontacts.v1.UpdateContactRequest.getDefaultInstance()) return this; if (other.hasContact()) { mergeContact(other.getContact()); } @@ -595,8 +536,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.essentialcontacts.v1.UpdateContactRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.essentialcontacts.v1.UpdateContactRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,61 +548,42 @@ public Builder mergeFrom( private com.google.cloud.essentialcontacts.v1.Contact contact_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, - com.google.cloud.essentialcontacts.v1.Contact.Builder, - com.google.cloud.essentialcontacts.v1.ContactOrBuilder> - contactBuilder_; + com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> contactBuilder_; /** - * - * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the contact field is set. */ public boolean hasContact() { return contactBuilder_ != null || contact_ != null; } /** - * - * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The contact. */ public com.google.cloud.essentialcontacts.v1.Contact getContact() { if (contactBuilder_ == null) { - return contact_ == null - ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() - : contact_; + return contact_ == null ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; } else { return contactBuilder_.getMessage(); } } /** - * - * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setContact(com.google.cloud.essentialcontacts.v1.Contact value) { if (contactBuilder_ == null) { @@ -678,16 +599,12 @@ public Builder setContact(com.google.cloud.essentialcontacts.v1.Contact value) { return this; } /** - * - * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder setContact( com.google.cloud.essentialcontacts.v1.Contact.Builder builderForValue) { @@ -701,24 +618,18 @@ public Builder setContact( return this; } /** - * - * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder mergeContact(com.google.cloud.essentialcontacts.v1.Contact value) { if (contactBuilder_ == null) { if (contact_ != null) { contact_ = - com.google.cloud.essentialcontacts.v1.Contact.newBuilder(contact_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.essentialcontacts.v1.Contact.newBuilder(contact_).mergeFrom(value).buildPartial(); } else { contact_ = value; } @@ -730,16 +641,12 @@ public Builder mergeContact(com.google.cloud.essentialcontacts.v1.Contact value) return this; } /** - * - * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public Builder clearContact() { if (contactBuilder_ == null) { @@ -753,67 +660,51 @@ public Builder clearContact() { return this; } /** - * - * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactBuilder() { - + onChanged(); return getContactFieldBuilder().getBuilder(); } /** - * - * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder() { if (contactBuilder_ != null) { return contactBuilder_.getMessageOrBuilder(); } else { - return contact_ == null - ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() - : contact_; + return contact_ == null ? + com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; } } /** - * - * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, - com.google.cloud.essentialcontacts.v1.Contact.Builder, - com.google.cloud.essentialcontacts.v1.ContactOrBuilder> + com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> getContactFieldBuilder() { if (contactBuilder_ == null) { - contactBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, - com.google.cloud.essentialcontacts.v1.Contact.Builder, - com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( - getContact(), getParentForChildren(), isClean()); + contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( + getContact(), + getParentForChildren(), + isClean()); contact_ = null; } return contactBuilder_; @@ -821,61 +712,45 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilde private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - updateMaskBuilder_; + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; /** - * - * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** - * - * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** - * - * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -891,18 +766,16 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ - public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask( + com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -913,22 +786,19 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal return this; } /** - * - * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -940,16 +810,13 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** - * - * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -963,74 +830,61 @@ public Builder clearUpdateMask() { return this; } /** - * - * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** - * - * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; + return updateMask_ == null ? + com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } } /** - * - * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), getParentForChildren(), isClean()); + updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), + getParentForChildren(), + isClean()); updateMask_ = null; } return updateMaskBuilder_; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1040,12 +894,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.UpdateContactRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.UpdateContactRequest) private static final com.google.cloud.essentialcontacts.v1.UpdateContactRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.UpdateContactRequest(); } @@ -1054,16 +908,16 @@ public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateContactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateContactRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateContactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateContactRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1078,4 +932,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.UpdateContactRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java similarity index 63% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java index c378a7e1..7261b091 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java @@ -1,113 +1,72 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface UpdateContactRequestOrBuilder - extends +public interface UpdateContactRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.UpdateContactRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return Whether the contact field is set. */ boolean hasContact(); /** - * - * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; * @return The contact. */ com.google.cloud.essentialcontacts.v1.Contact getContact(); /** - * - * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; - * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; */ com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder(); /** - * - * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** - * - * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** - * - * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java similarity index 70% rename from proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java index b17553fa..893fd7a1 100644 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java +++ b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/enums.proto package com.google.cloud.essentialcontacts.v1; /** - * - * *
  * A contact's validation state indicates whether or not it is the correct
  * contact to be receiving notifications for a particular resource.
@@ -28,10 +11,9 @@
  *
  * Protobuf enum {@code google.cloud.essentialcontacts.v1.ValidationState}
  */
-public enum ValidationState implements com.google.protobuf.ProtocolMessageEnum {
+public enum ValidationState
+    implements com.google.protobuf.ProtocolMessageEnum {
   /**
-   *
-   *
    * 
    * The validation state is unknown or unspecified.
    * 
@@ -40,8 +22,6 @@ public enum ValidationState implements com.google.protobuf.ProtocolMessageEnum { */ VALIDATION_STATE_UNSPECIFIED(0), /** - * - * *
    * The contact is marked as valid. This is usually done manually by the
    * contact admin. All new contacts begin in the valid state.
@@ -51,8 +31,6 @@ public enum ValidationState implements com.google.protobuf.ProtocolMessageEnum {
    */
   VALID(1),
   /**
-   *
-   *
    * 
    * The contact is considered invalid. This may become the state if the
    * contact's email is found to be unreachable.
@@ -65,8 +43,6 @@ public enum ValidationState implements com.google.protobuf.ProtocolMessageEnum {
   ;
 
   /**
-   *
-   *
    * 
    * The validation state is unknown or unspecified.
    * 
@@ -75,8 +51,6 @@ public enum ValidationState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int VALIDATION_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * The contact is marked as valid. This is usually done manually by the
    * contact admin. All new contacts begin in the valid state.
@@ -86,8 +60,6 @@ public enum ValidationState implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int VALID_VALUE = 1;
   /**
-   *
-   *
    * 
    * The contact is considered invalid. This may become the state if the
    * contact's email is found to be unreachable.
@@ -97,6 +69,7 @@ public enum ValidationState implements com.google.protobuf.ProtocolMessageEnum {
    */
   public static final int INVALID_VALUE = 2;
 
+
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -121,49 +94,49 @@ public static ValidationState valueOf(int value) {
    */
   public static ValidationState forNumber(int value) {
     switch (value) {
-      case 0:
-        return VALIDATION_STATE_UNSPECIFIED;
-      case 1:
-        return VALID;
-      case 2:
-        return INVALID;
-      default:
-        return null;
+      case 0: return VALIDATION_STATE_UNSPECIFIED;
+      case 1: return VALID;
+      case 2: return INVALID;
+      default: return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap
+      internalGetValueMap() {
     return internalValueMap;
   }
-
-  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
-      new com.google.protobuf.Internal.EnumLiteMap() {
-        public ValidationState findValueByNumber(int number) {
-          return ValidationState.forNumber(number);
-        }
-      };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap<
+      ValidationState> internalValueMap =
+        new com.google.protobuf.Internal.EnumLiteMap() {
+          public ValidationState findValueByNumber(int number) {
+            return ValidationState.forNumber(number);
+          }
+        };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor
+      getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-
-  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
+  public final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptorForType() {
     return getDescriptor();
   }
-
-  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
+  public static final com.google.protobuf.Descriptors.EnumDescriptor
+      getDescriptor() {
     return com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final ValidationState[] VALUES = values();
 
-  public static ValidationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static ValidationState valueOf(
+      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException(
+        "EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -179,3 +152,4 @@ private ValidationState(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.essentialcontacts.v1.ValidationState)
 }
+
diff --git a/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/enums.proto b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/enums.proto
similarity index 100%
rename from proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/enums.proto
rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/enums.proto
diff --git a/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto
similarity index 100%
rename from proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto
rename to owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContacts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContacts.java
new file mode 100644
index 00000000..a6999732
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContacts.java
@@ -0,0 +1,55 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.essentialcontacts.v1.ComputeContactsRequest;
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.NotificationCategory;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+import java.util.ArrayList;
+
+public class AsyncComputeContacts {
+
+  public static void main(String[] args) throws Exception {
+    asyncComputeContacts();
+  }
+
+  public static void asyncComputeContacts() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      ComputeContactsRequest request =
+          ComputeContactsRequest.newBuilder()
+              .setParent(ProjectName.of("[PROJECT]").toString())
+              .addAllNotificationCategories(new ArrayList())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future =
+          essentialContactsServiceClient.computeContactsPagedCallable().futureCall(request);
+      // Do something.
+      for (Contact element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContactsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContactsPaged.java
new file mode 100644
index 00000000..9cbff70b
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContactsPaged.java
@@ -0,0 +1,63 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_paged_async]
+import com.google.cloud.essentialcontacts.v1.ComputeContactsRequest;
+import com.google.cloud.essentialcontacts.v1.ComputeContactsResponse;
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.NotificationCategory;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+import com.google.common.base.Strings;
+import java.util.ArrayList;
+
+public class AsyncComputeContactsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncComputeContactsPaged();
+  }
+
+  public static void asyncComputeContactsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      ComputeContactsRequest request =
+          ComputeContactsRequest.newBuilder()
+              .setParent(ProjectName.of("[PROJECT]").toString())
+              .addAllNotificationCategories(new ArrayList())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ComputeContactsResponse response =
+            essentialContactsServiceClient.computeContactsCallable().call(request);
+        for (Contact element : response.getContactsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/SyncComputeContacts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/SyncComputeContacts.java
new file mode 100644
index 00000000..3370b1e0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/SyncComputeContacts.java
@@ -0,0 +1,51 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_sync]
+import com.google.cloud.essentialcontacts.v1.ComputeContactsRequest;
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.NotificationCategory;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+import java.util.ArrayList;
+
+public class SyncComputeContacts {
+
+  public static void main(String[] args) throws Exception {
+    syncComputeContacts();
+  }
+
+  public static void syncComputeContacts() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      ComputeContactsRequest request =
+          ComputeContactsRequest.newBuilder()
+              .setParent(ProjectName.of("[PROJECT]").toString())
+              .addAllNotificationCategories(new ArrayList())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (Contact element : essentialContactsServiceClient.computeContacts(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_computecontacts_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java
new file mode 100644
index 00000000..caab616a
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider_sync]
+import com.google.api.gax.core.FixedCredentialsProvider;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings;
+import com.google.cloud.essentialcontacts.v1.myCredentials;
+
+public class SyncCreateSetCredentialsProvider {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider();
+  }
+
+  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.
+    EssentialContactsServiceSettings essentialContactsServiceSettings =
+        EssentialContactsServiceSettings.newBuilder()
+            .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+            .build();
+    EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create(essentialContactsServiceSettings);
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java
new file mode 100644
index 00000000..8dce5d59
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider1_sync]
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings;
+
+public class SyncCreateSetCredentialsProvider1 {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetCredentialsProvider1();
+  }
+
+  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.
+    EssentialContactsServiceSettings essentialContactsServiceSettings =
+        EssentialContactsServiceSettings.newBuilder()
+            .setTransportChannelProvider(
+                EssentialContactsServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+            .build();
+    EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create(essentialContactsServiceSettings);
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider1_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetEndpoint.java
new file mode 100644
index 00000000..05091ff9
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetEndpoint.java
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setendpoint_sync]
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings;
+import com.google.cloud.essentialcontacts.v1.myEndpoint;
+
+public class SyncCreateSetEndpoint {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateSetEndpoint();
+  }
+
+  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.
+    EssentialContactsServiceSettings essentialContactsServiceSettings =
+        EssentialContactsServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+    EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create(essentialContactsServiceSettings);
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setendpoint_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/AsyncCreateContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/AsyncCreateContact.java
new file mode 100644
index 00000000..43dd6f65
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/AsyncCreateContact.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.CreateContactRequest;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+
+public class AsyncCreateContact {
+
+  public static void main(String[] args) throws Exception {
+    asyncCreateContact();
+  }
+
+  public static void asyncCreateContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      CreateContactRequest request =
+          CreateContactRequest.newBuilder()
+              .setParent(ProjectName.of("[PROJECT]").toString())
+              .setContact(Contact.newBuilder().build())
+              .build();
+      ApiFuture future =
+          essentialContactsServiceClient.createContactCallable().futureCall(request);
+      // Do something.
+      Contact response = future.get();
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContact.java
new file mode 100644
index 00000000..c117c025
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContact.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.CreateContactRequest;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+
+public class SyncCreateContact {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateContact();
+  }
+
+  public static void syncCreateContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      CreateContactRequest request =
+          CreateContactRequest.newBuilder()
+              .setParent(ProjectName.of("[PROJECT]").toString())
+              .setContact(Contact.newBuilder().build())
+              .build();
+      Contact response = essentialContactsServiceClient.createContact(request);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java
new file mode 100644
index 00000000..f9d91f51
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_foldernamecontact_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.FolderName;
+
+public class SyncCreateContactFoldernameContact {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateContactFoldernameContact();
+  }
+
+  public static void syncCreateContactFoldernameContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      FolderName parent = FolderName.of("[FOLDER]");
+      Contact contact = Contact.newBuilder().build();
+      Contact response = essentialContactsServiceClient.createContact(parent, contact);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_foldernamecontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java
new file mode 100644
index 00000000..46126597
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_organizationnamecontact_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.OrganizationName;
+
+public class SyncCreateContactOrganizationnameContact {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateContactOrganizationnameContact();
+  }
+
+  public static void syncCreateContactOrganizationnameContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      Contact contact = Contact.newBuilder().build();
+      Contact response = essentialContactsServiceClient.createContact(parent, contact);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_organizationnamecontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java
new file mode 100644
index 00000000..5e1c4aab
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_projectnamecontact_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+
+public class SyncCreateContactProjectnameContact {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateContactProjectnameContact();
+  }
+
+  public static void syncCreateContactProjectnameContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      Contact contact = Contact.newBuilder().build();
+      Contact response = essentialContactsServiceClient.createContact(parent, contact);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_projectnamecontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java
new file mode 100644
index 00000000..1d6e08a7
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_stringcontact_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+
+public class SyncCreateContactStringContact {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateContactStringContact();
+  }
+
+  public static void syncCreateContactStringContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      String parent = ProjectName.of("[PROJECT]").toString();
+      Contact contact = Contact.newBuilder().build();
+      Contact response = essentialContactsServiceClient.createContact(parent, contact);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_stringcontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/AsyncDeleteContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/AsyncDeleteContact.java
new file mode 100644
index 00000000..a4a14638
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/AsyncDeleteContact.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.essentialcontacts.v1.ContactName;
+import com.google.cloud.essentialcontacts.v1.DeleteContactRequest;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.protobuf.Empty;
+
+public class AsyncDeleteContact {
+
+  public static void main(String[] args) throws Exception {
+    asyncDeleteContact();
+  }
+
+  public static void asyncDeleteContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      DeleteContactRequest request =
+          DeleteContactRequest.newBuilder()
+              .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString())
+              .build();
+      ApiFuture future =
+          essentialContactsServiceClient.deleteContactCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java
new file mode 100644
index 00000000..dcb7e7e9
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_sync]
+import com.google.cloud.essentialcontacts.v1.ContactName;
+import com.google.cloud.essentialcontacts.v1.DeleteContactRequest;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteContact {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteContact();
+  }
+
+  public static void syncDeleteContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      DeleteContactRequest request =
+          DeleteContactRequest.newBuilder()
+              .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString())
+              .build();
+      essentialContactsServiceClient.deleteContact(request);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java
new file mode 100644
index 00000000..1dd3515f
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_contactname_sync]
+import com.google.cloud.essentialcontacts.v1.ContactName;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteContactContactname {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteContactContactname();
+  }
+
+  public static void syncDeleteContactContactname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      ContactName name = ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]");
+      essentialContactsServiceClient.deleteContact(name);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_contactname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java
new file mode 100644
index 00000000..d1139565
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_string_sync]
+import com.google.cloud.essentialcontacts.v1.ContactName;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.protobuf.Empty;
+
+public class SyncDeleteContactString {
+
+  public static void main(String[] args) throws Exception {
+    syncDeleteContactString();
+  }
+
+  public static void syncDeleteContactString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      String name = ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString();
+      essentialContactsServiceClient.deleteContact(name);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/AsyncGetContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/AsyncGetContact.java
new file mode 100644
index 00000000..bd801b5b
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/AsyncGetContact.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.ContactName;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.GetContactRequest;
+
+public class AsyncGetContact {
+
+  public static void main(String[] args) throws Exception {
+    asyncGetContact();
+  }
+
+  public static void asyncGetContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      GetContactRequest request =
+          GetContactRequest.newBuilder()
+              .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString())
+              .build();
+      ApiFuture future =
+          essentialContactsServiceClient.getContactCallable().futureCall(request);
+      // Do something.
+      Contact response = future.get();
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContact.java
new file mode 100644
index 00000000..afc62f2c
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContact.java
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.ContactName;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.GetContactRequest;
+
+public class SyncGetContact {
+
+  public static void main(String[] args) throws Exception {
+    syncGetContact();
+  }
+
+  public static void syncGetContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      GetContactRequest request =
+          GetContactRequest.newBuilder()
+              .setName(ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString())
+              .build();
+      Contact response = essentialContactsServiceClient.getContact(request);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactContactname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactContactname.java
new file mode 100644
index 00000000..0b90828e
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactContactname.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_contactname_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.ContactName;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+
+public class SyncGetContactContactname {
+
+  public static void main(String[] args) throws Exception {
+    syncGetContactContactname();
+  }
+
+  public static void syncGetContactContactname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      ContactName name = ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]");
+      Contact response = essentialContactsServiceClient.getContact(name);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_contactname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactString.java
new file mode 100644
index 00000000..a0bac03b
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactString.java
@@ -0,0 +1,40 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_string_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.ContactName;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+
+public class SyncGetContactString {
+
+  public static void main(String[] args) throws Exception {
+    syncGetContactString();
+  }
+
+  public static void syncGetContactString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      String name = ContactName.ofProjectContactName("[PROJECT]", "[CONTACT]").toString();
+      Contact response = essentialContactsServiceClient.getContact(name);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_getcontact_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContacts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContacts.java
new file mode 100644
index 00000000..9d422ba3
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContacts.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.ListContactsRequest;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+
+public class AsyncListContacts {
+
+  public static void main(String[] args) throws Exception {
+    asyncListContacts();
+  }
+
+  public static void asyncListContacts() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      ListContactsRequest request =
+          ListContactsRequest.newBuilder()
+              .setParent(ProjectName.of("[PROJECT]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      ApiFuture future =
+          essentialContactsServiceClient.listContactsPagedCallable().futureCall(request);
+      // Do something.
+      for (Contact element : future.get().iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContactsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContactsPaged.java
new file mode 100644
index 00000000..96bd8003
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContactsPaged.java
@@ -0,0 +1,60 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_paged_async]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.ListContactsRequest;
+import com.google.cloud.essentialcontacts.v1.ListContactsResponse;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+import com.google.common.base.Strings;
+
+public class AsyncListContactsPaged {
+
+  public static void main(String[] args) throws Exception {
+    asyncListContactsPaged();
+  }
+
+  public static void asyncListContactsPaged() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      ListContactsRequest request =
+          ListContactsRequest.newBuilder()
+              .setParent(ProjectName.of("[PROJECT]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      while (true) {
+        ListContactsResponse response =
+            essentialContactsServiceClient.listContactsCallable().call(request);
+        for (Contact element : response.getContactsList()) {
+          // doThingsWith(element);
+        }
+        String nextPageToken = response.getNextPageToken();
+        if (!Strings.isNullOrEmpty(nextPageToken)) {
+          request = request.toBuilder().setPageToken(nextPageToken).build();
+        } else {
+          break;
+        }
+      }
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_paged_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContacts.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContacts.java
new file mode 100644
index 00000000..a885f025
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContacts.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.ListContactsRequest;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+
+public class SyncListContacts {
+
+  public static void main(String[] args) throws Exception {
+    syncListContacts();
+  }
+
+  public static void syncListContacts() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      ListContactsRequest request =
+          ListContactsRequest.newBuilder()
+              .setParent(ProjectName.of("[PROJECT]").toString())
+              .setPageSize(883849137)
+              .setPageToken("pageToken873572522")
+              .build();
+      for (Contact element : essentialContactsServiceClient.listContacts(request).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java
new file mode 100644
index 00000000..d254b248
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_foldername_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.FolderName;
+
+public class SyncListContactsFoldername {
+
+  public static void main(String[] args) throws Exception {
+    syncListContactsFoldername();
+  }
+
+  public static void syncListContactsFoldername() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      FolderName parent = FolderName.of("[FOLDER]");
+      for (Contact element : essentialContactsServiceClient.listContacts(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_foldername_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java
new file mode 100644
index 00000000..9b7145c8
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_organizationname_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.OrganizationName;
+
+public class SyncListContactsOrganizationname {
+
+  public static void main(String[] args) throws Exception {
+    syncListContactsOrganizationname();
+  }
+
+  public static void syncListContactsOrganizationname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      OrganizationName parent = OrganizationName.of("[ORGANIZATION]");
+      for (Contact element : essentialContactsServiceClient.listContacts(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_organizationname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java
new file mode 100644
index 00000000..0aa5a919
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_projectname_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+
+public class SyncListContactsProjectname {
+
+  public static void main(String[] args) throws Exception {
+    syncListContactsProjectname();
+  }
+
+  public static void syncListContactsProjectname() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      ProjectName parent = ProjectName.of("[PROJECT]");
+      for (Contact element : essentialContactsServiceClient.listContacts(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_projectname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsString.java
new file mode 100644
index 00000000..825c237e
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsString.java
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_string_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+
+public class SyncListContactsString {
+
+  public static void main(String[] args) throws Exception {
+    syncListContactsString();
+  }
+
+  public static void syncListContactsString() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      String parent = ProjectName.of("[PROJECT]").toString();
+      for (Contact element : essentialContactsServiceClient.listContacts(parent).iterateAll()) {
+        // doThingsWith(element);
+      }
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_string_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/AsyncSendTestMessage.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/AsyncSendTestMessage.java
new file mode 100644
index 00000000..7ba269a9
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/AsyncSendTestMessage.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_sendtestmessage_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.NotificationCategory;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+import com.google.cloud.essentialcontacts.v1.SendTestMessageRequest;
+import com.google.protobuf.Empty;
+import java.util.ArrayList;
+
+public class AsyncSendTestMessage {
+
+  public static void main(String[] args) throws Exception {
+    asyncSendTestMessage();
+  }
+
+  public static void asyncSendTestMessage() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      SendTestMessageRequest request =
+          SendTestMessageRequest.newBuilder()
+              .addAllContacts(new ArrayList())
+              .setResource(ProjectName.of("[PROJECT]").toString())
+              .setNotificationCategory(NotificationCategory.forNumber(0))
+              .build();
+      ApiFuture future =
+          essentialContactsServiceClient.sendTestMessageCallable().futureCall(request);
+      // Do something.
+      future.get();
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_sendtestmessage_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java
new file mode 100644
index 00000000..f9243b2e
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_sendtestmessage_sync]
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.NotificationCategory;
+import com.google.cloud.essentialcontacts.v1.ProjectName;
+import com.google.cloud.essentialcontacts.v1.SendTestMessageRequest;
+import com.google.protobuf.Empty;
+import java.util.ArrayList;
+
+public class SyncSendTestMessage {
+
+  public static void main(String[] args) throws Exception {
+    syncSendTestMessage();
+  }
+
+  public static void syncSendTestMessage() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      SendTestMessageRequest request =
+          SendTestMessageRequest.newBuilder()
+              .addAllContacts(new ArrayList())
+              .setResource(ProjectName.of("[PROJECT]").toString())
+              .setNotificationCategory(NotificationCategory.forNumber(0))
+              .build();
+      essentialContactsServiceClient.sendTestMessage(request);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_sendtestmessage_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/AsyncUpdateContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/AsyncUpdateContact.java
new file mode 100644
index 00000000..8617fff0
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/AsyncUpdateContact.java
@@ -0,0 +1,49 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_updatecontact_async]
+import com.google.api.core.ApiFuture;
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.UpdateContactRequest;
+import com.google.protobuf.FieldMask;
+
+public class AsyncUpdateContact {
+
+  public static void main(String[] args) throws Exception {
+    asyncUpdateContact();
+  }
+
+  public static void asyncUpdateContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      UpdateContactRequest request =
+          UpdateContactRequest.newBuilder()
+              .setContact(Contact.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      ApiFuture future =
+          essentialContactsServiceClient.updateContactCallable().futureCall(request);
+      // Do something.
+      Contact response = future.get();
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_updatecontact_async]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContact.java
new file mode 100644
index 00000000..d2102a09
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContact.java
@@ -0,0 +1,45 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_updatecontact_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.cloud.essentialcontacts.v1.UpdateContactRequest;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateContact {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateContact();
+  }
+
+  public static void syncUpdateContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      UpdateContactRequest request =
+          UpdateContactRequest.newBuilder()
+              .setContact(Contact.newBuilder().build())
+              .setUpdateMask(FieldMask.newBuilder().build())
+              .build();
+      Contact response = essentialContactsServiceClient.updateContact(request);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_updatecontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java
new file mode 100644
index 00000000..b80b4209
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_updatecontact_contactfieldmask_sync]
+import com.google.cloud.essentialcontacts.v1.Contact;
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
+import com.google.protobuf.FieldMask;
+
+public class SyncUpdateContactContactFieldmask {
+
+  public static void main(String[] args) throws Exception {
+    syncUpdateContactContactFieldmask();
+  }
+
+  public static void syncUpdateContactContactFieldmask() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    try (EssentialContactsServiceClient essentialContactsServiceClient =
+        EssentialContactsServiceClient.create()) {
+      Contact contact = Contact.newBuilder().build();
+      FieldMask updateMask = FieldMask.newBuilder().build();
+      Contact response = essentialContactsServiceClient.updateContact(contact, updateMask);
+    }
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_updatecontact_contactfieldmask_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservicesettings/createcontact/SyncCreateContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservicesettings/createcontact/SyncCreateContact.java
new file mode 100644
index 00000000..55e546db
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservicesettings/createcontact/SyncCreateContact.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsservicesettings_createcontact_sync]
+import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings;
+import java.time.Duration;
+
+public class SyncCreateContact {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateContact();
+  }
+
+  public static void syncCreateContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    EssentialContactsServiceSettings.Builder essentialContactsServiceSettingsBuilder =
+        EssentialContactsServiceSettings.newBuilder();
+    essentialContactsServiceSettingsBuilder
+        .createContactSettings()
+        .setRetrySettings(
+            essentialContactsServiceSettingsBuilder
+                .createContactSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    EssentialContactsServiceSettings essentialContactsServiceSettings =
+        essentialContactsServiceSettingsBuilder.build();
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsservicesettings_createcontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/stub/essentialcontactsservicestubsettings/createcontact/SyncCreateContact.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/stub/essentialcontactsservicestubsettings/createcontact/SyncCreateContact.java
new file mode 100644
index 00000000..41154f72
--- /dev/null
+++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/stub/essentialcontactsservicestubsettings/createcontact/SyncCreateContact.java
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package com.google.cloud.essentialcontacts.v1.stub.samples;
+
+// [START essentialcontacts_v1_generated_essentialcontactsservicestubsettings_createcontact_sync]
+import com.google.cloud.essentialcontacts.v1.stub.EssentialContactsServiceStubSettings;
+import java.time.Duration;
+
+public class SyncCreateContact {
+
+  public static void main(String[] args) throws Exception {
+    syncCreateContact();
+  }
+
+  public static void syncCreateContact() throws Exception {
+    // This snippet has been automatically generated for illustrative purposes only.
+    // It may require modifications to work in your environment.
+    EssentialContactsServiceStubSettings.Builder essentialContactsServiceSettingsBuilder =
+        EssentialContactsServiceStubSettings.newBuilder();
+    essentialContactsServiceSettingsBuilder
+        .createContactSettings()
+        .setRetrySettings(
+            essentialContactsServiceSettingsBuilder
+                .createContactSettings()
+                .getRetrySettings()
+                .toBuilder()
+                .setTotalTimeout(Duration.ofSeconds(30))
+                .build());
+    EssentialContactsServiceStubSettings essentialContactsServiceSettings =
+        essentialContactsServiceSettingsBuilder.build();
+  }
+}
+// [END essentialcontacts_v1_generated_essentialcontactsservicestubsettings_createcontact_sync]
diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java
deleted file mode 100644
index 1e0142ee..00000000
--- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright 2020 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// Generated by the protocol buffer compiler.  DO NOT EDIT!
-// source: google/cloud/essentialcontacts/v1/service.proto
-
-package com.google.cloud.essentialcontacts.v1;
-
-public interface DeleteContactRequestOrBuilder
-    extends
-    // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.DeleteContactRequest)
-    com.google.protobuf.MessageOrBuilder {
-
-  /**
-   *
-   *
-   * 
-   * Required. The name of the contact to delete.
-   * Format: organizations/{organization_id}/contacts/{contact_id},
-   * folders/{folder_id}/contacts/{contact_id} or
-   * projects/{project_id}/contacts/{contact_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the contact to delete.
-   * Format: organizations/{organization_id}/contacts/{contact_id},
-   * folders/{folder_id}/contacts/{contact_id} or
-   * projects/{project_id}/contacts/{contact_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java deleted file mode 100644 index b6e5f884..00000000 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/essentialcontacts/v1/enums.proto - -package com.google.cloud.essentialcontacts.v1; - -public final class EnumsProto { - private EnumsProto() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/essentialcontacts/v1/enum" - + "s.proto\022!google.cloud.essentialcontacts." - + "v1*\271\001\n\024NotificationCategory\022%\n!NOTIFICAT" - + "ION_CATEGORY_UNSPECIFIED\020\000\022\007\n\003ALL\020\002\022\016\n\nS" - + "USPENSION\020\003\022\014\n\010SECURITY\020\005\022\r\n\tTECHNICAL\020\006" - + "\022\013\n\007BILLING\020\007\022\t\n\005LEGAL\020\010\022\023\n\017PRODUCT_UPDA" - + "TES\020\t\022\027\n\023TECHNICAL_INCIDENTS\020\n*K\n\017Valida" - + "tionState\022 \n\034VALIDATION_STATE_UNSPECIFIE" - + "D\020\000\022\t\n\005VALID\020\001\022\013\n\007INVALID\020\002B\370\001\n%com.goog" - + "le.cloud.essentialcontacts.v1B\nEnumsProt" - + "oP\001ZRgoogle.golang.org/genproto/googleap" - + "is/cloud/essentialcontacts/v1;essentialc" - + "ontacts\252\002!Google.Cloud.EssentialContacts" - + ".V1\312\002!Google\\Cloud\\EssentialContacts\\V1\352" - + "\002$Google::Cloud::EssentialContacts::V1b\006" - + "proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java deleted file mode 100644 index 5d03d56a..00000000 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/essentialcontacts/v1/service.proto - -package com.google.cloud.essentialcontacts.v1; - -public interface GetContactRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.GetContactRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the contact to retrieve.
-   * Format: organizations/{organization_id}/contacts/{contact_id},
-   * folders/{folder_id}/contacts/{contact_id} or
-   * projects/{project_id}/contacts/{contact_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * Required. The name of the contact to retrieve.
-   * Format: organizations/{organization_id}/contacts/{contact_id},
-   * folders/{folder_id}/contacts/{contact_id} or
-   * projects/{project_id}/contacts/{contact_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java deleted file mode 100644 index 17ab0cce..00000000 --- a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java +++ /dev/null @@ -1,310 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/essentialcontacts/v1/service.proto - -package com.google.cloud.essentialcontacts.v1; - -public final class Service { - private Service() {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} - - public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); - } - - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n/google/cloud/essentialcontacts/v1/serv" - + "ice.proto\022!google.cloud.essentialcontact" - + "s.v1\032\034google/api/annotations.proto\032\027goog" - + "le/api/client.proto\032\037google/api/field_be" - + "havior.proto\032\031google/api/resource.proto\032" - + "-google/cloud/essentialcontacts/v1/enums" - + ".proto\032\033google/protobuf/empty.proto\032 goo" - + "gle/protobuf/field_mask.proto\032\037google/pr" - + "otobuf/timestamp.proto\"\321\003\n\007Contact\022\014\n\004na" - + "me\030\001 \001(\t\022\r\n\005email\030\002 \001(\t\022d\n#notification_" - + "category_subscriptions\030\003 \003(\01627.google.cl" - + "oud.essentialcontacts.v1.NotificationCat" - + "egory\022\024\n\014language_tag\030\004 \001(\t\022L\n\020validatio" - + "n_state\030\010 \001(\01622.google.cloud.essentialco" - + "ntacts.v1.ValidationState\0221\n\rvalidate_ti" - + "me\030\t \001(\0132\032.google.protobuf.Timestamp:\253\001\352" - + "A\247\001\n(essentialcontacts.googleapis.com/Co" - + "ntact\022%projects/{project}/contacts/{cont" - + "act}\022#folders/{folder}/contacts/{contact" - + "}\022/organizations/{organization}/contacts" - + "/{contact}\"\210\001\n\023ListContactsRequest\022@\n\006pa" - + "rent\030\001 \001(\tB0\340A\002\372A*\022(essentialcontacts.go" - + "ogleapis.com/Contact\022\026\n\tpage_size\030\002 \001(\005B" - + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"m\n\024ListCon" - + "tactsResponse\022<\n\010contacts\030\001 \003(\0132*.google" - + ".cloud.essentialcontacts.v1.Contact\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"S\n\021GetContactReques" - + "t\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(essentialcontac" - + "ts.googleapis.com/Contact\"V\n\024DeleteConta" - + "ctRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(essenti" - + "alcontacts.googleapis.com/Contact\"\232\001\n\024Cr" - + "eateContactRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372" - + "A*\022(essentialcontacts.googleapis.com/Con" - + "tact\022@\n\007contact\030\002 \001(\0132*.google.cloud.ess" - + "entialcontacts.v1.ContactB\003\340A\002\"\216\001\n\024Updat" - + "eContactRequest\022@\n\007contact\030\002 \001(\0132*.googl" - + "e.cloud.essentialcontacts.v1.ContactB\003\340A" - + "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" - + ".FieldMaskB\003\340A\001\"\345\001\n\026ComputeContactsReque" - + "st\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(essentialcon" - + "tacts.googleapis.com/Contact\022X\n\027notifica" - + "tion_categories\030\006 \003(\01627.google.cloud.ess" - + "entialcontacts.v1.NotificationCategory\022\026" - + "\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001" - + "(\tB\003\340A\001\"p\n\027ComputeContactsResponse\022<\n\010co" - + "ntacts\030\001 \003(\0132*.google.cloud.essentialcon" - + "tacts.v1.Contact\022\027\n\017next_page_token\030\002 \001(" - + "\t\"\375\001\n\026SendTestMessageRequest\022B\n\010contacts" - + "\030\001 \003(\tB0\340A\002\372A*\n(essentialcontacts.google" - + "apis.com/Contact\022B\n\010resource\030\002 \001(\tB0\340A\002\372" - + "A*\022(essentialcontacts.googleapis.com/Con" - + "tact\022[\n\025notification_category\030\003 \001(\01627.go" - + "ogle.cloud.essentialcontacts.v1.Notifica" - + "tionCategoryB\003\340A\0022\313\017\n\030EssentialContactsS" - + "ervice\022\230\002\n\rCreateContact\0227.google.cloud." - + "essentialcontacts.v1.CreateContactReques" - + "t\032*.google.cloud.essentialcontacts.v1.Co" - + "ntact\"\241\001\202\323\344\223\002\211\001\" /v1/{parent=projects/*}" - + "/contacts:\007contactZ*\"\037/v1/{parent=folder" - + "s/*}/contacts:\007contactZ0\"%/v1/{parent=or" - + "ganizations/*}/contacts:\007contact\332A\016paren" - + "t,contact\022\265\002\n\rUpdateContact\0227.google.clo" - + "ud.essentialcontacts.v1.UpdateContactReq" - + "uest\032*.google.cloud.essentialcontacts.v1" - + ".Contact\"\276\001\202\323\344\223\002\241\0012(/v1/{contact.name=pr" - + "ojects/*/contacts/*}:\007contactZ22\'/v1/{co" - + "ntact.name=folders/*/contacts/*}:\007contac" - + "tZ82-/v1/{contact.name=organizations/*/c" - + "ontacts/*}:\007contact\332A\023contact,update_mas" - + "k\022\376\001\n\014ListContacts\0226.google.cloud.essent" - + "ialcontacts.v1.ListContactsRequest\0327.goo" - + "gle.cloud.essentialcontacts.v1.ListConta" - + "ctsResponse\"}\202\323\344\223\002n\022 /v1/{parent=project" - + "s/*}/contactsZ!\022\037/v1/{parent=folders/*}/" - + "contactsZ\'\022%/v1/{parent=organizations/*}" - + "/contacts\332A\006parent\022\353\001\n\nGetContact\0224.goog" - + "le.cloud.essentialcontacts.v1.GetContact" - + "Request\032*.google.cloud.essentialcontacts" - + ".v1.Contact\"{\202\323\344\223\002n\022 /v1/{name=projects/" - + "*/contacts/*}Z!\022\037/v1/{name=folders/*/con" - + "tacts/*}Z\'\022%/v1/{name=organizations/*/co" - + "ntacts/*}\332A\004name\022\335\001\n\rDeleteContact\0227.goo" - + "gle.cloud.essentialcontacts.v1.DeleteCon" - + "tactRequest\032\026.google.protobuf.Empty\"{\202\323\344" - + "\223\002n* /v1/{name=projects/*/contacts/*}Z!*" - + "\037/v1/{name=folders/*/contacts/*}Z\'*%/v1/" - + "{name=organizations/*/contacts/*}\332A\004name" - + "\022\230\002\n\017ComputeContacts\0229.google.cloud.esse" - + "ntialcontacts.v1.ComputeContactsRequest\032" - + ":.google.cloud.essentialcontacts.v1.Comp" - + "uteContactsResponse\"\215\001\202\323\344\223\002\206\001\022(/v1/{pare" - + "nt=projects/*}/contacts:computeZ)\022\'/v1/{" - + "parent=folders/*}/contacts:computeZ/\022-/v" - + "1/{parent=organizations/*}/contacts:comp" - + "ute\022\233\002\n\017SendTestMessage\0229.google.cloud.e" - + "ssentialcontacts.v1.SendTestMessageReque" - + "st\032\026.google.protobuf.Empty\"\264\001\202\323\344\223\002\255\001\"2/v" - + "1/{resource=projects/*}/contacts:sendTes" - + "tMessage:\001*Z6\"1/v1/{resource=folders/*}/" - + "contacts:sendTestMessage:\001*Z<\"7/v1/{reso" - + "urce=organizations/*}/contacts:sendTestM" - + "essage:\001*\032T\312A essentialcontacts.googleap" - + "is.com\322A.https://www.googleapis.com/auth" - + "/cloud-platformB\354\001\n%com.google.cloud.ess" - + "entialcontacts.v1P\001ZRgoogle.golang.org/g" - + "enproto/googleapis/cloud/essentialcontac" - + "ts/v1;essentialcontacts\252\002!Google.Cloud.E" - + "ssentialContacts.V1\312\002!Google\\Cloud\\Essen" - + "tialContacts\\V1\352\002$Google::Cloud::Essenti" - + "alContacts::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor, - new java.lang.String[] { - "Name", - "Email", - "NotificationCategorySubscriptions", - "LanguageTag", - "ValidationState", - "ValidateTime", - }); - internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor, - new java.lang.String[] { - "Contacts", "NextPageToken", - }); - internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor, - new java.lang.String[] { - "Parent", "Contact", - }); - internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor, - new java.lang.String[] { - "Contact", "UpdateMask", - }); - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor, - new java.lang.String[] { - "Parent", "NotificationCategories", "PageSize", "PageToken", - }); - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor, - new java.lang.String[] { - "Contacts", "NextPageToken", - }); - internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor, - new java.lang.String[] { - "Contacts", "Resource", "NotificationCategory", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 1bcc97d11cd98fe4dbbb83f86b33f29c7628913b Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:39:04 +0000 Subject: [PATCH 2/6] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../v1/EssentialContactsServiceClient.java | 26 +- .../v1/EssentialContactsServiceSettings.java | 7 +- .../essentialcontacts/v1/gapic_metadata.json | 0 .../essentialcontacts/v1/package-info.java | 0 .../v1/stub/EssentialContactsServiceStub.java | 0 .../EssentialContactsServiceStubSettings.java | 6 +- ...sentialContactsServiceCallableFactory.java | 0 .../GrpcEssentialContactsServiceStub.java | 1 - ...sentialContactsServiceCallableFactory.java | 0 .../HttpJsonEssentialContactsServiceStub.java | 0 ...tialContactsServiceClientHttpJsonTest.java | 0 .../EssentialContactsServiceClientTest.java | 0 .../v1/MockEssentialContactsService.java | 0 .../v1/MockEssentialContactsServiceImpl.java | 0 .../v1/EssentialContactsServiceGrpc.java | 1093 +++++++++++++++++ .../v1/EssentialContactsServiceGrpc.java | 835 ------------- .../v1/DeleteContactRequestOrBuilder.java | 35 - .../essentialcontacts/v1/EnumsProto.java | 50 - .../v1/GetContactRequestOrBuilder.java | 35 - .../cloud/essentialcontacts/v1/Service.java | 281 ----- .../v1/ComputeContactsRequest.java | 684 +++++++---- .../v1/ComputeContactsRequestOrBuilder.java | 88 +- .../v1/ComputeContactsResponse.java | 472 ++++--- .../v1/ComputeContactsResponseOrBuilder.java | 45 +- .../cloud/essentialcontacts/v1/Contact.java | 883 ++++++++----- .../essentialcontacts/v1/ContactName.java | 0 .../v1/ContactOrBuilder.java | 109 +- .../v1/CreateContactRequest.java | 488 +++++--- .../v1/CreateContactRequestOrBuilder.java | 55 +- .../v1/DeleteContactRequest.java | 342 +++--- .../v1/DeleteContactRequestOrBuilder.java | 60 + .../essentialcontacts/v1/EnumsProto.java | 61 + .../essentialcontacts/v1/FolderName.java | 0 .../v1/GetContactRequest.java | 342 +++--- .../v1/GetContactRequestOrBuilder.java | 60 + .../v1/ListContactsRequest.java | 455 ++++--- .../v1/ListContactsRequestOrBuilder.java | 47 +- .../v1/ListContactsResponse.java | 464 ++++--- .../v1/ListContactsResponseOrBuilder.java | 45 +- .../v1/NotificationCategory.java | 117 +- .../v1/OrganizationName.java | 0 .../essentialcontacts/v1/ProjectName.java | 0 .../v1/SendTestMessageRequest.java | 617 ++++++---- .../v1/SendTestMessageRequestOrBuilder.java | 83 +- .../cloud/essentialcontacts/v1/Service.java | 310 +++++ .../v1/UpdateContactRequest.java | 516 +++++--- .../v1/UpdateContactRequestOrBuilder.java | 55 +- .../essentialcontacts/v1/ValidationState.java | 82 +- .../cloud/essentialcontacts/v1/enums.proto | 0 .../cloud/essentialcontacts/v1/service.proto | 0 .../computecontacts/AsyncComputeContacts.java | 0 .../AsyncComputeContactsPaged.java | 0 .../computecontacts/SyncComputeContacts.java | 0 .../SyncCreateSetCredentialsProvider.java | 6 +- .../SyncCreateSetCredentialsProvider1.java | 6 +- .../create/SyncCreateSetEndpoint.java | 0 .../createcontact/AsyncCreateContact.java | 0 .../createcontact/SyncCreateContact.java | 0 .../SyncCreateContactFoldernameContact.java | 6 +- ...cCreateContactOrganizationnameContact.java | 6 +- .../SyncCreateContactProjectnameContact.java | 6 +- .../SyncCreateContactStringContact.java | 6 +- .../deletecontact/AsyncDeleteContact.java | 0 .../deletecontact/SyncDeleteContact.java | 1 - .../SyncDeleteContactContactname.java | 7 +- .../SyncDeleteContactString.java | 1 - .../getcontact/AsyncGetContact.java | 0 .../getcontact/SyncGetContact.java | 0 .../getcontact/SyncGetContactContactname.java | 0 .../getcontact/SyncGetContactString.java | 0 .../listcontacts/AsyncListContacts.java | 0 .../listcontacts/AsyncListContactsPaged.java | 0 .../listcontacts/SyncListContacts.java | 0 .../SyncListContactsFoldername.java | 3 +- .../SyncListContactsOrganizationname.java | 6 +- .../SyncListContactsProjectname.java | 3 +- .../listcontacts/SyncListContactsString.java | 0 .../sendtestmessage/AsyncSendTestMessage.java | 0 .../sendtestmessage/SyncSendTestMessage.java | 1 - .../updatecontact/AsyncUpdateContact.java | 0 .../updatecontact/SyncUpdateContact.java | 0 .../SyncUpdateContactContactFieldmask.java | 6 +- .../createcontact/SyncCreateContact.java | 0 .../createcontact/SyncCreateContact.java | 0 84 files changed, 5500 insertions(+), 3413 deletions(-) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java (98%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsService.java (100%) rename {owl-bot-staging/v1/google-cloud-essential-contacts => google-cloud-essential-contacts}/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsServiceImpl.java (100%) create mode 100644 grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java delete mode 100644 owl-bot-staging/v1/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java (50%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java (66%) create mode 100644 proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java create mode 100644 proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java (66%) create mode 100644 proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java (60%) create mode 100644 proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java (63%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/proto/google/cloud/essentialcontacts/v1/enums.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1 => proto-google-cloud-essential-contacts-v1}/src/main/proto/google/cloud/essentialcontacts/v1/service.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContacts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContactsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/SyncComputeContacts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java (88%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/AsyncCreateContact.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContact.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/AsyncDeleteContact.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java (85%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java (97%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/AsyncGetContact.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContact.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactContactname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContacts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContactsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContacts.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java (93%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java (93%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/AsyncSendTestMessage.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java (98%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/AsyncUpdateContact.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContact.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java (87%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservicesettings/createcontact/SyncCreateContact.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/essentialcontacts/v1/stub/essentialcontactsservicestubsettings/createcontact/SyncCreateContact.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java rename to google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java index 2f887edf..834b4f5b 100644 --- a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java +++ b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClient.java @@ -60,13 +60,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -1051,7 +1051,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListContactsPagedResponse extends AbstractPagedListResponse< - ListContactsRequest, ListContactsResponse, Contact, ListContactsPage, + ListContactsRequest, + ListContactsResponse, + Contact, + ListContactsPage, ListContactsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1100,7 +1103,10 @@ public ApiFuture createPageAsync( public static class ListContactsFixedSizeCollection extends AbstractFixedSizeCollection< - ListContactsRequest, ListContactsResponse, Contact, ListContactsPage, + ListContactsRequest, + ListContactsResponse, + Contact, + ListContactsPage, ListContactsFixedSizeCollection> { private ListContactsFixedSizeCollection(List pages, int collectionSize) { @@ -1120,7 +1126,10 @@ protected ListContactsFixedSizeCollection createCollection( public static class ComputeContactsPagedResponse extends AbstractPagedListResponse< - ComputeContactsRequest, ComputeContactsResponse, Contact, ComputeContactsPage, + ComputeContactsRequest, + ComputeContactsResponse, + Contact, + ComputeContactsPage, ComputeContactsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1170,7 +1179,10 @@ public ApiFuture createPageAsync( public static class ComputeContactsFixedSizeCollection extends AbstractFixedSizeCollection< - ComputeContactsRequest, ComputeContactsResponse, Contact, ComputeContactsPage, + ComputeContactsRequest, + ComputeContactsResponse, + Contact, + ComputeContactsPage, ComputeContactsFixedSizeCollection> { private ComputeContactsFixedSizeCollection( diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java rename to google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java index 04d0f751..3df497eb 100644 --- a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java +++ b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java @@ -29,7 +29,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.essentialcontacts.v1.stub.EssentialContactsServiceStubSettings; @@ -45,10 +44,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (essentialcontacts.googleapis.com) and default port (443) are + *
  • The default service address (essentialcontacts.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/gapic_metadata.json b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/gapic_metadata.json rename to google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java rename to google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStub.java b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStub.java rename to google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java rename to google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java index 9b02da8b..b18b95a3 100644 --- a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java +++ b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/EssentialContactsServiceStubSettings.java @@ -71,10 +71,10 @@ *

The default instance has everything set to sensible defaults: * *

    - *
  • The default service address (essentialcontacts.googleapis.com) and default port (443) are + *
  • The default service address (essentialcontacts.googleapis.com) and default port (443) are * used. - *
  • Credentials are acquired automatically through Application Default Credentials. - *
  • Retries are configured for idempotent methods but not for non-idempotent methods. + *
  • Credentials are acquired automatically through Application Default Credentials. + *
  • Retries are configured for idempotent methods but not for non-idempotent methods. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceCallableFactory.java b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceCallableFactory.java rename to google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java rename to google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java index 78be5fdb..dfc416c5 100644 --- a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java +++ b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/GrpcEssentialContactsServiceStub.java @@ -41,7 +41,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceCallableFactory.java b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceCallableFactory.java rename to google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceStub.java b/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceStub.java rename to google-cloud-essential-contacts/src/main/java/com/google/cloud/essentialcontacts/v1/stub/HttpJsonEssentialContactsServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientHttpJsonTest.java b/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientHttpJsonTest.java rename to google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientTest.java b/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientTest.java rename to google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsService.java b/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsService.java rename to google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsService.java diff --git a/owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsServiceImpl.java b/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsServiceImpl.java rename to google-cloud-essential-contacts/src/test/java/com/google/cloud/essentialcontacts/v1/MockEssentialContactsServiceImpl.java diff --git a/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java b/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java new file mode 100644 index 00000000..6306545a --- /dev/null +++ b/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java @@ -0,0 +1,1093 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.essentialcontacts.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *

+ * Manages contacts for important Google Cloud notifications.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/essentialcontacts/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class EssentialContactsServiceGrpc { + + private EssentialContactsServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.essentialcontacts.v1.EssentialContactsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.CreateContactRequest, + com.google.cloud.essentialcontacts.v1.Contact> + getCreateContactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateContact", + requestType = com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, + responseType = com.google.cloud.essentialcontacts.v1.Contact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.CreateContactRequest, + com.google.cloud.essentialcontacts.v1.Contact> + getCreateContactMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.CreateContactRequest, + com.google.cloud.essentialcontacts.v1.Contact> + getCreateContactMethod; + if ((getCreateContactMethod = EssentialContactsServiceGrpc.getCreateContactMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getCreateContactMethod = EssentialContactsServiceGrpc.getCreateContactMethod) + == null) { + EssentialContactsServiceGrpc.getCreateContactMethod = + getCreateContactMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateContact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.CreateContactRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) + .setSchemaDescriptor( + new EssentialContactsServiceMethodDescriptorSupplier("CreateContact")) + .build(); + } + } + } + return getCreateContactMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.UpdateContactRequest, + com.google.cloud.essentialcontacts.v1.Contact> + getUpdateContactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateContact", + requestType = com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, + responseType = com.google.cloud.essentialcontacts.v1.Contact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.UpdateContactRequest, + com.google.cloud.essentialcontacts.v1.Contact> + getUpdateContactMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.UpdateContactRequest, + com.google.cloud.essentialcontacts.v1.Contact> + getUpdateContactMethod; + if ((getUpdateContactMethod = EssentialContactsServiceGrpc.getUpdateContactMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getUpdateContactMethod = EssentialContactsServiceGrpc.getUpdateContactMethod) + == null) { + EssentialContactsServiceGrpc.getUpdateContactMethod = + getUpdateContactMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateContact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.UpdateContactRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) + .setSchemaDescriptor( + new EssentialContactsServiceMethodDescriptorSupplier("UpdateContact")) + .build(); + } + } + } + return getUpdateContactMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.ListContactsRequest, + com.google.cloud.essentialcontacts.v1.ListContactsResponse> + getListContactsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListContacts", + requestType = com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, + responseType = com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.ListContactsRequest, + com.google.cloud.essentialcontacts.v1.ListContactsResponse> + getListContactsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.ListContactsRequest, + com.google.cloud.essentialcontacts.v1.ListContactsResponse> + getListContactsMethod; + if ((getListContactsMethod = EssentialContactsServiceGrpc.getListContactsMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getListContactsMethod = EssentialContactsServiceGrpc.getListContactsMethod) == null) { + EssentialContactsServiceGrpc.getListContactsMethod = + getListContactsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContacts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.ListContactsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.ListContactsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EssentialContactsServiceMethodDescriptorSupplier("ListContacts")) + .build(); + } + } + } + return getListContactsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.GetContactRequest, + com.google.cloud.essentialcontacts.v1.Contact> + getGetContactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetContact", + requestType = com.google.cloud.essentialcontacts.v1.GetContactRequest.class, + responseType = com.google.cloud.essentialcontacts.v1.Contact.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.GetContactRequest, + com.google.cloud.essentialcontacts.v1.Contact> + getGetContactMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.GetContactRequest, + com.google.cloud.essentialcontacts.v1.Contact> + getGetContactMethod; + if ((getGetContactMethod = EssentialContactsServiceGrpc.getGetContactMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getGetContactMethod = EssentialContactsServiceGrpc.getGetContactMethod) == null) { + EssentialContactsServiceGrpc.getGetContactMethod = + getGetContactMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.GetContactRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) + .setSchemaDescriptor( + new EssentialContactsServiceMethodDescriptorSupplier("GetContact")) + .build(); + } + } + } + return getGetContactMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.DeleteContactRequest, com.google.protobuf.Empty> + getDeleteContactMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteContact", + requestType = com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.DeleteContactRequest, com.google.protobuf.Empty> + getDeleteContactMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.DeleteContactRequest, com.google.protobuf.Empty> + getDeleteContactMethod; + if ((getDeleteContactMethod = EssentialContactsServiceGrpc.getDeleteContactMethod) == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getDeleteContactMethod = EssentialContactsServiceGrpc.getDeleteContactMethod) + == null) { + EssentialContactsServiceGrpc.getDeleteContactMethod = + getDeleteContactMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteContact")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.DeleteContactRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new EssentialContactsServiceMethodDescriptorSupplier("DeleteContact")) + .build(); + } + } + } + return getDeleteContactMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest, + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse> + getComputeContactsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ComputeContacts", + requestType = com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, + responseType = com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest, + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse> + getComputeContactsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest, + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse> + getComputeContactsMethod; + if ((getComputeContactsMethod = EssentialContactsServiceGrpc.getComputeContactsMethod) + == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getComputeContactsMethod = EssentialContactsServiceGrpc.getComputeContactsMethod) + == null) { + EssentialContactsServiceGrpc.getComputeContactsMethod = + getComputeContactsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeContacts")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EssentialContactsServiceMethodDescriptorSupplier("ComputeContacts")) + .build(); + } + } + } + return getComputeContactsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest, com.google.protobuf.Empty> + getSendTestMessageMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SendTestMessage", + requestType = com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest, com.google.protobuf.Empty> + getSendTestMessageMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest, com.google.protobuf.Empty> + getSendTestMessageMethod; + if ((getSendTestMessageMethod = EssentialContactsServiceGrpc.getSendTestMessageMethod) + == null) { + synchronized (EssentialContactsServiceGrpc.class) { + if ((getSendTestMessageMethod = EssentialContactsServiceGrpc.getSendTestMessageMethod) + == null) { + EssentialContactsServiceGrpc.getSendTestMessageMethod = + getSendTestMessageMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTestMessage")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new EssentialContactsServiceMethodDescriptorSupplier("SendTestMessage")) + .build(); + } + } + } + return getSendTestMessageMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static EssentialContactsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EssentialContactsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceStub(channel, callOptions); + } + }; + return EssentialContactsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static EssentialContactsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EssentialContactsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceBlockingStub(channel, callOptions); + } + }; + return EssentialContactsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static EssentialContactsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public EssentialContactsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceFutureStub(channel, callOptions); + } + }; + return EssentialContactsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Manages contacts for important Google Cloud notifications.
+   * 
+ */ + public abstract static class EssentialContactsServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Adds a new contact for a resource.
+     * 
+ */ + public void createContact( + com.google.cloud.essentialcontacts.v1.CreateContactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateContactMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a contact.
+     * Note: A contact's email address cannot be changed.
+     * 
+ */ + public void updateContact( + com.google.cloud.essentialcontacts.v1.UpdateContactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateContactMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists the contacts that have been set on a resource.
+     * 
+ */ + public void listContacts( + com.google.cloud.essentialcontacts.v1.ListContactsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListContactsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a single contact.
+     * 
+ */ + public void getContact( + com.google.cloud.essentialcontacts.v1.GetContactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContactMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a contact.
+     * 
+ */ + public void deleteContact( + com.google.cloud.essentialcontacts.v1.DeleteContactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteContactMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all contacts for the resource that are subscribed to the
+     * specified notification categories, including contacts inherited from
+     * any parent resources.
+     * 
+ */ + public void computeContacts( + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getComputeContactsMethod(), responseObserver); + } + + /** + * + * + *
+     * Allows a contact admin to send a test message to contact to verify that it
+     * has been configured correctly.
+     * 
+ */ + public void sendTestMessage( + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSendTestMessageMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateContactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.CreateContactRequest, + com.google.cloud.essentialcontacts.v1.Contact>( + this, METHODID_CREATE_CONTACT))) + .addMethod( + getUpdateContactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.UpdateContactRequest, + com.google.cloud.essentialcontacts.v1.Contact>( + this, METHODID_UPDATE_CONTACT))) + .addMethod( + getListContactsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.ListContactsRequest, + com.google.cloud.essentialcontacts.v1.ListContactsResponse>( + this, METHODID_LIST_CONTACTS))) + .addMethod( + getGetContactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.GetContactRequest, + com.google.cloud.essentialcontacts.v1.Contact>(this, METHODID_GET_CONTACT))) + .addMethod( + getDeleteContactMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.DeleteContactRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CONTACT))) + .addMethod( + getComputeContactsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest, + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse>( + this, METHODID_COMPUTE_CONTACTS))) + .addMethod( + getSendTestMessageMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest, + com.google.protobuf.Empty>(this, METHODID_SEND_TEST_MESSAGE))) + .build(); + } + } + + /** + * + * + *
+   * Manages contacts for important Google Cloud notifications.
+   * 
+ */ + public static final class EssentialContactsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private EssentialContactsServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EssentialContactsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Adds a new contact for a resource.
+     * 
+ */ + public void createContact( + com.google.cloud.essentialcontacts.v1.CreateContactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateContactMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a contact.
+     * Note: A contact's email address cannot be changed.
+     * 
+ */ + public void updateContact( + com.google.cloud.essentialcontacts.v1.UpdateContactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateContactMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists the contacts that have been set on a resource.
+     * 
+ */ + public void listContacts( + com.google.cloud.essentialcontacts.v1.ListContactsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListContactsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a single contact.
+     * 
+ */ + public void getContact( + com.google.cloud.essentialcontacts.v1.GetContactRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetContactMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Deletes a contact.
+     * 
+ */ + public void deleteContact( + com.google.cloud.essentialcontacts.v1.DeleteContactRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteContactMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all contacts for the resource that are subscribed to the
+     * specified notification categories, including contacts inherited from
+     * any parent resources.
+     * 
+ */ + public void computeContacts( + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getComputeContactsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Allows a contact admin to send a test message to contact to verify that it
+     * has been configured correctly.
+     * 
+ */ + public void sendTestMessage( + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSendTestMessageMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Manages contacts for important Google Cloud notifications.
+   * 
+ */ + public static final class EssentialContactsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private EssentialContactsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EssentialContactsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Adds a new contact for a resource.
+     * 
+ */ + public com.google.cloud.essentialcontacts.v1.Contact createContact( + com.google.cloud.essentialcontacts.v1.CreateContactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateContactMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a contact.
+     * Note: A contact's email address cannot be changed.
+     * 
+ */ + public com.google.cloud.essentialcontacts.v1.Contact updateContact( + com.google.cloud.essentialcontacts.v1.UpdateContactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateContactMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists the contacts that have been set on a resource.
+     * 
+ */ + public com.google.cloud.essentialcontacts.v1.ListContactsResponse listContacts( + com.google.cloud.essentialcontacts.v1.ListContactsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListContactsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a single contact.
+     * 
+ */ + public com.google.cloud.essentialcontacts.v1.Contact getContact( + com.google.cloud.essentialcontacts.v1.GetContactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetContactMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a contact.
+     * 
+ */ + public com.google.protobuf.Empty deleteContact( + com.google.cloud.essentialcontacts.v1.DeleteContactRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteContactMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all contacts for the resource that are subscribed to the
+     * specified notification categories, including contacts inherited from
+     * any parent resources.
+     * 
+ */ + public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse computeContacts( + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getComputeContactsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Allows a contact admin to send a test message to contact to verify that it
+     * has been configured correctly.
+     * 
+ */ + public com.google.protobuf.Empty sendTestMessage( + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSendTestMessageMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Manages contacts for important Google Cloud notifications.
+   * 
+ */ + public static final class EssentialContactsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private EssentialContactsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected EssentialContactsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new EssentialContactsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Adds a new contact for a resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.essentialcontacts.v1.Contact> + createContact(com.google.cloud.essentialcontacts.v1.CreateContactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateContactMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates a contact.
+     * Note: A contact's email address cannot be changed.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.essentialcontacts.v1.Contact> + updateContact(com.google.cloud.essentialcontacts.v1.UpdateContactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateContactMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists the contacts that have been set on a resource.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.essentialcontacts.v1.ListContactsResponse> + listContacts(com.google.cloud.essentialcontacts.v1.ListContactsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListContactsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a single contact.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.essentialcontacts.v1.Contact> + getContact(com.google.cloud.essentialcontacts.v1.GetContactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetContactMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a contact.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteContact(com.google.cloud.essentialcontacts.v1.DeleteContactRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteContactMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists all contacts for the resource that are subscribed to the
+     * specified notification categories, including contacts inherited from
+     * any parent resources.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse> + computeContacts(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getComputeContactsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Allows a contact admin to send a test message to contact to verify that it
+     * has been configured correctly.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + sendTestMessage(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSendTestMessageMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_CONTACT = 0; + private static final int METHODID_UPDATE_CONTACT = 1; + private static final int METHODID_LIST_CONTACTS = 2; + private static final int METHODID_GET_CONTACT = 3; + private static final int METHODID_DELETE_CONTACT = 4; + private static final int METHODID_COMPUTE_CONTACTS = 5; + private static final int METHODID_SEND_TEST_MESSAGE = 6; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final EssentialContactsServiceImplBase serviceImpl; + private final int methodId; + + MethodHandlers(EssentialContactsServiceImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_CONTACT: + serviceImpl.createContact( + (com.google.cloud.essentialcontacts.v1.CreateContactRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CONTACT: + serviceImpl.updateContact( + (com.google.cloud.essentialcontacts.v1.UpdateContactRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CONTACTS: + serviceImpl.listContacts( + (com.google.cloud.essentialcontacts.v1.ListContactsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.essentialcontacts.v1.ListContactsResponse>) + responseObserver); + break; + case METHODID_GET_CONTACT: + serviceImpl.getContact( + (com.google.cloud.essentialcontacts.v1.GetContactRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CONTACT: + serviceImpl.deleteContact( + (com.google.cloud.essentialcontacts.v1.DeleteContactRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_COMPUTE_CONTACTS: + serviceImpl.computeContacts( + (com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse>) + responseObserver); + break; + case METHODID_SEND_TEST_MESSAGE: + serviceImpl.sendTestMessage( + (com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private abstract static class EssentialContactsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + EssentialContactsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("EssentialContactsService"); + } + } + + private static final class EssentialContactsServiceFileDescriptorSupplier + extends EssentialContactsServiceBaseDescriptorSupplier { + EssentialContactsServiceFileDescriptorSupplier() {} + } + + private static final class EssentialContactsServiceMethodDescriptorSupplier + extends EssentialContactsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + EssentialContactsServiceMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (EssentialContactsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new EssentialContactsServiceFileDescriptorSupplier()) + .addMethod(getCreateContactMethod()) + .addMethod(getUpdateContactMethod()) + .addMethod(getListContactsMethod()) + .addMethod(getGetContactMethod()) + .addMethod(getDeleteContactMethod()) + .addMethod(getComputeContactsMethod()) + .addMethod(getSendTestMessageMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/owl-bot-staging/v1/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java deleted file mode 100644 index 8ac23c7f..00000000 --- a/owl-bot-staging/v1/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java +++ /dev/null @@ -1,835 +0,0 @@ -package com.google.cloud.essentialcontacts.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Manages contacts for important Google Cloud notifications.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/essentialcontacts/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class EssentialContactsServiceGrpc { - - private EssentialContactsServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.essentialcontacts.v1.EssentialContactsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getCreateContactMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateContact", - requestType = com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, - responseType = com.google.cloud.essentialcontacts.v1.Contact.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateContactMethod() { - io.grpc.MethodDescriptor getCreateContactMethod; - if ((getCreateContactMethod = EssentialContactsServiceGrpc.getCreateContactMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getCreateContactMethod = EssentialContactsServiceGrpc.getCreateContactMethod) == null) { - EssentialContactsServiceGrpc.getCreateContactMethod = getCreateContactMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateContact")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.CreateContactRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) - .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("CreateContact")) - .build(); - } - } - } - return getCreateContactMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateContactMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateContact", - requestType = com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, - responseType = com.google.cloud.essentialcontacts.v1.Contact.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateContactMethod() { - io.grpc.MethodDescriptor getUpdateContactMethod; - if ((getUpdateContactMethod = EssentialContactsServiceGrpc.getUpdateContactMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getUpdateContactMethod = EssentialContactsServiceGrpc.getUpdateContactMethod) == null) { - EssentialContactsServiceGrpc.getUpdateContactMethod = getUpdateContactMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateContact")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) - .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("UpdateContact")) - .build(); - } - } - } - return getUpdateContactMethod; - } - - private static volatile io.grpc.MethodDescriptor getListContactsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListContacts", - requestType = com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, - responseType = com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListContactsMethod() { - io.grpc.MethodDescriptor getListContactsMethod; - if ((getListContactsMethod = EssentialContactsServiceGrpc.getListContactsMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getListContactsMethod = EssentialContactsServiceGrpc.getListContactsMethod) == null) { - EssentialContactsServiceGrpc.getListContactsMethod = getListContactsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListContacts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.ListContactsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.ListContactsResponse.getDefaultInstance())) - .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("ListContacts")) - .build(); - } - } - } - return getListContactsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetContactMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetContact", - requestType = com.google.cloud.essentialcontacts.v1.GetContactRequest.class, - responseType = com.google.cloud.essentialcontacts.v1.Contact.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetContactMethod() { - io.grpc.MethodDescriptor getGetContactMethod; - if ((getGetContactMethod = EssentialContactsServiceGrpc.getGetContactMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getGetContactMethod = EssentialContactsServiceGrpc.getGetContactMethod) == null) { - EssentialContactsServiceGrpc.getGetContactMethod = getGetContactMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetContact")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.GetContactRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance())) - .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("GetContact")) - .build(); - } - } - } - return getGetContactMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteContactMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteContact", - requestType = com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteContactMethod() { - io.grpc.MethodDescriptor getDeleteContactMethod; - if ((getDeleteContactMethod = EssentialContactsServiceGrpc.getDeleteContactMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getDeleteContactMethod = EssentialContactsServiceGrpc.getDeleteContactMethod) == null) { - EssentialContactsServiceGrpc.getDeleteContactMethod = getDeleteContactMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteContact")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("DeleteContact")) - .build(); - } - } - } - return getDeleteContactMethod; - } - - private static volatile io.grpc.MethodDescriptor getComputeContactsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ComputeContacts", - requestType = com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, - responseType = com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getComputeContactsMethod() { - io.grpc.MethodDescriptor getComputeContactsMethod; - if ((getComputeContactsMethod = EssentialContactsServiceGrpc.getComputeContactsMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getComputeContactsMethod = EssentialContactsServiceGrpc.getComputeContactsMethod) == null) { - EssentialContactsServiceGrpc.getComputeContactsMethod = getComputeContactsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ComputeContacts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.getDefaultInstance())) - .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("ComputeContacts")) - .build(); - } - } - } - return getComputeContactsMethod; - } - - private static volatile io.grpc.MethodDescriptor getSendTestMessageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendTestMessage", - requestType = com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSendTestMessageMethod() { - io.grpc.MethodDescriptor getSendTestMessageMethod; - if ((getSendTestMessageMethod = EssentialContactsServiceGrpc.getSendTestMessageMethod) == null) { - synchronized (EssentialContactsServiceGrpc.class) { - if ((getSendTestMessageMethod = EssentialContactsServiceGrpc.getSendTestMessageMethod) == null) { - EssentialContactsServiceGrpc.getSendTestMessageMethod = getSendTestMessageMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendTestMessage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new EssentialContactsServiceMethodDescriptorSupplier("SendTestMessage")) - .build(); - } - } - } - return getSendTestMessageMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static EssentialContactsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EssentialContactsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceStub(channel, callOptions); - } - }; - return EssentialContactsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static EssentialContactsServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EssentialContactsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceBlockingStub(channel, callOptions); - } - }; - return EssentialContactsServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static EssentialContactsServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public EssentialContactsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceFutureStub(channel, callOptions); - } - }; - return EssentialContactsServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Manages contacts for important Google Cloud notifications.
-   * 
- */ - public static abstract class EssentialContactsServiceImplBase implements io.grpc.BindableService { - - /** - *
-     * Adds a new contact for a resource.
-     * 
- */ - public void createContact(com.google.cloud.essentialcontacts.v1.CreateContactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateContactMethod(), responseObserver); - } - - /** - *
-     * Updates a contact.
-     * Note: A contact's email address cannot be changed.
-     * 
- */ - public void updateContact(com.google.cloud.essentialcontacts.v1.UpdateContactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateContactMethod(), responseObserver); - } - - /** - *
-     * Lists the contacts that have been set on a resource.
-     * 
- */ - public void listContacts(com.google.cloud.essentialcontacts.v1.ListContactsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListContactsMethod(), responseObserver); - } - - /** - *
-     * Gets a single contact.
-     * 
- */ - public void getContact(com.google.cloud.essentialcontacts.v1.GetContactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetContactMethod(), responseObserver); - } - - /** - *
-     * Deletes a contact.
-     * 
- */ - public void deleteContact(com.google.cloud.essentialcontacts.v1.DeleteContactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteContactMethod(), responseObserver); - } - - /** - *
-     * Lists all contacts for the resource that are subscribed to the
-     * specified notification categories, including contacts inherited from
-     * any parent resources.
-     * 
- */ - public void computeContacts(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getComputeContactsMethod(), responseObserver); - } - - /** - *
-     * Allows a contact admin to send a test message to contact to verify that it
-     * has been configured correctly.
-     * 
- */ - public void sendTestMessage(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSendTestMessageMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getCreateContactMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.CreateContactRequest, - com.google.cloud.essentialcontacts.v1.Contact>( - this, METHODID_CREATE_CONTACT))) - .addMethod( - getUpdateContactMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.UpdateContactRequest, - com.google.cloud.essentialcontacts.v1.Contact>( - this, METHODID_UPDATE_CONTACT))) - .addMethod( - getListContactsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.ListContactsRequest, - com.google.cloud.essentialcontacts.v1.ListContactsResponse>( - this, METHODID_LIST_CONTACTS))) - .addMethod( - getGetContactMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.GetContactRequest, - com.google.cloud.essentialcontacts.v1.Contact>( - this, METHODID_GET_CONTACT))) - .addMethod( - getDeleteContactMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.DeleteContactRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_CONTACT))) - .addMethod( - getComputeContactsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest, - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse>( - this, METHODID_COMPUTE_CONTACTS))) - .addMethod( - getSendTestMessageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest, - com.google.protobuf.Empty>( - this, METHODID_SEND_TEST_MESSAGE))) - .build(); - } - } - - /** - *
-   * Manages contacts for important Google Cloud notifications.
-   * 
- */ - public static final class EssentialContactsServiceStub extends io.grpc.stub.AbstractAsyncStub { - private EssentialContactsServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EssentialContactsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceStub(channel, callOptions); - } - - /** - *
-     * Adds a new contact for a resource.
-     * 
- */ - public void createContact(com.google.cloud.essentialcontacts.v1.CreateContactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateContactMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Updates a contact.
-     * Note: A contact's email address cannot be changed.
-     * 
- */ - public void updateContact(com.google.cloud.essentialcontacts.v1.UpdateContactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateContactMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists the contacts that have been set on a resource.
-     * 
- */ - public void listContacts(com.google.cloud.essentialcontacts.v1.ListContactsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListContactsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a single contact.
-     * 
- */ - public void getContact(com.google.cloud.essentialcontacts.v1.GetContactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetContactMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Deletes a contact.
-     * 
- */ - public void deleteContact(com.google.cloud.essentialcontacts.v1.DeleteContactRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteContactMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Lists all contacts for the resource that are subscribed to the
-     * specified notification categories, including contacts inherited from
-     * any parent resources.
-     * 
- */ - public void computeContacts(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getComputeContactsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Allows a contact admin to send a test message to contact to verify that it
-     * has been configured correctly.
-     * 
- */ - public void sendTestMessage(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSendTestMessageMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
-   * Manages contacts for important Google Cloud notifications.
-   * 
- */ - public static final class EssentialContactsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private EssentialContactsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EssentialContactsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Adds a new contact for a resource.
-     * 
- */ - public com.google.cloud.essentialcontacts.v1.Contact createContact(com.google.cloud.essentialcontacts.v1.CreateContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateContactMethod(), getCallOptions(), request); - } - - /** - *
-     * Updates a contact.
-     * Note: A contact's email address cannot be changed.
-     * 
- */ - public com.google.cloud.essentialcontacts.v1.Contact updateContact(com.google.cloud.essentialcontacts.v1.UpdateContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateContactMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists the contacts that have been set on a resource.
-     * 
- */ - public com.google.cloud.essentialcontacts.v1.ListContactsResponse listContacts(com.google.cloud.essentialcontacts.v1.ListContactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListContactsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a single contact.
-     * 
- */ - public com.google.cloud.essentialcontacts.v1.Contact getContact(com.google.cloud.essentialcontacts.v1.GetContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetContactMethod(), getCallOptions(), request); - } - - /** - *
-     * Deletes a contact.
-     * 
- */ - public com.google.protobuf.Empty deleteContact(com.google.cloud.essentialcontacts.v1.DeleteContactRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteContactMethod(), getCallOptions(), request); - } - - /** - *
-     * Lists all contacts for the resource that are subscribed to the
-     * specified notification categories, including contacts inherited from
-     * any parent resources.
-     * 
- */ - public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse computeContacts(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getComputeContactsMethod(), getCallOptions(), request); - } - - /** - *
-     * Allows a contact admin to send a test message to contact to verify that it
-     * has been configured correctly.
-     * 
- */ - public com.google.protobuf.Empty sendTestMessage(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSendTestMessageMethod(), getCallOptions(), request); - } - } - - /** - *
-   * Manages contacts for important Google Cloud notifications.
-   * 
- */ - public static final class EssentialContactsServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private EssentialContactsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected EssentialContactsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new EssentialContactsServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Adds a new contact for a resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture createContact( - com.google.cloud.essentialcontacts.v1.CreateContactRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateContactMethod(), getCallOptions()), request); - } - - /** - *
-     * Updates a contact.
-     * Note: A contact's email address cannot be changed.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture updateContact( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateContactMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists the contacts that have been set on a resource.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listContacts( - com.google.cloud.essentialcontacts.v1.ListContactsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListContactsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a single contact.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getContact( - com.google.cloud.essentialcontacts.v1.GetContactRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetContactMethod(), getCallOptions()), request); - } - - /** - *
-     * Deletes a contact.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture deleteContact( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteContactMethod(), getCallOptions()), request); - } - - /** - *
-     * Lists all contacts for the resource that are subscribed to the
-     * specified notification categories, including contacts inherited from
-     * any parent resources.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture computeContacts( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getComputeContactsMethod(), getCallOptions()), request); - } - - /** - *
-     * Allows a contact admin to send a test message to contact to verify that it
-     * has been configured correctly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture sendTestMessage( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSendTestMessageMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_CONTACT = 0; - private static final int METHODID_UPDATE_CONTACT = 1; - private static final int METHODID_LIST_CONTACTS = 2; - private static final int METHODID_GET_CONTACT = 3; - private static final int METHODID_DELETE_CONTACT = 4; - private static final int METHODID_COMPUTE_CONTACTS = 5; - private static final int METHODID_SEND_TEST_MESSAGE = 6; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final EssentialContactsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(EssentialContactsServiceImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_CREATE_CONTACT: - serviceImpl.createContact((com.google.cloud.essentialcontacts.v1.CreateContactRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_CONTACT: - serviceImpl.updateContact((com.google.cloud.essentialcontacts.v1.UpdateContactRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_CONTACTS: - serviceImpl.listContacts((com.google.cloud.essentialcontacts.v1.ListContactsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_CONTACT: - serviceImpl.getContact((com.google.cloud.essentialcontacts.v1.GetContactRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_CONTACT: - serviceImpl.deleteContact((com.google.cloud.essentialcontacts.v1.DeleteContactRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_COMPUTE_CONTACTS: - serviceImpl.computeContacts((com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SEND_TEST_MESSAGE: - serviceImpl.sendTestMessage((com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class EssentialContactsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - EssentialContactsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("EssentialContactsService"); - } - } - - private static final class EssentialContactsServiceFileDescriptorSupplier - extends EssentialContactsServiceBaseDescriptorSupplier { - EssentialContactsServiceFileDescriptorSupplier() {} - } - - private static final class EssentialContactsServiceMethodDescriptorSupplier - extends EssentialContactsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - EssentialContactsServiceMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (EssentialContactsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new EssentialContactsServiceFileDescriptorSupplier()) - .addMethod(getCreateContactMethod()) - .addMethod(getUpdateContactMethod()) - .addMethod(getListContactsMethod()) - .addMethod(getGetContactMethod()) - .addMethod(getDeleteContactMethod()) - .addMethod(getComputeContactsMethod()) - .addMethod(getSendTestMessageMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java deleted file mode 100644 index 8ace0cf0..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/essentialcontacts/v1/service.proto - -package com.google.cloud.essentialcontacts.v1; - -public interface DeleteContactRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.DeleteContactRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the contact to delete.
-   * Format: organizations/{organization_id}/contacts/{contact_id},
-   * folders/{folder_id}/contacts/{contact_id} or
-   * projects/{project_id}/contacts/{contact_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the contact to delete.
-   * Format: organizations/{organization_id}/contacts/{contact_id},
-   * folders/{folder_id}/contacts/{contact_id} or
-   * projects/{project_id}/contacts/{contact_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java deleted file mode 100644 index 52914f08..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/essentialcontacts/v1/enums.proto - -package com.google.cloud.essentialcontacts.v1; - -public final class EnumsProto { - private EnumsProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n-google/cloud/essentialcontacts/v1/enum" + - "s.proto\022!google.cloud.essentialcontacts." + - "v1*\271\001\n\024NotificationCategory\022%\n!NOTIFICAT" + - "ION_CATEGORY_UNSPECIFIED\020\000\022\007\n\003ALL\020\002\022\016\n\nS" + - "USPENSION\020\003\022\014\n\010SECURITY\020\005\022\r\n\tTECHNICAL\020\006" + - "\022\013\n\007BILLING\020\007\022\t\n\005LEGAL\020\010\022\023\n\017PRODUCT_UPDA" + - "TES\020\t\022\027\n\023TECHNICAL_INCIDENTS\020\n*K\n\017Valida" + - "tionState\022 \n\034VALIDATION_STATE_UNSPECIFIE" + - "D\020\000\022\t\n\005VALID\020\001\022\013\n\007INVALID\020\002B\370\001\n%com.goog" + - "le.cloud.essentialcontacts.v1B\nEnumsProt" + - "oP\001ZRgoogle.golang.org/genproto/googleap" + - "is/cloud/essentialcontacts/v1;essentialc" + - "ontacts\252\002!Google.Cloud.EssentialContacts" + - ".V1\312\002!Google\\Cloud\\EssentialContacts\\V1\352" + - "\002$Google::Cloud::EssentialContacts::V1b\006" + - "proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java deleted file mode 100644 index 081673e3..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/essentialcontacts/v1/service.proto - -package com.google.cloud.essentialcontacts.v1; - -public interface GetContactRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.GetContactRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Required. The name of the contact to retrieve.
-   * Format: organizations/{organization_id}/contacts/{contact_id},
-   * folders/{folder_id}/contacts/{contact_id} or
-   * projects/{project_id}/contacts/{contact_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
-   * Required. The name of the contact to retrieve.
-   * Format: organizations/{organization_id}/contacts/{contact_id},
-   * folders/{folder_id}/contacts/{contact_id} or
-   * projects/{project_id}/contacts/{contact_id}
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java b/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java deleted file mode 100644 index e4240793..00000000 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java +++ /dev/null @@ -1,281 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/essentialcontacts/v1/service.proto - -package com.google.cloud.essentialcontacts.v1; - -public final class Service { - private Service() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n/google/cloud/essentialcontacts/v1/serv" + - "ice.proto\022!google.cloud.essentialcontact" + - "s.v1\032\034google/api/annotations.proto\032\027goog" + - "le/api/client.proto\032\037google/api/field_be" + - "havior.proto\032\031google/api/resource.proto\032" + - "-google/cloud/essentialcontacts/v1/enums" + - ".proto\032\033google/protobuf/empty.proto\032 goo" + - "gle/protobuf/field_mask.proto\032\037google/pr" + - "otobuf/timestamp.proto\"\321\003\n\007Contact\022\014\n\004na" + - "me\030\001 \001(\t\022\r\n\005email\030\002 \001(\t\022d\n#notification_" + - "category_subscriptions\030\003 \003(\01627.google.cl" + - "oud.essentialcontacts.v1.NotificationCat" + - "egory\022\024\n\014language_tag\030\004 \001(\t\022L\n\020validatio" + - "n_state\030\010 \001(\01622.google.cloud.essentialco" + - "ntacts.v1.ValidationState\0221\n\rvalidate_ti" + - "me\030\t \001(\0132\032.google.protobuf.Timestamp:\253\001\352" + - "A\247\001\n(essentialcontacts.googleapis.com/Co" + - "ntact\022%projects/{project}/contacts/{cont" + - "act}\022#folders/{folder}/contacts/{contact" + - "}\022/organizations/{organization}/contacts" + - "/{contact}\"\210\001\n\023ListContactsRequest\022@\n\006pa" + - "rent\030\001 \001(\tB0\340A\002\372A*\022(essentialcontacts.go" + - "ogleapis.com/Contact\022\026\n\tpage_size\030\002 \001(\005B" + - "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"m\n\024ListCon" + - "tactsResponse\022<\n\010contacts\030\001 \003(\0132*.google" + - ".cloud.essentialcontacts.v1.Contact\022\027\n\017n" + - "ext_page_token\030\002 \001(\t\"S\n\021GetContactReques" + - "t\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(essentialcontac" + - "ts.googleapis.com/Contact\"V\n\024DeleteConta" + - "ctRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(essenti" + - "alcontacts.googleapis.com/Contact\"\232\001\n\024Cr" + - "eateContactRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372" + - "A*\022(essentialcontacts.googleapis.com/Con" + - "tact\022@\n\007contact\030\002 \001(\0132*.google.cloud.ess" + - "entialcontacts.v1.ContactB\003\340A\002\"\216\001\n\024Updat" + - "eContactRequest\022@\n\007contact\030\002 \001(\0132*.googl" + - "e.cloud.essentialcontacts.v1.ContactB\003\340A" + - "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + - ".FieldMaskB\003\340A\001\"\345\001\n\026ComputeContactsReque" + - "st\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(essentialcon" + - "tacts.googleapis.com/Contact\022X\n\027notifica" + - "tion_categories\030\006 \003(\01627.google.cloud.ess" + - "entialcontacts.v1.NotificationCategory\022\026" + - "\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001" + - "(\tB\003\340A\001\"p\n\027ComputeContactsResponse\022<\n\010co" + - "ntacts\030\001 \003(\0132*.google.cloud.essentialcon" + - "tacts.v1.Contact\022\027\n\017next_page_token\030\002 \001(" + - "\t\"\375\001\n\026SendTestMessageRequest\022B\n\010contacts" + - "\030\001 \003(\tB0\340A\002\372A*\n(essentialcontacts.google" + - "apis.com/Contact\022B\n\010resource\030\002 \001(\tB0\340A\002\372" + - "A*\022(essentialcontacts.googleapis.com/Con" + - "tact\022[\n\025notification_category\030\003 \001(\01627.go" + - "ogle.cloud.essentialcontacts.v1.Notifica" + - "tionCategoryB\003\340A\0022\313\017\n\030EssentialContactsS" + - "ervice\022\230\002\n\rCreateContact\0227.google.cloud." + - "essentialcontacts.v1.CreateContactReques" + - "t\032*.google.cloud.essentialcontacts.v1.Co" + - "ntact\"\241\001\202\323\344\223\002\211\001\" /v1/{parent=projects/*}" + - "/contacts:\007contactZ*\"\037/v1/{parent=folder" + - "s/*}/contacts:\007contactZ0\"%/v1/{parent=or" + - "ganizations/*}/contacts:\007contact\332A\016paren" + - "t,contact\022\265\002\n\rUpdateContact\0227.google.clo" + - "ud.essentialcontacts.v1.UpdateContactReq" + - "uest\032*.google.cloud.essentialcontacts.v1" + - ".Contact\"\276\001\202\323\344\223\002\241\0012(/v1/{contact.name=pr" + - "ojects/*/contacts/*}:\007contactZ22\'/v1/{co" + - "ntact.name=folders/*/contacts/*}:\007contac" + - "tZ82-/v1/{contact.name=organizations/*/c" + - "ontacts/*}:\007contact\332A\023contact,update_mas" + - "k\022\376\001\n\014ListContacts\0226.google.cloud.essent" + - "ialcontacts.v1.ListContactsRequest\0327.goo" + - "gle.cloud.essentialcontacts.v1.ListConta" + - "ctsResponse\"}\202\323\344\223\002n\022 /v1/{parent=project" + - "s/*}/contactsZ!\022\037/v1/{parent=folders/*}/" + - "contactsZ\'\022%/v1/{parent=organizations/*}" + - "/contacts\332A\006parent\022\353\001\n\nGetContact\0224.goog" + - "le.cloud.essentialcontacts.v1.GetContact" + - "Request\032*.google.cloud.essentialcontacts" + - ".v1.Contact\"{\202\323\344\223\002n\022 /v1/{name=projects/" + - "*/contacts/*}Z!\022\037/v1/{name=folders/*/con" + - "tacts/*}Z\'\022%/v1/{name=organizations/*/co" + - "ntacts/*}\332A\004name\022\335\001\n\rDeleteContact\0227.goo" + - "gle.cloud.essentialcontacts.v1.DeleteCon" + - "tactRequest\032\026.google.protobuf.Empty\"{\202\323\344" + - "\223\002n* /v1/{name=projects/*/contacts/*}Z!*" + - "\037/v1/{name=folders/*/contacts/*}Z\'*%/v1/" + - "{name=organizations/*/contacts/*}\332A\004name" + - "\022\230\002\n\017ComputeContacts\0229.google.cloud.esse" + - "ntialcontacts.v1.ComputeContactsRequest\032" + - ":.google.cloud.essentialcontacts.v1.Comp" + - "uteContactsResponse\"\215\001\202\323\344\223\002\206\001\022(/v1/{pare" + - "nt=projects/*}/contacts:computeZ)\022\'/v1/{" + - "parent=folders/*}/contacts:computeZ/\022-/v" + - "1/{parent=organizations/*}/contacts:comp" + - "ute\022\233\002\n\017SendTestMessage\0229.google.cloud.e" + - "ssentialcontacts.v1.SendTestMessageReque" + - "st\032\026.google.protobuf.Empty\"\264\001\202\323\344\223\002\255\001\"2/v" + - "1/{resource=projects/*}/contacts:sendTes" + - "tMessage:\001*Z6\"1/v1/{resource=folders/*}/" + - "contacts:sendTestMessage:\001*Z<\"7/v1/{reso" + - "urce=organizations/*}/contacts:sendTestM" + - "essage:\001*\032T\312A essentialcontacts.googleap" + - "is.com\322A.https://www.googleapis.com/auth" + - "/cloud-platformB\354\001\n%com.google.cloud.ess" + - "entialcontacts.v1P\001ZRgoogle.golang.org/g" + - "enproto/googleapis/cloud/essentialcontac" + - "ts/v1;essentialcontacts\252\002!Google.Cloud.E" + - "ssentialContacts.V1\312\002!Google\\Cloud\\Essen" + - "tialContacts\\V1\352\002$Google::Cloud::Essenti" + - "alContacts::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor, - new java.lang.String[] { "Name", "Email", "NotificationCategorySubscriptions", "LanguageTag", "ValidationState", "ValidateTime", }); - internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor, - new java.lang.String[] { "Contacts", "NextPageToken", }); - internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor, - new java.lang.String[] { "Parent", "Contact", }); - internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor, - new java.lang.String[] { "Contact", "UpdateMask", }); - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor, - new java.lang.String[] { "Parent", "NotificationCategories", "PageSize", "PageToken", }); - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor, - new java.lang.String[] { "Contacts", "NextPageToken", }); - internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor, - new java.lang.String[] { "Contacts", "Resource", "NotificationCategory", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java index 0190bbb3..2598a422 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** + * + * *
  * Request message for the ComputeContacts method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ComputeContactsRequest} */ -public final class ComputeContactsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ComputeContactsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.ComputeContactsRequest) ComputeContactsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ComputeContactsRequest.newBuilder() to construct. private ComputeContactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ComputeContactsRequest() { parent_ = ""; notificationCategories_ = java.util.Collections.emptyList(); @@ -27,16 +45,15 @@ private ComputeContactsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ComputeContactsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ComputeContactsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,53 +73,57 @@ private ComputeContactsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 24: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 24: + { + pageSize_ = input.readInt32(); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notificationCategories_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + pageToken_ = s; + break; } - notificationCategories_.add(rawValue); - break; - } - case 50: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 48: + { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { notificationCategories_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } notificationCategories_.add(rawValue); + break; } - input.popLimit(oldLimit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 50: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notificationCategories_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + notificationCategories_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,8 +131,7 @@ private ComputeContactsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { notificationCategories_ = java.util.Collections.unmodifiableList(notificationCategories_); @@ -120,29 +140,37 @@ private ComputeContactsRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The name of the resource to compute contacts for.
    * Format: organizations/{organization_id},
    * folders/{folder_id} or projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -151,31 +179,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The name of the resource to compute contacts for.
    * Format: organizations/{organization_id},
    * folders/{folder_id} or projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -186,38 +216,55 @@ public java.lang.String getParent() { public static final int NOTIFICATION_CATEGORIES_FIELD_NUMBER = 6; private java.util.List notificationCategories_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory> notificationCategories_converter_ = + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory> + notificationCategories_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>() { - public com.google.cloud.essentialcontacts.v1.NotificationCategory convert(java.lang.Integer from) { + public com.google.cloud.essentialcontacts.v1.NotificationCategory convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.NotificationCategory result = com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(from); - return result == null ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED : result; + com.google.cloud.essentialcontacts.v1.NotificationCategory result = + com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(from); + return result == null + ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED + : result; } }; /** + * + * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @return A list containing the notificationCategories. */ @java.lang.Override - public java.util.List getNotificationCategoriesList() { + public java.util.List + getNotificationCategoriesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>(notificationCategories_, notificationCategories_converter_); + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>( + notificationCategories_, notificationCategories_converter_); } /** + * + * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @return The count of notificationCategories. */ @java.lang.Override @@ -225,43 +272,58 @@ public int getNotificationCategoriesCount() { return notificationCategories_.size(); } /** + * + * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param index The index of the element to return. * @return The notificationCategories at the given index. */ @java.lang.Override - public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategories(int index) { + public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategories( + int index) { return notificationCategories_converter_.convert(notificationCategories_.get(index)); } /** + * + * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @return A list containing the enum numeric values on the wire for notificationCategories. */ @java.lang.Override - public java.util.List - getNotificationCategoriesValueList() { + public java.util.List getNotificationCategoriesValueList() { return notificationCategories_; } /** + * + * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of notificationCategories at the given index. */ @@ -269,11 +331,14 @@ public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificatio public int getNotificationCategoriesValue(int index) { return notificationCategories_.get(index); } + private int notificationCategoriesMemoizedSerializedSize; public static final int PAGE_SIZE_FIELD_NUMBER = 3; private int pageSize_; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -282,6 +347,7 @@ public int getNotificationCategoriesValue(int index) {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -292,6 +358,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 4; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -300,6 +368,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -308,14 +377,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -324,16 +394,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -342,6 +411,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -353,8 +423,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); @@ -385,8 +454,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -394,14 +462,16 @@ public int getSerializedSize() { { int dataSize = 0; for (int i = 0; i < notificationCategories_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(notificationCategories_.get(i)); + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( + notificationCategories_.get(i)); } size += dataSize; - if (!getNotificationCategoriesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }notificationCategoriesMemoizedSerializedSize = dataSize; + if (!getNotificationCategoriesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + notificationCategoriesMemoizedSerializedSize = dataSize; } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -411,20 +481,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.ComputeContactsRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest other = (com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) obj; + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest other = + (com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (!notificationCategories_.equals(other.notificationCategories_)) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -452,117 +520,127 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the ComputeContacts method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ComputeContactsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.ComputeContactsRequest) com.google.cloud.essentialcontacts.v1.ComputeContactsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.class, + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.newBuilder() @@ -570,16 +648,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -595,13 +672,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; } @java.lang.Override - public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest getDefaultInstanceForType() { + public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest + getDefaultInstanceForType() { return com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.getDefaultInstance(); } @@ -616,7 +694,8 @@ public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.ComputeContactsRequest result = new com.google.cloud.essentialcontacts.v1.ComputeContactsRequest(this); + com.google.cloud.essentialcontacts.v1.ComputeContactsRequest result = + new com.google.cloud.essentialcontacts.v1.ComputeContactsRequest(this); int from_bitField0_ = bitField0_; result.parent_ = parent_; if (((bitField0_ & 0x00000001) != 0)) { @@ -634,38 +713,39 @@ public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.ComputeContactsRequest)other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) other); } else { super.mergeFrom(other); return this; @@ -673,7 +753,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ComputeContactsRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.essentialcontacts.v1.ComputeContactsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -714,7 +796,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.essentialcontacts.v1.ComputeContactsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -723,24 +806,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The name of the resource to compute contacts for.
      * Format: organizations/{organization_id},
      * folders/{folder_id} or projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -749,22 +837,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the resource to compute contacts for.
      * Format: organizations/{organization_id},
      * folders/{folder_id} or projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -772,122 +863,160 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The name of the resource to compute contacts for.
      * Format: organizations/{organization_id},
      * folders/{folder_id} or projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the resource to compute contacts for.
      * Format: organizations/{organization_id},
      * folders/{folder_id} or projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The name of the resource to compute contacts for.
      * Format: organizations/{organization_id},
      * folders/{folder_id} or projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } private java.util.List notificationCategories_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNotificationCategoriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationCategories_ = new java.util.ArrayList(notificationCategories_); + notificationCategories_ = + new java.util.ArrayList(notificationCategories_); bitField0_ |= 0x00000001; } } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @return A list containing the notificationCategories. */ - public java.util.List getNotificationCategoriesList() { + public java.util.List + getNotificationCategoriesList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>(notificationCategories_, notificationCategories_converter_); + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>( + notificationCategories_, notificationCategories_converter_); } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @return The count of notificationCategories. */ public int getNotificationCategoriesCount() { return notificationCategories_.size(); } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param index The index of the element to return. * @return The notificationCategories at the given index. */ - public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategories(int index) { + public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategories( + int index) { return notificationCategories_converter_.convert(notificationCategories_.get(index)); } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param index The index to set the value at. * @param value The notificationCategories to set. * @return This builder for chaining. @@ -903,17 +1032,23 @@ public Builder setNotificationCategories( return this; } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param value The notificationCategories to add. * @return This builder for chaining. */ - public Builder addNotificationCategories(com.google.cloud.essentialcontacts.v1.NotificationCategory value) { + public Builder addNotificationCategories( + com.google.cloud.essentialcontacts.v1.NotificationCategory value) { if (value == null) { throw new NullPointerException(); } @@ -923,18 +1058,24 @@ public Builder addNotificationCategories(com.google.cloud.essentialcontacts.v1.N return this; } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param values The notificationCategories to add. * @return This builder for chaining. */ public Builder addAllNotificationCategories( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureNotificationCategoriesIsMutable(); for (com.google.cloud.essentialcontacts.v1.NotificationCategory value : values) { notificationCategories_.add(value.getNumber()); @@ -943,13 +1084,18 @@ public Builder addAllNotificationCategories( return this; } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @return This builder for chaining. */ public Builder clearNotificationCategories() { @@ -959,27 +1105,36 @@ public Builder clearNotificationCategories() { return this; } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @return A list containing the enum numeric values on the wire for notificationCategories. */ - public java.util.List - getNotificationCategoriesValueList() { + public java.util.List getNotificationCategoriesValueList() { return java.util.Collections.unmodifiableList(notificationCategories_); } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of notificationCategories at the given index. */ @@ -987,32 +1142,41 @@ public int getNotificationCategoriesValue(int index) { return notificationCategories_.get(index); } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of notificationCategories at the given index. * @return This builder for chaining. */ - public Builder setNotificationCategoriesValue( - int index, int value) { + public Builder setNotificationCategoriesValue(int index, int value) { ensureNotificationCategoriesIsMutable(); notificationCategories_.set(index, value); onChanged(); return this; } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param value The enum numeric value on the wire for notificationCategories to add. * @return This builder for chaining. */ @@ -1023,18 +1187,22 @@ public Builder addNotificationCategoriesValue(int value) { return this; } /** + * + * *
      * The categories of notifications to compute contacts for. If ALL is included
      * in this list, contacts subscribed to any notification category will be
      * returned.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param values The enum numeric values on the wire for notificationCategories to add. * @return This builder for chaining. */ - public Builder addAllNotificationCategoriesValue( - java.lang.Iterable values) { + public Builder addAllNotificationCategoriesValue(java.lang.Iterable values) { ensureNotificationCategoriesIsMutable(); for (int value : values) { notificationCategories_.add(value); @@ -1043,8 +1211,10 @@ public Builder addAllNotificationCategoriesValue( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -1053,6 +1223,7 @@ public Builder addAllNotificationCategoriesValue(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1060,6 +1231,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -1068,16 +1241,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -1086,10 +1262,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -1097,6 +1274,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -1105,13 +1284,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -1120,6 +1299,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -1128,15 +1309,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -1144,6 +1324,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -1152,20 +1334,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -1174,15 +1358,18 @@ public Builder setPageToken(
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -1191,23 +1378,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1217,12 +1404,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.ComputeContactsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.ComputeContactsRequest) - private static final com.google.cloud.essentialcontacts.v1.ComputeContactsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.essentialcontacts.v1.ComputeContactsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.ComputeContactsRequest(); } @@ -1231,16 +1419,16 @@ public static com.google.cloud.essentialcontacts.v1.ComputeContactsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeContactsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ComputeContactsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeContactsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComputeContactsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1255,6 +1443,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.ComputeContactsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java index ce3b0d6a..066f77b9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsRequestOrBuilder.java @@ -1,96 +1,148 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface ComputeContactsRequestOrBuilder extends +public interface ComputeContactsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.ComputeContactsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The name of the resource to compute contacts for.
    * Format: organizations/{organization_id},
    * folders/{folder_id} or projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The name of the resource to compute contacts for.
    * Format: organizations/{organization_id},
    * folders/{folder_id} or projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @return A list containing the notificationCategories. */ - java.util.List getNotificationCategoriesList(); + java.util.List + getNotificationCategoriesList(); /** + * + * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @return The count of notificationCategories. */ int getNotificationCategoriesCount(); /** + * + * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param index The index of the element to return. * @return The notificationCategories at the given index. */ com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategories(int index); /** + * + * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @return A list containing the enum numeric values on the wire for notificationCategories. */ - java.util.List - getNotificationCategoriesValueList(); + java.util.List getNotificationCategoriesValueList(); /** + * + * *
    * The categories of notifications to compute contacts for. If ALL is included
    * in this list, contacts subscribed to any notification category will be
    * returned.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_categories = 6; + * + * * @param index The index of the value to return. * @return The enum numeric value on the wire of notificationCategories at the given index. */ int getNotificationCategoriesValue(int index); /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -99,11 +151,14 @@ public interface ComputeContactsRequestOrBuilder extends
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -112,10 +167,13 @@ public interface ComputeContactsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -124,8 +182,8 @@ public interface ComputeContactsRequestOrBuilder extends
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java index 4c36a468..237c51ba 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** + * + * *
  * Response message for the ComputeContacts method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ComputeContactsResponse} */ -public final class ComputeContactsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ComputeContactsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.ComputeContactsResponse) ComputeContactsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ComputeContactsResponse.newBuilder() to construct. private ComputeContactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ComputeContactsResponse() { contacts_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ComputeContactsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ComputeContactsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ComputeContactsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ComputeContactsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contacts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contacts_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + contacts_.add( + input.readMessage( + com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry)); + break; } - contacts_.add( - input.readMessage(com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ComputeContactsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { contacts_ = java.util.Collections.unmodifiableList(contacts_); @@ -94,22 +114,27 @@ private ComputeContactsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.Builder.class); + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.Builder.class); } public static final int CONTACTS_FIELD_NUMBER = 1; private java.util.List contacts_; /** + * + * *
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -123,6 +148,8 @@ public java.util.List getContacts
     return contacts_;
   }
   /**
+   *
+   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -132,11 +159,13 @@ public java.util.List getContacts
    * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getContactsOrBuilderList() {
     return contacts_;
   }
   /**
+   *
+   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -150,6 +179,8 @@ public int getContactsCount() {
     return contacts_.size();
   }
   /**
+   *
+   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -163,6 +194,8 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) {
     return contacts_.get(index);
   }
   /**
+   *
+   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -172,14 +205,15 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) {
    * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
    */
   @java.lang.Override
-  public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(
-      int index) {
+  public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index) {
     return contacts_.get(index);
   }
 
   public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2;
   private volatile java.lang.Object nextPageToken_;
   /**
+   *
+   *
    * 
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -188,6 +222,7 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -196,14 +231,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -212,16 +248,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -230,6 +265,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -241,8 +277,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < contacts_.size(); i++) { output.writeMessage(1, contacts_.get(i)); } @@ -259,8 +294,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < contacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, contacts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contacts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -273,17 +307,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.ComputeContactsResponse)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse other = (com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) obj; + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse other = + (com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) obj; - if (!getContactsList() - .equals(other.getContactsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getContactsList().equals(other.getContactsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -307,117 +340,127 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.ComputeContactsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the ComputeContacts method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ComputeContactsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.ComputeContactsResponse) com.google.cloud.essentialcontacts.v1.ComputeContactsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.Builder.class); + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.class, + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.newBuilder() @@ -425,17 +468,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getContactsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -451,13 +494,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; } @java.lang.Override - public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse getDefaultInstanceForType() { + public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse + getDefaultInstanceForType() { return com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.getDefaultInstance(); } @@ -472,7 +516,8 @@ public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse buildPartial() { - com.google.cloud.essentialcontacts.v1.ComputeContactsResponse result = new com.google.cloud.essentialcontacts.v1.ComputeContactsResponse(this); + com.google.cloud.essentialcontacts.v1.ComputeContactsResponse result = + new com.google.cloud.essentialcontacts.v1.ComputeContactsResponse(this); int from_bitField0_ = bitField0_; if (contactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -492,38 +537,39 @@ public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.ComputeContactsResponse)other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) other); } else { super.mergeFrom(other); return this; @@ -531,7 +577,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ComputeContactsResponse other) { - if (other == com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.essentialcontacts.v1.ComputeContactsResponse.getDefaultInstance()) + return this; if (contactsBuilder_ == null) { if (!other.contacts_.isEmpty()) { if (contacts_.isEmpty()) { @@ -550,9 +598,10 @@ public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ComputeContactsRe contactsBuilder_ = null; contacts_ = other.contacts_; bitField0_ = (bitField0_ & ~0x00000001); - contactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getContactsFieldBuilder() : null; + contactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContactsFieldBuilder() + : null; } else { contactsBuilder_.addAllMessages(other.contacts_); } @@ -581,7 +630,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.essentialcontacts.v1.ComputeContactsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -590,21 +641,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List contacts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureContactsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - contacts_ = new java.util.ArrayList(contacts_); + contacts_ = + new java.util.ArrayList(contacts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> contactsBuilder_; + com.google.cloud.essentialcontacts.v1.Contact, + com.google.cloud.essentialcontacts.v1.Contact.Builder, + com.google.cloud.essentialcontacts.v1.ContactOrBuilder> + contactsBuilder_; /** + * + * *
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -621,6 +680,8 @@ public java.util.List getContacts
       }
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -637,6 +698,8 @@ public int getContactsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -653,6 +716,8 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) {
       }
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -661,8 +726,7 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) {
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public Builder setContacts(
-        int index, com.google.cloud.essentialcontacts.v1.Contact value) {
+    public Builder setContacts(int index, com.google.cloud.essentialcontacts.v1.Contact value) {
       if (contactsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -676,6 +740,8 @@ public Builder setContacts(
       return this;
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -696,6 +762,8 @@ public Builder setContacts(
       return this;
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -718,6 +786,8 @@ public Builder addContacts(com.google.cloud.essentialcontacts.v1.Contact value)
       return this;
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -726,8 +796,7 @@ public Builder addContacts(com.google.cloud.essentialcontacts.v1.Contact value)
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public Builder addContacts(
-        int index, com.google.cloud.essentialcontacts.v1.Contact value) {
+    public Builder addContacts(int index, com.google.cloud.essentialcontacts.v1.Contact value) {
       if (contactsBuilder_ == null) {
         if (value == null) {
           throw new NullPointerException();
@@ -741,6 +810,8 @@ public Builder addContacts(
       return this;
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -761,6 +832,8 @@ public Builder addContacts(
       return this;
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -781,6 +854,8 @@ public Builder addContacts(
       return this;
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -793,8 +868,7 @@ public Builder addAllContacts(
         java.lang.Iterable values) {
       if (contactsBuilder_ == null) {
         ensureContactsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, contacts_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_);
         onChanged();
       } else {
         contactsBuilder_.addAllMessages(values);
@@ -802,6 +876,8 @@ public Builder addAllContacts(
       return this;
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -821,6 +897,8 @@ public Builder clearContacts() {
       return this;
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -840,6 +918,8 @@ public Builder removeContacts(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -848,11 +928,12 @@ public Builder removeContacts(int index) {
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactsBuilder(
-        int index) {
+    public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactsBuilder(int index) {
       return getContactsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -861,14 +942,16 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactsBuilder(
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(
-        int index) {
+    public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index) {
       if (contactsBuilder_ == null) {
-        return contacts_.get(index);  } else {
+        return contacts_.get(index);
+      } else {
         return contactsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -877,8 +960,8 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public java.util.List 
-         getContactsOrBuilderList() {
+    public java.util.List
+        getContactsOrBuilderList() {
       if (contactsBuilder_ != null) {
         return contactsBuilder_.getMessageOrBuilderList();
       } else {
@@ -886,6 +969,8 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
       }
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -895,10 +980,12 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
     public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder() {
-      return getContactsFieldBuilder().addBuilder(
-          com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance());
+      return getContactsFieldBuilder()
+          .addBuilder(com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -907,12 +994,13 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
-        int index) {
-      return getContactsFieldBuilder().addBuilder(
-          index, com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance());
+    public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(int index) {
+      return getContactsFieldBuilder()
+          .addBuilder(index, com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -921,20 +1009,23 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
      *
      * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
      */
-    public java.util.List 
-         getContactsBuilderList() {
+    public java.util.List
+        getContactsBuilderList() {
       return getContactsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> 
+            com.google.cloud.essentialcontacts.v1.Contact,
+            com.google.cloud.essentialcontacts.v1.Contact.Builder,
+            com.google.cloud.essentialcontacts.v1.ContactOrBuilder>
         getContactsFieldBuilder() {
       if (contactsBuilder_ == null) {
-        contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder>(
-                contacts_,
-                ((bitField0_ & 0x00000001) != 0),
-                getParentForChildren(),
-                isClean());
+        contactsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.essentialcontacts.v1.Contact,
+                com.google.cloud.essentialcontacts.v1.Contact.Builder,
+                com.google.cloud.essentialcontacts.v1.ContactOrBuilder>(
+                contacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
         contacts_ = null;
       }
       return contactsBuilder_;
@@ -942,6 +1033,8 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
 
     private java.lang.Object nextPageToken_ = "";
     /**
+     *
+     *
      * 
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -950,13 +1043,13 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -965,6 +1058,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -973,15 +1068,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -989,6 +1083,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -997,20 +1093,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1019,15 +1117,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -1036,23 +1137,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1062,12 +1163,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.ComputeContactsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.ComputeContactsResponse) - private static final com.google.cloud.essentialcontacts.v1.ComputeContactsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.essentialcontacts.v1.ComputeContactsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.ComputeContactsResponse(); } @@ -1076,16 +1178,16 @@ public static com.google.cloud.essentialcontacts.v1.ComputeContactsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ComputeContactsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ComputeContactsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ComputeContactsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ComputeContactsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1100,6 +1202,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.ComputeContactsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java index fcdb71ee..52b366b9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ComputeContactsResponseOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface ComputeContactsResponseOrBuilder extends +public interface ComputeContactsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.ComputeContactsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -16,9 +34,10 @@ public interface ComputeContactsResponseOrBuilder extends
    *
    * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
    */
-  java.util.List 
-      getContactsList();
+  java.util.List getContactsList();
   /**
+   *
+   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -29,6 +48,8 @@ public interface ComputeContactsResponseOrBuilder extends
    */
   com.google.cloud.essentialcontacts.v1.Contact getContacts(int index);
   /**
+   *
+   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -39,6 +60,8 @@ public interface ComputeContactsResponseOrBuilder extends
    */
   int getContactsCount();
   /**
+   *
+   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -47,9 +70,11 @@ public interface ComputeContactsResponseOrBuilder extends
    *
    * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
    */
-  java.util.List 
+  java.util.List
       getContactsOrBuilderList();
   /**
+   *
+   *
    * 
    * All contacts for the resource that are subscribed to the specified
    * notification categories, including contacts inherited from any parent
@@ -58,10 +83,11 @@ public interface ComputeContactsResponseOrBuilder extends
    *
    * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1;
    */
-  com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(
-      int index);
+  com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index);
 
   /**
+   *
+   *
    * 
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -70,10 +96,13 @@ com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -82,8 +111,8 @@ com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java index 343ef239..2c1abc6f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Contact.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** + * + * *
  * A contact that will receive notifications from Google Cloud.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.Contact} */ -public final class Contact extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Contact extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.Contact) ContactOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Contact.newBuilder() to construct. private Contact(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Contact() { name_ = ""; email_ = ""; @@ -29,16 +47,15 @@ private Contact() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Contact(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Contact( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -58,73 +75,81 @@ private Contact( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - email_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - notificationCategorySubscriptions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + email_ = s; + break; } - notificationCategorySubscriptions_.add(rawValue); - break; - } - case 26: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { + case 24: + { int rawValue = input.readEnum(); if (!((mutable_bitField0_ & 0x00000001) != 0)) { notificationCategorySubscriptions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } notificationCategorySubscriptions_.add(rawValue); + break; } - input.popLimit(oldLimit); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - languageTag_ = s; - break; - } - case 64: { - int rawValue = input.readEnum(); + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + notificationCategorySubscriptions_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + notificationCategorySubscriptions_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - validationState_ = rawValue; - break; - } - case 74: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (validateTime_ != null) { - subBuilder = validateTime_.toBuilder(); + languageTag_ = s; + break; } - validateTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validateTime_); - validateTime_ = subBuilder.buildPartial(); + case 64: + { + int rawValue = input.readEnum(); + + validationState_ = rawValue; + break; } + case 74: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (validateTime_ != null) { + subBuilder = validateTime_.toBuilder(); + } + validateTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(validateTime_); + validateTime_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -132,38 +157,44 @@ private Contact( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - notificationCategorySubscriptions_ = java.util.Collections.unmodifiableList(notificationCategorySubscriptions_); + notificationCategorySubscriptions_ = + java.util.Collections.unmodifiableList(notificationCategorySubscriptions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.Contact.class, com.google.cloud.essentialcontacts.v1.Contact.Builder.class); + com.google.cloud.essentialcontacts.v1.Contact.class, + com.google.cloud.essentialcontacts.v1.Contact.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The identifier for the contact.
    * Format: {resource_type}/{resource_id}/contacts/{contact_id}
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -172,30 +203,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The identifier for the contact.
    * Format: {resource_type}/{resource_id}/contacts/{contact_id}
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -206,12 +237,15 @@ public java.lang.String getName() { public static final int EMAIL_FIELD_NUMBER = 2; private volatile java.lang.Object email_; /** + * + * *
    * Required. The email address to send notifications to. This does not need to
    * be a Google account.
    * 
* * string email = 2; + * * @return The email. */ @java.lang.Override @@ -220,30 +254,30 @@ public java.lang.String getEmail() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; } } /** + * + * *
    * Required. The email address to send notifications to. This does not need to
    * be a Google account.
    * 
* * string email = 2; + * * @return The bytes for email. */ @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -254,36 +288,53 @@ public java.lang.String getEmail() { public static final int NOTIFICATION_CATEGORY_SUBSCRIPTIONS_FIELD_NUMBER = 3; private java.util.List notificationCategorySubscriptions_; private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory> notificationCategorySubscriptions_converter_ = + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory> + notificationCategorySubscriptions_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>() { - public com.google.cloud.essentialcontacts.v1.NotificationCategory convert(java.lang.Integer from) { + public com.google.cloud.essentialcontacts.v1.NotificationCategory convert( + java.lang.Integer from) { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.NotificationCategory result = com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(from); - return result == null ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED : result; + com.google.cloud.essentialcontacts.v1.NotificationCategory result = + com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(from); + return result == null + ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED + : result; } }; /** + * + * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @return A list containing the notificationCategorySubscriptions. */ @java.lang.Override - public java.util.List getNotificationCategorySubscriptionsList() { + public java.util.List + getNotificationCategorySubscriptionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>(notificationCategorySubscriptions_, notificationCategorySubscriptions_converter_); + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>( + notificationCategorySubscriptions_, notificationCategorySubscriptions_converter_); } /** + * + * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @return The count of notificationCategorySubscriptions. */ @java.lang.Override @@ -291,52 +342,73 @@ public int getNotificationCategorySubscriptionsCount() { return notificationCategorySubscriptions_.size(); } /** + * + * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param index The index of the element to return. * @return The notificationCategorySubscriptions at the given index. */ @java.lang.Override - public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategorySubscriptions(int index) { - return notificationCategorySubscriptions_converter_.convert(notificationCategorySubscriptions_.get(index)); + public com.google.cloud.essentialcontacts.v1.NotificationCategory + getNotificationCategorySubscriptions(int index) { + return notificationCategorySubscriptions_converter_.convert( + notificationCategorySubscriptions_.get(index)); } /** + * + * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * @return A list containing the enum numeric values on the wire for notificationCategorySubscriptions. + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * + * @return A list containing the enum numeric values on the wire for + * notificationCategorySubscriptions. */ @java.lang.Override - public java.util.List - getNotificationCategorySubscriptionsValueList() { + public java.util.List getNotificationCategorySubscriptionsValueList() { return notificationCategorySubscriptions_; } /** + * + * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param index The index of the value to return. - * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given index. + * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given + * index. */ @java.lang.Override public int getNotificationCategorySubscriptionsValue(int index) { return notificationCategorySubscriptions_.get(index); } + private int notificationCategorySubscriptionsMemoizedSerializedSize; public static final int LANGUAGE_TAG_FIELD_NUMBER = 4; private volatile java.lang.Object languageTag_; /** + * + * *
    * The preferred language for notifications, as a ISO 639-1 language code. See
    * [Supported
@@ -345,6 +417,7 @@ public int getNotificationCategorySubscriptionsValue(int index) {
    * 
* * string language_tag = 4; + * * @return The languageTag. */ @java.lang.Override @@ -353,14 +426,15 @@ public java.lang.String getLanguageTag() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageTag_ = s; return s; } } /** + * + * *
    * The preferred language for notifications, as a ISO 639-1 language code. See
    * [Supported
@@ -369,16 +443,15 @@ public java.lang.String getLanguageTag() {
    * 
* * string language_tag = 4; + * * @return The bytes for languageTag. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageTagBytes() { + public com.google.protobuf.ByteString getLanguageTagBytes() { java.lang.Object ref = languageTag_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageTag_ = b; return b; } else { @@ -389,35 +462,48 @@ public java.lang.String getLanguageTag() { public static final int VALIDATION_STATE_FIELD_NUMBER = 8; private int validationState_; /** + * + * *
    * The validity of the contact. A contact is considered valid if it is the
    * correct recipient for notifications for a particular resource.
    * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * * @return The enum numeric value on the wire for validationState. */ - @java.lang.Override public int getValidationStateValue() { + @java.lang.Override + public int getValidationStateValue() { return validationState_; } /** + * + * *
    * The validity of the contact. A contact is considered valid if it is the
    * correct recipient for notifications for a particular resource.
    * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * * @return The validationState. */ - @java.lang.Override public com.google.cloud.essentialcontacts.v1.ValidationState getValidationState() { + @java.lang.Override + public com.google.cloud.essentialcontacts.v1.ValidationState getValidationState() { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.ValidationState result = com.google.cloud.essentialcontacts.v1.ValidationState.valueOf(validationState_); - return result == null ? com.google.cloud.essentialcontacts.v1.ValidationState.UNRECOGNIZED : result; + com.google.cloud.essentialcontacts.v1.ValidationState result = + com.google.cloud.essentialcontacts.v1.ValidationState.valueOf(validationState_); + return result == null + ? com.google.cloud.essentialcontacts.v1.ValidationState.UNRECOGNIZED + : result; } public static final int VALIDATE_TIME_FIELD_NUMBER = 9; private com.google.protobuf.Timestamp validateTime_; /** + * + * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
@@ -425,6 +511,7 @@ public java.lang.String getLanguageTag() {
    * 
* * .google.protobuf.Timestamp validate_time = 9; + * * @return Whether the validateTime field is set. */ @java.lang.Override @@ -432,6 +519,8 @@ public boolean hasValidateTime() { return validateTime_ != null; } /** + * + * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
@@ -439,13 +528,18 @@ public boolean hasValidateTime() {
    * 
* * .google.protobuf.Timestamp validate_time = 9; + * * @return The validateTime. */ @java.lang.Override public com.google.protobuf.Timestamp getValidateTime() { - return validateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validateTime_; + return validateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : validateTime_; } /** + * + * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
@@ -460,6 +554,7 @@ public com.google.protobuf.TimestampOrBuilder getValidateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -471,8 +566,7 @@ public final boolean isInitialized() {
   }
 
   @java.lang.Override
-  public void writeTo(com.google.protobuf.CodedOutputStream output)
-                      throws java.io.IOException {
+  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
     getSerializedSize();
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
@@ -490,7 +584,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageTag_)) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 4, languageTag_);
     }
-    if (validationState_ != com.google.cloud.essentialcontacts.v1.ValidationState.VALIDATION_STATE_UNSPECIFIED.getNumber()) {
+    if (validationState_
+        != com.google.cloud.essentialcontacts.v1.ValidationState.VALIDATION_STATE_UNSPECIFIED
+            .getNumber()) {
       output.writeEnum(8, validationState_);
     }
     if (validateTime_ != null) {
@@ -514,25 +610,27 @@ public int getSerializedSize() {
     {
       int dataSize = 0;
       for (int i = 0; i < notificationCategorySubscriptions_.size(); i++) {
-        dataSize += com.google.protobuf.CodedOutputStream
-          .computeEnumSizeNoTag(notificationCategorySubscriptions_.get(i));
+        dataSize +=
+            com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(
+                notificationCategorySubscriptions_.get(i));
       }
       size += dataSize;
-      if (!getNotificationCategorySubscriptionsList().isEmpty()) {  size += 1;
-        size += com.google.protobuf.CodedOutputStream
-          .computeUInt32SizeNoTag(dataSize);
-      }notificationCategorySubscriptionsMemoizedSerializedSize = dataSize;
+      if (!getNotificationCategorySubscriptionsList().isEmpty()) {
+        size += 1;
+        size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize);
+      }
+      notificationCategorySubscriptionsMemoizedSerializedSize = dataSize;
     }
     if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageTag_)) {
       size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, languageTag_);
     }
-    if (validationState_ != com.google.cloud.essentialcontacts.v1.ValidationState.VALIDATION_STATE_UNSPECIFIED.getNumber()) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeEnumSize(8, validationState_);
+    if (validationState_
+        != com.google.cloud.essentialcontacts.v1.ValidationState.VALIDATION_STATE_UNSPECIFIED
+            .getNumber()) {
+      size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, validationState_);
     }
     if (validateTime_ != null) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(9, getValidateTime());
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getValidateTime());
     }
     size += unknownFields.getSerializedSize();
     memoizedSize = size;
@@ -542,25 +640,23 @@ public int getSerializedSize() {
   @java.lang.Override
   public boolean equals(final java.lang.Object obj) {
     if (obj == this) {
-     return true;
+      return true;
     }
     if (!(obj instanceof com.google.cloud.essentialcontacts.v1.Contact)) {
       return super.equals(obj);
     }
-    com.google.cloud.essentialcontacts.v1.Contact other = (com.google.cloud.essentialcontacts.v1.Contact) obj;
+    com.google.cloud.essentialcontacts.v1.Contact other =
+        (com.google.cloud.essentialcontacts.v1.Contact) obj;
 
-    if (!getName()
-        .equals(other.getName())) return false;
-    if (!getEmail()
-        .equals(other.getEmail())) return false;
-    if (!notificationCategorySubscriptions_.equals(other.notificationCategorySubscriptions_)) return false;
-    if (!getLanguageTag()
-        .equals(other.getLanguageTag())) return false;
+    if (!getName().equals(other.getName())) return false;
+    if (!getEmail().equals(other.getEmail())) return false;
+    if (!notificationCategorySubscriptions_.equals(other.notificationCategorySubscriptions_))
+      return false;
+    if (!getLanguageTag().equals(other.getLanguageTag())) return false;
     if (validationState_ != other.validationState_) return false;
     if (hasValidateTime() != other.hasValidateTime()) return false;
     if (hasValidateTime()) {
-      if (!getValidateTime()
-          .equals(other.getValidateTime())) return false;
+      if (!getValidateTime().equals(other.getValidateTime())) return false;
     }
     if (!unknownFields.equals(other.unknownFields)) return false;
     return true;
@@ -594,118 +690,127 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
-      java.nio.ByteBuffer data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
       com.google.protobuf.ByteString data,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
-      byte[] data,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data, extensionRegistry);
   }
+
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(java.io.InputStream input)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
-  public static com.google.cloud.essentialcontacts.v1.Contact parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.essentialcontacts.v1.Contact parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.essentialcontacts.v1.Contact parseDelimitedFrom(
-      java.io.InputStream input,
-      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
+        PARSER, input, extensionRegistry);
   }
+
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
-      com.google.protobuf.CodedInputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input);
+      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.essentialcontacts.v1.Contact parseFrom(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
       throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseWithIOException(PARSER, input, extensionRegistry);
+    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
+        PARSER, input, extensionRegistry);
   }
 
   @java.lang.Override
-  public Builder newBuilderForType() { return newBuilder(); }
+  public Builder newBuilderForType() {
+    return newBuilder();
+  }
+
   public static Builder newBuilder() {
     return DEFAULT_INSTANCE.toBuilder();
   }
+
   public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.Contact prototype) {
     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
   }
+
   @java.lang.Override
   public Builder toBuilder() {
-    return this == DEFAULT_INSTANCE
-        ? new Builder() : new Builder().mergeFrom(this);
+    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
   }
 
   @java.lang.Override
-  protected Builder newBuilderForType(
-      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
     Builder builder = new Builder(parent);
     return builder;
   }
   /**
+   *
+   *
    * 
    * A contact that will receive notifications from Google Cloud.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.Contact} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.Contact) com.google.cloud.essentialcontacts.v1.ContactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.Contact.class, com.google.cloud.essentialcontacts.v1.Contact.Builder.class); + com.google.cloud.essentialcontacts.v1.Contact.class, + com.google.cloud.essentialcontacts.v1.Contact.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.Contact.newBuilder() @@ -713,16 +818,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -746,9 +850,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; } @java.lang.Override @@ -767,12 +871,14 @@ public com.google.cloud.essentialcontacts.v1.Contact build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.Contact buildPartial() { - com.google.cloud.essentialcontacts.v1.Contact result = new com.google.cloud.essentialcontacts.v1.Contact(this); + com.google.cloud.essentialcontacts.v1.Contact result = + new com.google.cloud.essentialcontacts.v1.Contact(this); int from_bitField0_ = bitField0_; result.name_ = name_; result.email_ = email_; if (((bitField0_ & 0x00000001) != 0)) { - notificationCategorySubscriptions_ = java.util.Collections.unmodifiableList(notificationCategorySubscriptions_); + notificationCategorySubscriptions_ = + java.util.Collections.unmodifiableList(notificationCategorySubscriptions_); bitField0_ = (bitField0_ & ~0x00000001); } result.notificationCategorySubscriptions_ = notificationCategorySubscriptions_; @@ -791,38 +897,39 @@ public com.google.cloud.essentialcontacts.v1.Contact buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.Contact) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.Contact)other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.Contact) other); } else { super.mergeFrom(other); return this; @@ -887,23 +994,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * The identifier for the contact.
      * Format: {resource_type}/{resource_id}/contacts/{contact_id}
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -912,21 +1022,22 @@ public java.lang.String getName() { } } /** + * + * *
      * The identifier for the contact.
      * Format: {resource_type}/{resource_id}/contacts/{contact_id}
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -934,57 +1045,64 @@ public java.lang.String getName() { } } /** + * + * *
      * The identifier for the contact.
      * Format: {resource_type}/{resource_id}/contacts/{contact_id}
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The identifier for the contact.
      * Format: {resource_type}/{resource_id}/contacts/{contact_id}
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The identifier for the contact.
      * Format: {resource_type}/{resource_id}/contacts/{contact_id}
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -992,19 +1110,21 @@ public Builder setNameBytes( private java.lang.Object email_ = ""; /** + * + * *
      * Required. The email address to send notifications to. This does not need to
      * be a Google account.
      * 
* * string email = 2; + * * @return The email. */ public java.lang.String getEmail() { java.lang.Object ref = email_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); email_ = s; return s; @@ -1013,21 +1133,22 @@ public java.lang.String getEmail() { } } /** + * + * *
      * Required. The email address to send notifications to. This does not need to
      * be a Google account.
      * 
* * string email = 2; + * * @return The bytes for email. */ - public com.google.protobuf.ByteString - getEmailBytes() { + public com.google.protobuf.ByteString getEmailBytes() { java.lang.Object ref = email_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); email_ = b; return b; } else { @@ -1035,115 +1156,148 @@ public java.lang.String getEmail() { } } /** + * + * *
      * Required. The email address to send notifications to. This does not need to
      * be a Google account.
      * 
* * string email = 2; + * * @param value The email to set. * @return This builder for chaining. */ - public Builder setEmail( - java.lang.String value) { + public Builder setEmail(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + email_ = value; onChanged(); return this; } /** + * + * *
      * Required. The email address to send notifications to. This does not need to
      * be a Google account.
      * 
* * string email = 2; + * * @return This builder for chaining. */ public Builder clearEmail() { - + email_ = getDefaultInstance().getEmail(); onChanged(); return this; } /** + * + * *
      * Required. The email address to send notifications to. This does not need to
      * be a Google account.
      * 
* * string email = 2; + * * @param value The bytes for email to set. * @return This builder for chaining. */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { + public Builder setEmailBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + email_ = value; onChanged(); return this; } private java.util.List notificationCategorySubscriptions_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNotificationCategorySubscriptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notificationCategorySubscriptions_ = new java.util.ArrayList(notificationCategorySubscriptions_); + notificationCategorySubscriptions_ = + new java.util.ArrayList(notificationCategorySubscriptions_); bitField0_ |= 0x00000001; } } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @return A list containing the notificationCategorySubscriptions. */ - public java.util.List getNotificationCategorySubscriptionsList() { + public java.util.List + getNotificationCategorySubscriptionsList() { return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>(notificationCategorySubscriptions_, notificationCategorySubscriptions_converter_); + java.lang.Integer, com.google.cloud.essentialcontacts.v1.NotificationCategory>( + notificationCategorySubscriptions_, notificationCategorySubscriptions_converter_); } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @return The count of notificationCategorySubscriptions. */ public int getNotificationCategorySubscriptionsCount() { return notificationCategorySubscriptions_.size(); } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param index The index of the element to return. * @return The notificationCategorySubscriptions at the given index. */ - public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategorySubscriptions(int index) { - return notificationCategorySubscriptions_converter_.convert(notificationCategorySubscriptions_.get(index)); + public com.google.cloud.essentialcontacts.v1.NotificationCategory + getNotificationCategorySubscriptions(int index) { + return notificationCategorySubscriptions_converter_.convert( + notificationCategorySubscriptions_.get(index)); } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param index The index to set the value at. * @param value The notificationCategorySubscriptions to set. * @return This builder for chaining. @@ -1159,16 +1313,22 @@ public Builder setNotificationCategorySubscriptions( return this; } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param value The notificationCategorySubscriptions to add. * @return This builder for chaining. */ - public Builder addNotificationCategorySubscriptions(com.google.cloud.essentialcontacts.v1.NotificationCategory value) { + public Builder addNotificationCategorySubscriptions( + com.google.cloud.essentialcontacts.v1.NotificationCategory value) { if (value == null) { throw new NullPointerException(); } @@ -1178,17 +1338,23 @@ public Builder addNotificationCategorySubscriptions(com.google.cloud.essentialco return this; } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param values The notificationCategorySubscriptions to add. * @return This builder for chaining. */ public Builder addAllNotificationCategorySubscriptions( - java.lang.Iterable values) { + java.lang.Iterable + values) { ensureNotificationCategorySubscriptionsIsMutable(); for (com.google.cloud.essentialcontacts.v1.NotificationCategory value : values) { notificationCategorySubscriptions_.add(value.getNumber()); @@ -1197,12 +1363,17 @@ public Builder addAllNotificationCategorySubscriptions( return this; } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @return This builder for chaining. */ public Builder clearNotificationCategorySubscriptions() { @@ -1212,56 +1383,77 @@ public Builder clearNotificationCategorySubscriptions() { return this; } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * @return A list containing the enum numeric values on the wire for notificationCategorySubscriptions. + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * + * @return A list containing the enum numeric values on the wire for + * notificationCategorySubscriptions. */ - public java.util.List - getNotificationCategorySubscriptionsValueList() { + public java.util.List getNotificationCategorySubscriptionsValueList() { return java.util.Collections.unmodifiableList(notificationCategorySubscriptions_); } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param index The index of the value to return. - * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given index. + * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given + * index. */ public int getNotificationCategorySubscriptionsValue(int index) { return notificationCategorySubscriptions_.get(index); } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param index The index of the value to return. - * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given index. + * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given + * index. * @return This builder for chaining. */ - public Builder setNotificationCategorySubscriptionsValue( - int index, int value) { + public Builder setNotificationCategorySubscriptionsValue(int index, int value) { ensureNotificationCategorySubscriptionsIsMutable(); notificationCategorySubscriptions_.set(index, value); onChanged(); return this; } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param value The enum numeric value on the wire for notificationCategorySubscriptions to add. * @return This builder for chaining. */ @@ -1272,13 +1464,19 @@ public Builder addNotificationCategorySubscriptionsValue(int value) { return this; } /** + * + * *
      * The categories of notifications that the contact will receive
      * communications for.
      * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * @param values The enum numeric values on the wire for notificationCategorySubscriptions to add. + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * + * @param values The enum numeric values on the wire for notificationCategorySubscriptions to + * add. * @return This builder for chaining. */ public Builder addAllNotificationCategorySubscriptionsValue( @@ -1293,6 +1491,8 @@ public Builder addAllNotificationCategorySubscriptionsValue( private java.lang.Object languageTag_ = ""; /** + * + * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1301,13 +1501,13 @@ public Builder addAllNotificationCategorySubscriptionsValue(
      * 
* * string language_tag = 4; + * * @return The languageTag. */ public java.lang.String getLanguageTag() { java.lang.Object ref = languageTag_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); languageTag_ = s; return s; @@ -1316,6 +1516,8 @@ public java.lang.String getLanguageTag() { } } /** + * + * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1324,15 +1526,14 @@ public java.lang.String getLanguageTag() {
      * 
* * string language_tag = 4; + * * @return The bytes for languageTag. */ - public com.google.protobuf.ByteString - getLanguageTagBytes() { + public com.google.protobuf.ByteString getLanguageTagBytes() { java.lang.Object ref = languageTag_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); languageTag_ = b; return b; } else { @@ -1340,6 +1541,8 @@ public java.lang.String getLanguageTag() { } } /** + * + * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1348,20 +1551,22 @@ public java.lang.String getLanguageTag() {
      * 
* * string language_tag = 4; + * * @param value The languageTag to set. * @return This builder for chaining. */ - public Builder setLanguageTag( - java.lang.String value) { + public Builder setLanguageTag(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + languageTag_ = value; onChanged(); return this; } /** + * + * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1370,15 +1575,18 @@ public Builder setLanguageTag(
      * 
* * string language_tag = 4; + * * @return This builder for chaining. */ public Builder clearLanguageTag() { - + languageTag_ = getDefaultInstance().getLanguageTag(); onChanged(); return this; } /** + * + * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1387,16 +1595,16 @@ public Builder clearLanguageTag() {
      * 
* * string language_tag = 4; + * * @param value The bytes for languageTag to set. * @return This builder for chaining. */ - public Builder setLanguageTagBytes( - com.google.protobuf.ByteString value) { + public Builder setLanguageTagBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + languageTag_ = value; onChanged(); return this; @@ -1404,55 +1612,71 @@ public Builder setLanguageTagBytes( private int validationState_ = 0; /** + * + * *
      * The validity of the contact. A contact is considered valid if it is the
      * correct recipient for notifications for a particular resource.
      * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * * @return The enum numeric value on the wire for validationState. */ - @java.lang.Override public int getValidationStateValue() { + @java.lang.Override + public int getValidationStateValue() { return validationState_; } /** + * + * *
      * The validity of the contact. A contact is considered valid if it is the
      * correct recipient for notifications for a particular resource.
      * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * * @param value The enum numeric value on the wire for validationState to set. * @return This builder for chaining. */ public Builder setValidationStateValue(int value) { - + validationState_ = value; onChanged(); return this; } /** + * + * *
      * The validity of the contact. A contact is considered valid if it is the
      * correct recipient for notifications for a particular resource.
      * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * * @return The validationState. */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.ValidationState getValidationState() { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.ValidationState result = com.google.cloud.essentialcontacts.v1.ValidationState.valueOf(validationState_); - return result == null ? com.google.cloud.essentialcontacts.v1.ValidationState.UNRECOGNIZED : result; + com.google.cloud.essentialcontacts.v1.ValidationState result = + com.google.cloud.essentialcontacts.v1.ValidationState.valueOf(validationState_); + return result == null + ? com.google.cloud.essentialcontacts.v1.ValidationState.UNRECOGNIZED + : result; } /** + * + * *
      * The validity of the contact. A contact is considered valid if it is the
      * correct recipient for notifications for a particular resource.
      * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * * @param value The validationState to set. * @return This builder for chaining. */ @@ -1460,22 +1684,25 @@ public Builder setValidationState(com.google.cloud.essentialcontacts.v1.Validati if (value == null) { throw new NullPointerException(); } - + validationState_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * The validity of the contact. A contact is considered valid if it is the
      * correct recipient for notifications for a particular resource.
      * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * * @return This builder for chaining. */ public Builder clearValidationState() { - + validationState_ = 0; onChanged(); return this; @@ -1483,8 +1710,13 @@ public Builder clearValidationState() { private com.google.protobuf.Timestamp validateTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> validateTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + validateTimeBuilder_; /** + * + * *
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1492,12 +1724,15 @@ public Builder clearValidationState() {
      * 
* * .google.protobuf.Timestamp validate_time = 9; + * * @return Whether the validateTime field is set. */ public boolean hasValidateTime() { return validateTimeBuilder_ != null || validateTime_ != null; } /** + * + * *
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1505,16 +1740,21 @@ public boolean hasValidateTime() {
      * 
* * .google.protobuf.Timestamp validate_time = 9; + * * @return The validateTime. */ public com.google.protobuf.Timestamp getValidateTime() { if (validateTimeBuilder_ == null) { - return validateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validateTime_; + return validateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : validateTime_; } else { return validateTimeBuilder_.getMessage(); } } /** + * + * *
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1537,6 +1777,8 @@ public Builder setValidateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1545,8 +1787,7 @@ public Builder setValidateTime(com.google.protobuf.Timestamp value) {
      *
      * .google.protobuf.Timestamp validate_time = 9;
      */
-    public Builder setValidateTime(
-        com.google.protobuf.Timestamp.Builder builderForValue) {
+    public Builder setValidateTime(com.google.protobuf.Timestamp.Builder builderForValue) {
       if (validateTimeBuilder_ == null) {
         validateTime_ = builderForValue.build();
         onChanged();
@@ -1557,6 +1798,8 @@ public Builder setValidateTime(
       return this;
     }
     /**
+     *
+     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1569,7 +1812,9 @@ public Builder mergeValidateTime(com.google.protobuf.Timestamp value) {
       if (validateTimeBuilder_ == null) {
         if (validateTime_ != null) {
           validateTime_ =
-            com.google.protobuf.Timestamp.newBuilder(validateTime_).mergeFrom(value).buildPartial();
+              com.google.protobuf.Timestamp.newBuilder(validateTime_)
+                  .mergeFrom(value)
+                  .buildPartial();
         } else {
           validateTime_ = value;
         }
@@ -1581,6 +1826,8 @@ public Builder mergeValidateTime(com.google.protobuf.Timestamp value) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1601,6 +1848,8 @@ public Builder clearValidateTime() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1610,11 +1859,13 @@ public Builder clearValidateTime() {
      * .google.protobuf.Timestamp validate_time = 9;
      */
     public com.google.protobuf.Timestamp.Builder getValidateTimeBuilder() {
-      
+
       onChanged();
       return getValidateTimeFieldBuilder().getBuilder();
     }
     /**
+     *
+     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1627,11 +1878,14 @@ public com.google.protobuf.TimestampOrBuilder getValidateTimeOrBuilder() {
       if (validateTimeBuilder_ != null) {
         return validateTimeBuilder_.getMessageOrBuilder();
       } else {
-        return validateTime_ == null ?
-            com.google.protobuf.Timestamp.getDefaultInstance() : validateTime_;
+        return validateTime_ == null
+            ? com.google.protobuf.Timestamp.getDefaultInstance()
+            : validateTime_;
       }
     }
     /**
+     *
+     *
      * 
      * The last time the validation_state was updated, either manually or
      * automatically. A contact is considered stale if its validation state was
@@ -1641,21 +1895,24 @@ public com.google.protobuf.TimestampOrBuilder getValidateTimeOrBuilder() {
      * .google.protobuf.Timestamp validate_time = 9;
      */
     private com.google.protobuf.SingleFieldBuilderV3<
-        com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> 
+            com.google.protobuf.Timestamp,
+            com.google.protobuf.Timestamp.Builder,
+            com.google.protobuf.TimestampOrBuilder>
         getValidateTimeFieldBuilder() {
       if (validateTimeBuilder_ == null) {
-        validateTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-            com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
-                getValidateTime(),
-                getParentForChildren(),
-                isClean());
+        validateTimeBuilder_ =
+            new com.google.protobuf.SingleFieldBuilderV3<
+                com.google.protobuf.Timestamp,
+                com.google.protobuf.Timestamp.Builder,
+                com.google.protobuf.TimestampOrBuilder>(
+                getValidateTime(), getParentForChildren(), isClean());
         validateTime_ = null;
       }
       return validateTimeBuilder_;
     }
+
     @java.lang.Override
-    public final Builder setUnknownFields(
-        final com.google.protobuf.UnknownFieldSet unknownFields) {
+    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
       return super.setUnknownFields(unknownFields);
     }
 
@@ -1665,12 +1922,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.Contact)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.Contact)
   private static final com.google.cloud.essentialcontacts.v1.Contact DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.Contact();
   }
@@ -1679,16 +1936,16 @@ public static com.google.cloud.essentialcontacts.v1.Contact getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Contact parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return new Contact(input, extensionRegistry);
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Contact parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new Contact(input, extensionRegistry);
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1703,6 +1960,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.essentialcontacts.v1.Contact getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java
rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java
similarity index 72%
rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java
rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java
index 65963fa2..5ec6c0eb 100644
--- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java
+++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ContactOrBuilder.java
@@ -1,111 +1,167 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/essentialcontacts/v1/service.proto
 
 package com.google.cloud.essentialcontacts.v1;
 
-public interface ContactOrBuilder extends
+public interface ContactOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.Contact)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The identifier for the contact.
    * Format: {resource_type}/{resource_id}/contacts/{contact_id}
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The identifier for the contact.
    * Format: {resource_type}/{resource_id}/contacts/{contact_id}
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * Required. The email address to send notifications to. This does not need to
    * be a Google account.
    * 
* * string email = 2; + * * @return The email. */ java.lang.String getEmail(); /** + * + * *
    * Required. The email address to send notifications to. This does not need to
    * be a Google account.
    * 
* * string email = 2; + * * @return The bytes for email. */ - com.google.protobuf.ByteString - getEmailBytes(); + com.google.protobuf.ByteString getEmailBytes(); /** + * + * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @return A list containing the notificationCategorySubscriptions. */ - java.util.List getNotificationCategorySubscriptionsList(); + java.util.List + getNotificationCategorySubscriptionsList(); /** + * + * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @return The count of notificationCategorySubscriptions. */ int getNotificationCategorySubscriptionsCount(); /** + * + * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param index The index of the element to return. * @return The notificationCategorySubscriptions at the given index. */ - com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategorySubscriptions(int index); + com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategorySubscriptions( + int index); /** + * + * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; - * @return A list containing the enum numeric values on the wire for notificationCategorySubscriptions. + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * + * @return A list containing the enum numeric values on the wire for + * notificationCategorySubscriptions. */ - java.util.List - getNotificationCategorySubscriptionsValueList(); + java.util.List getNotificationCategorySubscriptionsValueList(); /** + * + * *
    * The categories of notifications that the contact will receive
    * communications for.
    * 
* - * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * repeated .google.cloud.essentialcontacts.v1.NotificationCategory notification_category_subscriptions = 3; + * + * * @param index The index of the value to return. - * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given index. + * @return The enum numeric value on the wire of notificationCategorySubscriptions at the given + * index. */ int getNotificationCategorySubscriptionsValue(int index); /** + * + * *
    * The preferred language for notifications, as a ISO 639-1 language code. See
    * [Supported
@@ -114,10 +170,13 @@ public interface ContactOrBuilder extends
    * 
* * string language_tag = 4; + * * @return The languageTag. */ java.lang.String getLanguageTag(); /** + * + * *
    * The preferred language for notifications, as a ISO 639-1 language code. See
    * [Supported
@@ -126,33 +185,41 @@ public interface ContactOrBuilder extends
    * 
* * string language_tag = 4; + * * @return The bytes for languageTag. */ - com.google.protobuf.ByteString - getLanguageTagBytes(); + com.google.protobuf.ByteString getLanguageTagBytes(); /** + * + * *
    * The validity of the contact. A contact is considered valid if it is the
    * correct recipient for notifications for a particular resource.
    * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * * @return The enum numeric value on the wire for validationState. */ int getValidationStateValue(); /** + * + * *
    * The validity of the contact. A contact is considered valid if it is the
    * correct recipient for notifications for a particular resource.
    * 
* * .google.cloud.essentialcontacts.v1.ValidationState validation_state = 8; + * * @return The validationState. */ com.google.cloud.essentialcontacts.v1.ValidationState getValidationState(); /** + * + * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
@@ -160,10 +227,13 @@ public interface ContactOrBuilder extends
    * 
* * .google.protobuf.Timestamp validate_time = 9; + * * @return Whether the validateTime field is set. */ boolean hasValidateTime(); /** + * + * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
@@ -171,10 +241,13 @@ public interface ContactOrBuilder extends
    * 
* * .google.protobuf.Timestamp validate_time = 9; + * * @return The validateTime. */ com.google.protobuf.Timestamp getValidateTime(); /** + * + * *
    * The last time the validation_state was updated, either manually or
    * automatically. A contact is considered stale if its validation state was
diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java
similarity index 63%
rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java
rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java
index 783af329..28f6b2e9 100644
--- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java
+++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequest.java
@@ -1,40 +1,57 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/essentialcontacts/v1/service.proto
 
 package com.google.cloud.essentialcontacts.v1;
 
 /**
+ *
+ *
  * 
  * Request message for the CreateContact method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.CreateContactRequest} */ -public final class CreateContactRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class CreateContactRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.CreateContactRequest) CreateContactRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CreateContactRequest.newBuilder() to construct. private CreateContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CreateContactRequest() { parent_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CreateContactRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private CreateContactRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,32 +70,36 @@ private CreateContactRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 18: { - com.google.cloud.essentialcontacts.v1.Contact.Builder subBuilder = null; - if (contact_ != null) { - subBuilder = contact_.toBuilder(); + parent_ = s; + break; } - contact_ = input.readMessage(com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contact_); - contact_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.essentialcontacts.v1.Contact.Builder subBuilder = null; + if (contact_ != null) { + subBuilder = contact_.toBuilder(); + } + contact_ = + input.readMessage( + com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(contact_); + contact_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -86,36 +107,43 @@ private CreateContactRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, com.google.cloud.essentialcontacts.v1.CreateContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, + com.google.cloud.essentialcontacts.v1.CreateContactRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The resource to save this contact for.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -124,31 +152,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The resource to save this contact for.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -159,12 +189,17 @@ public java.lang.String getParent() { public static final int CONTACT_FIELD_NUMBER = 2; private com.google.cloud.essentialcontacts.v1.Contact contact_; /** + * + * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the contact field is set. */ @java.lang.Override @@ -172,25 +207,36 @@ public boolean hasContact() { return contact_ != null; } /** + * + * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The contact. */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.Contact getContact() { - return contact_ == null ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; + return contact_ == null + ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() + : contact_; } /** + * + * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder() { @@ -198,6 +244,7 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +256,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -230,8 +276,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (contact_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getContact()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContact()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -241,19 +286,18 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.CreateContactRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.CreateContactRequest other = (com.google.cloud.essentialcontacts.v1.CreateContactRequest) obj; + com.google.cloud.essentialcontacts.v1.CreateContactRequest other = + (com.google.cloud.essentialcontacts.v1.CreateContactRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; + if (!getParent().equals(other.getParent())) return false; if (hasContact() != other.hasContact()) return false; if (hasContact()) { - if (!getContact() - .equals(other.getContact())) return false; + if (!getContact().equals(other.getContact())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -278,117 +322,127 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.CreateContactRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.CreateContactRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.essentialcontacts.v1.CreateContactRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the CreateContact method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.CreateContactRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.CreateContactRequest) com.google.cloud.essentialcontacts.v1.CreateContactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, com.google.cloud.essentialcontacts.v1.CreateContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.CreateContactRequest.class, + com.google.cloud.essentialcontacts.v1.CreateContactRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.CreateContactRequest.newBuilder() @@ -396,16 +450,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -421,9 +474,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; } @java.lang.Override @@ -442,7 +495,8 @@ public com.google.cloud.essentialcontacts.v1.CreateContactRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.CreateContactRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.CreateContactRequest result = new com.google.cloud.essentialcontacts.v1.CreateContactRequest(this); + com.google.cloud.essentialcontacts.v1.CreateContactRequest result = + new com.google.cloud.essentialcontacts.v1.CreateContactRequest(this); result.parent_ = parent_; if (contactBuilder_ == null) { result.contact_ = contact_; @@ -457,38 +511,39 @@ public com.google.cloud.essentialcontacts.v1.CreateContactRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.CreateContactRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.CreateContactRequest)other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.CreateContactRequest) other); } else { super.mergeFrom(other); return this; @@ -496,7 +551,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.CreateContactRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.CreateContactRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.essentialcontacts.v1.CreateContactRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -523,7 +579,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.essentialcontacts.v1.CreateContactRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.essentialcontacts.v1.CreateContactRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -535,20 +592,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The resource to save this contact for.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -557,22 +618,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource to save this contact for.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -580,60 +644,73 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The resource to save this contact for.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The resource to save this contact for.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The resource to save this contact for.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; @@ -641,42 +718,61 @@ public Builder setParentBytes( private com.google.cloud.essentialcontacts.v1.Contact contact_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> contactBuilder_; + com.google.cloud.essentialcontacts.v1.Contact, + com.google.cloud.essentialcontacts.v1.Contact.Builder, + com.google.cloud.essentialcontacts.v1.ContactOrBuilder> + contactBuilder_; /** + * + * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the contact field is set. */ public boolean hasContact() { return contactBuilder_ != null || contact_ != null; } /** + * + * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The contact. */ public com.google.cloud.essentialcontacts.v1.Contact getContact() { if (contactBuilder_ == null) { - return contact_ == null ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; + return contact_ == null + ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() + : contact_; } else { return contactBuilder_.getMessage(); } } /** + * + * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setContact(com.google.cloud.essentialcontacts.v1.Contact value) { if (contactBuilder_ == null) { @@ -692,12 +788,16 @@ public Builder setContact(com.google.cloud.essentialcontacts.v1.Contact value) { return this; } /** + * + * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setContact( com.google.cloud.essentialcontacts.v1.Contact.Builder builderForValue) { @@ -711,18 +811,24 @@ public Builder setContact( return this; } /** + * + * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeContact(com.google.cloud.essentialcontacts.v1.Contact value) { if (contactBuilder_ == null) { if (contact_ != null) { contact_ = - com.google.cloud.essentialcontacts.v1.Contact.newBuilder(contact_).mergeFrom(value).buildPartial(); + com.google.cloud.essentialcontacts.v1.Contact.newBuilder(contact_) + .mergeFrom(value) + .buildPartial(); } else { contact_ = value; } @@ -734,12 +840,16 @@ public Builder mergeContact(com.google.cloud.essentialcontacts.v1.Contact value) return this; } /** + * + * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearContact() { if (contactBuilder_ == null) { @@ -753,58 +863,74 @@ public Builder clearContact() { return this; } /** + * + * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactBuilder() { - + onChanged(); return getContactFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder() { if (contactBuilder_ != null) { return contactBuilder_.getMessageOrBuilder(); } else { - return contact_ == null ? - com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; + return contact_ == null + ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() + : contact_; } } /** + * + * *
      * Required. The contact to create. Must specify an email address and language
      * tag.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> + com.google.cloud.essentialcontacts.v1.Contact, + com.google.cloud.essentialcontacts.v1.Contact.Builder, + com.google.cloud.essentialcontacts.v1.ContactOrBuilder> getContactFieldBuilder() { if (contactBuilder_ == null) { - contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( - getContact(), - getParentForChildren(), - isClean()); + contactBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.essentialcontacts.v1.Contact, + com.google.cloud.essentialcontacts.v1.Contact.Builder, + com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( + getContact(), getParentForChildren(), isClean()); contact_ = null; } return contactBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -814,12 +940,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.CreateContactRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.CreateContactRequest) private static final com.google.cloud.essentialcontacts.v1.CreateContactRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.CreateContactRequest(); } @@ -828,16 +954,16 @@ public static com.google.cloud.essentialcontacts.v1.CreateContactRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateContactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateContactRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateContactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateContactRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -852,6 +978,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.CreateContactRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java similarity index 50% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java index 2c951c66..83bec6cb 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/CreateContactRequestOrBuilder.java @@ -1,63 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface CreateContactRequestOrBuilder extends +public interface CreateContactRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.CreateContactRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The resource to save this contact for.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The resource to save this contact for.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the contact field is set. */ boolean hasContact(); /** + * + * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The contact. */ com.google.cloud.essentialcontacts.v1.Contact getContact(); /** + * + * *
    * Required. The contact to create. Must specify an email address and language
    * tag.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java index a2295f6e..e2419df1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** + * + * *
  * Request message for the DeleteContact method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.DeleteContactRequest} */ -public final class DeleteContactRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DeleteContactRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.DeleteContactRequest) DeleteContactRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DeleteContactRequest.newBuilder() to construct. private DeleteContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DeleteContactRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DeleteContactRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DeleteContactRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private DeleteContactRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private DeleteContactRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, com.google.cloud.essentialcontacts.v1.DeleteContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, + com.google.cloud.essentialcontacts.v1.DeleteContactRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the contact to delete.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -103,7 +125,10 @@ private DeleteContactRequest(
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -112,14 +137,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the contact to delete.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -127,17 +153,18 @@ public java.lang.String getName() {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -146,6 +173,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -182,15 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.DeleteContactRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.DeleteContactRequest other = (com.google.cloud.essentialcontacts.v1.DeleteContactRequest) obj; + com.google.cloud.essentialcontacts.v1.DeleteContactRequest other = + (com.google.cloud.essentialcontacts.v1.DeleteContactRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -210,117 +237,127 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.DeleteContactRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.essentialcontacts.v1.DeleteContactRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the DeleteContact method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.DeleteContactRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.DeleteContactRequest) com.google.cloud.essentialcontacts.v1.DeleteContactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, com.google.cloud.essentialcontacts.v1.DeleteContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.DeleteContactRequest.class, + com.google.cloud.essentialcontacts.v1.DeleteContactRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.DeleteContactRequest.newBuilder() @@ -328,16 +365,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; } @java.lang.Override @@ -368,7 +404,8 @@ public com.google.cloud.essentialcontacts.v1.DeleteContactRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.DeleteContactRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.DeleteContactRequest result = new com.google.cloud.essentialcontacts.v1.DeleteContactRequest(this); + com.google.cloud.essentialcontacts.v1.DeleteContactRequest result = + new com.google.cloud.essentialcontacts.v1.DeleteContactRequest(this); result.name_ = name_; onBuilt(); return result; @@ -378,38 +415,39 @@ public com.google.cloud.essentialcontacts.v1.DeleteContactRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.DeleteContactRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.DeleteContactRequest)other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.DeleteContactRequest) other); } else { super.mergeFrom(other); return this; @@ -417,7 +455,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.DeleteContactRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.DeleteContactRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.essentialcontacts.v1.DeleteContactRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -441,7 +480,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.essentialcontacts.v1.DeleteContactRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.essentialcontacts.v1.DeleteContactRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -453,6 +493,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -460,14 +502,16 @@ public Builder mergeFrom(
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -476,6 +520,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -483,16 +529,17 @@ public java.lang.String getName() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -500,6 +547,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -507,21 +556,25 @@ public java.lang.String getName() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -529,16 +582,21 @@ public Builder setName(
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -546,24 +604,26 @@ public Builder clearName() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -573,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.DeleteContactRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.DeleteContactRequest) private static final com.google.cloud.essentialcontacts.v1.DeleteContactRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.DeleteContactRequest(); } @@ -587,16 +647,16 @@ public static com.google.cloud.essentialcontacts.v1.DeleteContactRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteContactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteContactRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteContactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteContactRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -611,6 +671,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.DeleteContactRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java new file mode 100644 index 00000000..1e0142ee --- /dev/null +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/DeleteContactRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/essentialcontacts/v1/service.proto + +package com.google.cloud.essentialcontacts.v1; + +public interface DeleteContactRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.DeleteContactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the contact to delete.
+   * Format: organizations/{organization_id}/contacts/{contact_id},
+   * folders/{folder_id}/contacts/{contact_id} or
+   * projects/{project_id}/contacts/{contact_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the contact to delete.
+   * Format: organizations/{organization_id}/contacts/{contact_id},
+   * folders/{folder_id}/contacts/{contact_id} or
+   * projects/{project_id}/contacts/{contact_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java new file mode 100644 index 00000000..b6e5f884 --- /dev/null +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EnumsProto.java @@ -0,0 +1,61 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/essentialcontacts/v1/enums.proto + +package com.google.cloud.essentialcontacts.v1; + +public final class EnumsProto { + private EnumsProto() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n-google/cloud/essentialcontacts/v1/enum" + + "s.proto\022!google.cloud.essentialcontacts." + + "v1*\271\001\n\024NotificationCategory\022%\n!NOTIFICAT" + + "ION_CATEGORY_UNSPECIFIED\020\000\022\007\n\003ALL\020\002\022\016\n\nS" + + "USPENSION\020\003\022\014\n\010SECURITY\020\005\022\r\n\tTECHNICAL\020\006" + + "\022\013\n\007BILLING\020\007\022\t\n\005LEGAL\020\010\022\023\n\017PRODUCT_UPDA" + + "TES\020\t\022\027\n\023TECHNICAL_INCIDENTS\020\n*K\n\017Valida" + + "tionState\022 \n\034VALIDATION_STATE_UNSPECIFIE" + + "D\020\000\022\t\n\005VALID\020\001\022\013\n\007INVALID\020\002B\370\001\n%com.goog" + + "le.cloud.essentialcontacts.v1B\nEnumsProt" + + "oP\001ZRgoogle.golang.org/genproto/googleap" + + "is/cloud/essentialcontacts/v1;essentialc" + + "ontacts\252\002!Google.Cloud.EssentialContacts" + + ".V1\312\002!Google\\Cloud\\EssentialContacts\\V1\352" + + "\002$Google::Cloud::EssentialContacts::V1b\006" + + "proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/FolderName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java index 765d1b1c..cdfb63c5 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequest.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** + * + * *
  * Request message for the GetContact method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.GetContactRequest} */ -public final class GetContactRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetContactRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.GetContactRequest) GetContactRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetContactRequest.newBuilder() to construct. private GetContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetContactRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetContactRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private GetContactRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private GetContactRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +91,33 @@ private GetContactRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.GetContactRequest.class, com.google.cloud.essentialcontacts.v1.GetContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.GetContactRequest.class, + com.google.cloud.essentialcontacts.v1.GetContactRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * Required. The name of the contact to retrieve.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -103,7 +125,10 @@ private GetContactRequest(
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -112,14 +137,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Required. The name of the contact to retrieve.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -127,17 +153,18 @@ public java.lang.String getName() {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -146,6 +173,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -157,8 +185,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -182,15 +209,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.GetContactRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.GetContactRequest other = (com.google.cloud.essentialcontacts.v1.GetContactRequest) obj; + com.google.cloud.essentialcontacts.v1.GetContactRequest other = + (com.google.cloud.essentialcontacts.v1.GetContactRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -210,117 +237,127 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.GetContactRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.GetContactRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.essentialcontacts.v1.GetContactRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the GetContact method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.GetContactRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.GetContactRequest) com.google.cloud.essentialcontacts.v1.GetContactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.GetContactRequest.class, com.google.cloud.essentialcontacts.v1.GetContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.GetContactRequest.class, + com.google.cloud.essentialcontacts.v1.GetContactRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.GetContactRequest.newBuilder() @@ -328,16 +365,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -347,9 +383,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; } @java.lang.Override @@ -368,7 +404,8 @@ public com.google.cloud.essentialcontacts.v1.GetContactRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.GetContactRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.GetContactRequest result = new com.google.cloud.essentialcontacts.v1.GetContactRequest(this); + com.google.cloud.essentialcontacts.v1.GetContactRequest result = + new com.google.cloud.essentialcontacts.v1.GetContactRequest(this); result.name_ = name_; onBuilt(); return result; @@ -378,38 +415,39 @@ public com.google.cloud.essentialcontacts.v1.GetContactRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.GetContactRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.GetContactRequest)other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.GetContactRequest) other); } else { super.mergeFrom(other); return this; @@ -417,7 +455,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.GetContactRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.GetContactRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.essentialcontacts.v1.GetContactRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -441,7 +480,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.essentialcontacts.v1.GetContactRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.essentialcontacts.v1.GetContactRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -453,6 +493,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -460,14 +502,16 @@ public Builder mergeFrom(
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -476,6 +520,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -483,16 +529,17 @@ public java.lang.String getName() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -500,6 +547,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -507,21 +556,25 @@ public java.lang.String getName() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -529,16 +582,21 @@ public Builder setName(
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -546,24 +604,26 @@ public Builder clearName() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -573,12 +633,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.GetContactRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.GetContactRequest) private static final com.google.cloud.essentialcontacts.v1.GetContactRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.GetContactRequest(); } @@ -587,16 +647,16 @@ public static com.google.cloud.essentialcontacts.v1.GetContactRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetContactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetContactRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetContactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetContactRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -611,6 +671,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.GetContactRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java new file mode 100644 index 00000000..5d03d56a --- /dev/null +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/GetContactRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/essentialcontacts/v1/service.proto + +package com.google.cloud.essentialcontacts.v1; + +public interface GetContactRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.GetContactRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the contact to retrieve.
+   * Format: organizations/{organization_id}/contacts/{contact_id},
+   * folders/{folder_id}/contacts/{contact_id} or
+   * projects/{project_id}/contacts/{contact_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the contact to retrieve.
+   * Format: organizations/{organization_id}/contacts/{contact_id},
+   * folders/{folder_id}/contacts/{contact_id} or
+   * projects/{project_id}/contacts/{contact_id}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java index 5196c18c..d6d50041 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** + * + * *
  * Request message for the ListContacts method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ListContactsRequest} */ -public final class ListContactsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListContactsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.ListContactsRequest) ListContactsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListContactsRequest.newBuilder() to construct. private ListContactsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListContactsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListContactsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListContactsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListContactsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListContactsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,36 +104,43 @@ private ListContactsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, com.google.cloud.essentialcontacts.v1.ListContactsRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, + com.google.cloud.essentialcontacts.v1.ListContactsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. The parent resource name.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -123,31 +149,33 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. The parent resource name.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -158,6 +186,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -166,6 +196,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -176,6 +207,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -184,6 +217,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -192,14 +226,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -208,16 +243,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -226,6 +260,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -237,8 +272,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -261,8 +295,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -275,19 +308,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.ListContactsRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.ListContactsRequest other = (com.google.cloud.essentialcontacts.v1.ListContactsRequest) obj; + com.google.cloud.essentialcontacts.v1.ListContactsRequest other = + (com.google.cloud.essentialcontacts.v1.ListContactsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -311,117 +342,127 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ListContactsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.ListContactsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.essentialcontacts.v1.ListContactsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the ListContacts method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ListContactsRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.ListContactsRequest) com.google.cloud.essentialcontacts.v1.ListContactsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, com.google.cloud.essentialcontacts.v1.ListContactsRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.ListContactsRequest.class, + com.google.cloud.essentialcontacts.v1.ListContactsRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.ListContactsRequest.newBuilder() @@ -429,16 +470,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -452,9 +492,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; } @java.lang.Override @@ -473,7 +513,8 @@ public com.google.cloud.essentialcontacts.v1.ListContactsRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.ListContactsRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.ListContactsRequest result = new com.google.cloud.essentialcontacts.v1.ListContactsRequest(this); + com.google.cloud.essentialcontacts.v1.ListContactsRequest result = + new com.google.cloud.essentialcontacts.v1.ListContactsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -485,38 +526,39 @@ public com.google.cloud.essentialcontacts.v1.ListContactsRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.ListContactsRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.ListContactsRequest)other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.ListContactsRequest) other); } else { super.mergeFrom(other); return this; @@ -524,7 +566,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ListContactsRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.ListContactsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.essentialcontacts.v1.ListContactsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -555,7 +598,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.essentialcontacts.v1.ListContactsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.essentialcontacts.v1.ListContactsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -567,20 +611,24 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent resource name.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -589,22 +637,25 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -612,67 +663,82 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent resource name.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. The parent resource name.
      * Format: organizations/{organization_id}, folders/{folder_id} or
      * projects/{project_id}
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -681,6 +747,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -688,6 +755,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -696,16 +765,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * Optional. The maximum number of results to return from this request.
      * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -714,10 +786,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -725,6 +798,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -733,13 +808,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -748,6 +823,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -756,15 +833,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -772,6 +848,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -780,20 +858,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -802,15 +882,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * Optional. If present, retrieves the next batch of results from the
      * preceding call to this method. `page_token` must be the value of
@@ -819,23 +902,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -845,12 +928,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.ListContactsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.ListContactsRequest) private static final com.google.cloud.essentialcontacts.v1.ListContactsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.ListContactsRequest(); } @@ -859,16 +942,16 @@ public static com.google.cloud.essentialcontacts.v1.ListContactsRequest getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListContactsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListContactsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContactsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListContactsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -883,6 +966,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.ListContactsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java index e83d817b..fb569d12 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsRequestOrBuilder.java @@ -1,37 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface ListContactsRequestOrBuilder extends +public interface ListContactsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.ListContactsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent resource name.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. The parent resource name.
    * Format: organizations/{organization_id}, folders/{folder_id} or
    * projects/{project_id}
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * Optional. The maximum number of results to return from this request.
    * Non-positive values are ignored. The presence of `next_page_token` in the
@@ -40,11 +67,14 @@ public interface ListContactsRequestOrBuilder extends
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -53,10 +83,13 @@ public interface ListContactsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * Optional. If present, retrieves the next batch of results from the
    * preceding call to this method. `page_token` must be the value of
@@ -65,8 +98,8 @@ public interface ListContactsRequestOrBuilder extends
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java index c5754082..3b742b5e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponse.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** + * + * *
  * Response message for the ListContacts method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ListContactsResponse} */ -public final class ListContactsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListContactsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.ListContactsResponse) ListContactsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListContactsResponse.newBuilder() to construct. private ListContactsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListContactsResponse() { contacts_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,16 +44,15 @@ private ListContactsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListContactsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListContactsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,32 @@ private ListContactsResponse( case 0: done = true; break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contacts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contacts_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + contacts_.add( + input.readMessage( + com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry)); + break; } - contacts_.add( - input.readMessage(com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +105,7 @@ private ListContactsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { contacts_ = java.util.Collections.unmodifiableList(contacts_); @@ -94,22 +114,27 @@ private ListContactsResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, com.google.cloud.essentialcontacts.v1.ListContactsResponse.Builder.class); + com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, + com.google.cloud.essentialcontacts.v1.ListContactsResponse.Builder.class); } public static final int CONTACTS_FIELD_NUMBER = 1; private java.util.List contacts_; /** + * + * *
    * The contacts for the specified resource.
    * 
@@ -121,6 +146,8 @@ public java.util.List getContacts return contacts_; } /** + * + * *
    * The contacts for the specified resource.
    * 
@@ -128,11 +155,13 @@ public java.util.List getContacts * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ @java.lang.Override - public java.util.List + public java.util.List getContactsOrBuilderList() { return contacts_; } /** + * + * *
    * The contacts for the specified resource.
    * 
@@ -144,6 +173,8 @@ public int getContactsCount() { return contacts_.size(); } /** + * + * *
    * The contacts for the specified resource.
    * 
@@ -155,6 +186,8 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) { return contacts_.get(index); } /** + * + * *
    * The contacts for the specified resource.
    * 
@@ -162,14 +195,15 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) { * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ @java.lang.Override - public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder( - int index) { + public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index) { return contacts_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -178,6 +212,7 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -186,14 +221,15 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -202,16 +238,15 @@ public java.lang.String getNextPageToken() {
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -220,6 +255,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -231,8 +267,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < contacts_.size(); i++) { output.writeMessage(1, contacts_.get(i)); } @@ -249,8 +284,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < contacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, contacts_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contacts_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -263,17 +297,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.ListContactsResponse)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.ListContactsResponse other = (com.google.cloud.essentialcontacts.v1.ListContactsResponse) obj; + com.google.cloud.essentialcontacts.v1.ListContactsResponse other = + (com.google.cloud.essentialcontacts.v1.ListContactsResponse) obj; - if (!getContactsList() - .equals(other.getContactsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getContactsList().equals(other.getContactsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -297,117 +330,127 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.ListContactsResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.ListContactsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.essentialcontacts.v1.ListContactsResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Response message for the ListContacts method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.ListContactsResponse} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.ListContactsResponse) com.google.cloud.essentialcontacts.v1.ListContactsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, com.google.cloud.essentialcontacts.v1.ListContactsResponse.Builder.class); + com.google.cloud.essentialcontacts.v1.ListContactsResponse.class, + com.google.cloud.essentialcontacts.v1.ListContactsResponse.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.ListContactsResponse.newBuilder() @@ -415,17 +458,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getContactsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +484,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; } @java.lang.Override @@ -462,7 +505,8 @@ public com.google.cloud.essentialcontacts.v1.ListContactsResponse build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.ListContactsResponse buildPartial() { - com.google.cloud.essentialcontacts.v1.ListContactsResponse result = new com.google.cloud.essentialcontacts.v1.ListContactsResponse(this); + com.google.cloud.essentialcontacts.v1.ListContactsResponse result = + new com.google.cloud.essentialcontacts.v1.ListContactsResponse(this); int from_bitField0_ = bitField0_; if (contactsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { @@ -482,38 +526,39 @@ public com.google.cloud.essentialcontacts.v1.ListContactsResponse buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.ListContactsResponse) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.ListContactsResponse)other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.ListContactsResponse) other); } else { super.mergeFrom(other); return this; @@ -521,7 +566,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ListContactsResponse other) { - if (other == com.google.cloud.essentialcontacts.v1.ListContactsResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.essentialcontacts.v1.ListContactsResponse.getDefaultInstance()) + return this; if (contactsBuilder_ == null) { if (!other.contacts_.isEmpty()) { if (contacts_.isEmpty()) { @@ -540,9 +586,10 @@ public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.ListContactsRespo contactsBuilder_ = null; contacts_ = other.contacts_; bitField0_ = (bitField0_ & ~0x00000001); - contactsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getContactsFieldBuilder() : null; + contactsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getContactsFieldBuilder() + : null; } else { contactsBuilder_.addAllMessages(other.contacts_); } @@ -571,7 +618,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.essentialcontacts.v1.ListContactsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.essentialcontacts.v1.ListContactsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -580,21 +628,29 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.util.List contacts_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureContactsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - contacts_ = new java.util.ArrayList(contacts_); + contacts_ = + new java.util.ArrayList(contacts_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> contactsBuilder_; + com.google.cloud.essentialcontacts.v1.Contact, + com.google.cloud.essentialcontacts.v1.Contact.Builder, + com.google.cloud.essentialcontacts.v1.ContactOrBuilder> + contactsBuilder_; /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -609,6 +665,8 @@ public java.util.List getContacts } } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -623,6 +681,8 @@ public int getContactsCount() { } } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -637,14 +697,15 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) { } } /** + * + * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public Builder setContacts( - int index, com.google.cloud.essentialcontacts.v1.Contact value) { + public Builder setContacts(int index, com.google.cloud.essentialcontacts.v1.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -658,6 +719,8 @@ public Builder setContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -676,6 +739,8 @@ public Builder setContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -696,14 +761,15 @@ public Builder addContacts(com.google.cloud.essentialcontacts.v1.Contact value) return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public Builder addContacts( - int index, com.google.cloud.essentialcontacts.v1.Contact value) { + public Builder addContacts(int index, com.google.cloud.essentialcontacts.v1.Contact value) { if (contactsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -717,6 +783,8 @@ public Builder addContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -735,6 +803,8 @@ public Builder addContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -753,6 +823,8 @@ public Builder addContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -763,8 +835,7 @@ public Builder addAllContacts( java.lang.Iterable values) { if (contactsBuilder_ == null) { ensureContactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, contacts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_); onChanged(); } else { contactsBuilder_.addAllMessages(values); @@ -772,6 +843,8 @@ public Builder addAllContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -789,6 +862,8 @@ public Builder clearContacts() { return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -806,39 +881,44 @@ public Builder removeContacts(int index) { return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactsBuilder( - int index) { + public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactsBuilder(int index) { return getContactsFieldBuilder().getBuilder(index); } /** + * + * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder( - int index) { + public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index) { if (contactsBuilder_ == null) { - return contacts_.get(index); } else { + return contacts_.get(index); + } else { return contactsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public java.util.List - getContactsOrBuilderList() { + public java.util.List + getContactsOrBuilderList() { if (contactsBuilder_ != null) { return contactsBuilder_.getMessageOrBuilderList(); } else { @@ -846,6 +926,8 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild } } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -853,42 +935,48 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder() { - return getContactsFieldBuilder().addBuilder( - com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance()); + return getContactsFieldBuilder() + .addBuilder(com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance()); } /** + * + * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder( - int index) { - return getContactsFieldBuilder().addBuilder( - index, com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance()); + public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(int index) { + return getContactsFieldBuilder() + .addBuilder(index, com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance()); } /** + * + * *
      * The contacts for the specified resource.
      * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - public java.util.List - getContactsBuilderList() { + public java.util.List + getContactsBuilderList() { return getContactsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> + com.google.cloud.essentialcontacts.v1.Contact, + com.google.cloud.essentialcontacts.v1.Contact.Builder, + com.google.cloud.essentialcontacts.v1.ContactOrBuilder> getContactsFieldBuilder() { if (contactsBuilder_ == null) { - contactsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( - contacts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + contactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.essentialcontacts.v1.Contact, + com.google.cloud.essentialcontacts.v1.Contact.Builder, + com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( + contacts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); contacts_ = null; } return contactsBuilder_; @@ -896,6 +984,8 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder( private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -904,13 +994,13 @@ public com.google.cloud.essentialcontacts.v1.Contact.Builder addContactsBuilder(
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -919,6 +1009,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -927,15 +1019,14 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -943,6 +1034,8 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -951,20 +1044,22 @@ public java.lang.String getNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -973,15 +1068,18 @@ public Builder setNextPageToken(
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * If there are more results than those appearing in this response, then
      * `next_page_token` is included. To get the next set of results, call this
@@ -990,23 +1088,23 @@ public Builder clearNextPageToken() {
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1016,12 +1114,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.ListContactsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.ListContactsResponse) private static final com.google.cloud.essentialcontacts.v1.ListContactsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.ListContactsResponse(); } @@ -1030,16 +1128,16 @@ public static com.google.cloud.essentialcontacts.v1.ListContactsResponse getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListContactsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListContactsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListContactsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListContactsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1054,6 +1152,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.ListContactsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java index ff691bf2..be9b0e65 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ListContactsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface ListContactsResponseOrBuilder extends +public interface ListContactsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.ListContactsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The contacts for the specified resource.
    * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - java.util.List - getContactsList(); + java.util.List getContactsList(); /** + * + * *
    * The contacts for the specified resource.
    * 
@@ -25,6 +44,8 @@ public interface ListContactsResponseOrBuilder extends */ com.google.cloud.essentialcontacts.v1.Contact getContacts(int index); /** + * + * *
    * The contacts for the specified resource.
    * 
@@ -33,25 +54,30 @@ public interface ListContactsResponseOrBuilder extends */ int getContactsCount(); /** + * + * *
    * The contacts for the specified resource.
    * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - java.util.List + java.util.List getContactsOrBuilderList(); /** + * + * *
    * The contacts for the specified resource.
    * 
* * repeated .google.cloud.essentialcontacts.v1.Contact contacts = 1; */ - com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder( - int index); + com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(int index); /** + * + * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -60,10 +86,13 @@ com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * If there are more results than those appearing in this response, then
    * `next_page_token` is included. To get the next set of results, call this
@@ -72,8 +101,8 @@ com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuilder(
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java index 6e8fdacb..ab1a48d9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/NotificationCategory.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/enums.proto package com.google.cloud.essentialcontacts.v1; /** + * + * *
  * The notification categories that an essential contact can be subscribed to.
  * Each notification will be categorized by the sender into one of the following
@@ -13,9 +30,10 @@
  *
  * Protobuf enum {@code google.cloud.essentialcontacts.v1.NotificationCategory}
  */
-public enum NotificationCategory
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum NotificationCategory implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * Notification category is unrecognized or unspecified.
    * 
@@ -24,6 +42,8 @@ public enum NotificationCategory */ NOTIFICATION_CATEGORY_UNSPECIFIED(0), /** + * + * *
    * All notifications related to the resource, including notifications
    * pertaining to categories added in the future.
@@ -33,6 +53,8 @@ public enum NotificationCategory
    */
   ALL(2),
   /**
+   *
+   *
    * 
    * Notifications related to imminent account suspension.
    * 
@@ -41,6 +63,8 @@ public enum NotificationCategory */ SUSPENSION(3), /** + * + * *
    * Notifications related to security/privacy incidents, notifications, and
    * vulnerabilities.
@@ -50,6 +74,8 @@ public enum NotificationCategory
    */
   SECURITY(5),
   /**
+   *
+   *
    * 
    * Notifications related to technical events and issues such as outages,
    * errors, or bugs.
@@ -59,6 +85,8 @@ public enum NotificationCategory
    */
   TECHNICAL(6),
   /**
+   *
+   *
    * 
    * Notifications related to billing and payments notifications, price updates,
    * errors, or credits.
@@ -68,6 +96,8 @@ public enum NotificationCategory
    */
   BILLING(7),
   /**
+   *
+   *
    * 
    * Notifications related to enforcement actions, regulatory compliance, or
    * government notices.
@@ -77,6 +107,8 @@ public enum NotificationCategory
    */
   LEGAL(8),
   /**
+   *
+   *
    * 
    * Notifications related to new versions, product terms updates, or
    * deprecations.
@@ -86,6 +118,8 @@ public enum NotificationCategory
    */
   PRODUCT_UPDATES(9),
   /**
+   *
+   *
    * 
    * Child category of TECHNICAL. If assigned, technical incident notifications
    * will go to these contacts instead of TECHNICAL.
@@ -98,6 +132,8 @@ public enum NotificationCategory
   ;
 
   /**
+   *
+   *
    * 
    * Notification category is unrecognized or unspecified.
    * 
@@ -106,6 +142,8 @@ public enum NotificationCategory */ public static final int NOTIFICATION_CATEGORY_UNSPECIFIED_VALUE = 0; /** + * + * *
    * All notifications related to the resource, including notifications
    * pertaining to categories added in the future.
@@ -115,6 +153,8 @@ public enum NotificationCategory
    */
   public static final int ALL_VALUE = 2;
   /**
+   *
+   *
    * 
    * Notifications related to imminent account suspension.
    * 
@@ -123,6 +163,8 @@ public enum NotificationCategory */ public static final int SUSPENSION_VALUE = 3; /** + * + * *
    * Notifications related to security/privacy incidents, notifications, and
    * vulnerabilities.
@@ -132,6 +174,8 @@ public enum NotificationCategory
    */
   public static final int SECURITY_VALUE = 5;
   /**
+   *
+   *
    * 
    * Notifications related to technical events and issues such as outages,
    * errors, or bugs.
@@ -141,6 +185,8 @@ public enum NotificationCategory
    */
   public static final int TECHNICAL_VALUE = 6;
   /**
+   *
+   *
    * 
    * Notifications related to billing and payments notifications, price updates,
    * errors, or credits.
@@ -150,6 +196,8 @@ public enum NotificationCategory
    */
   public static final int BILLING_VALUE = 7;
   /**
+   *
+   *
    * 
    * Notifications related to enforcement actions, regulatory compliance, or
    * government notices.
@@ -159,6 +207,8 @@ public enum NotificationCategory
    */
   public static final int LEGAL_VALUE = 8;
   /**
+   *
+   *
    * 
    * Notifications related to new versions, product terms updates, or
    * deprecations.
@@ -168,6 +218,8 @@ public enum NotificationCategory
    */
   public static final int PRODUCT_UPDATES_VALUE = 9;
   /**
+   *
+   *
    * 
    * Child category of TECHNICAL. If assigned, technical incident notifications
    * will go to these contacts instead of TECHNICAL.
@@ -177,7 +229,6 @@ public enum NotificationCategory
    */
   public static final int TECHNICAL_INCIDENTS_VALUE = 10;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -202,16 +253,26 @@ public static NotificationCategory valueOf(int value) {
    */
   public static NotificationCategory forNumber(int value) {
     switch (value) {
-      case 0: return NOTIFICATION_CATEGORY_UNSPECIFIED;
-      case 2: return ALL;
-      case 3: return SUSPENSION;
-      case 5: return SECURITY;
-      case 6: return TECHNICAL;
-      case 7: return BILLING;
-      case 8: return LEGAL;
-      case 9: return PRODUCT_UPDATES;
-      case 10: return TECHNICAL_INCIDENTS;
-      default: return null;
+      case 0:
+        return NOTIFICATION_CATEGORY_UNSPECIFIED;
+      case 2:
+        return ALL;
+      case 3:
+        return SUSPENSION;
+      case 5:
+        return SECURITY;
+      case 6:
+        return TECHNICAL;
+      case 7:
+        return BILLING;
+      case 8:
+        return LEGAL;
+      case 9:
+        return PRODUCT_UPDATES;
+      case 10:
+        return TECHNICAL_INCIDENTS;
+      default:
+        return null;
     }
   }
 
@@ -219,28 +280,28 @@ public static NotificationCategory forNumber(int value) {
       internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      NotificationCategory> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public NotificationCategory findValueByNumber(int number) {
-            return NotificationCategory.forNumber(number);
-          }
-        };
 
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+  private static final com.google.protobuf.Internal.EnumLiteMap
+      internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public NotificationCategory findValueByNumber(int number) {
+              return NotificationCategory.forNumber(number);
+            }
+          };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor().getEnumTypes().get(0);
   }
 
@@ -249,8 +310,7 @@ public NotificationCategory findValueByNumber(int number) {
   public static NotificationCategory valueOf(
       com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -266,4 +326,3 @@ private NotificationCategory(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.essentialcontacts.v1.NotificationCategory)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java
rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/OrganizationName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java
rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ProjectName.java
diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java
similarity index 65%
rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java
rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java
index 1ec937dc..c99bfb2f 100644
--- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java
+++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequest.java
@@ -1,24 +1,42 @@
+/*
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 // Generated by the protocol buffer compiler.  DO NOT EDIT!
 // source: google/cloud/essentialcontacts/v1/service.proto
 
 package com.google.cloud.essentialcontacts.v1;
 
 /**
+ *
+ *
  * 
  * Request message for the SendTestMessage method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.SendTestMessageRequest} */ -public final class SendTestMessageRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class SendTestMessageRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.SendTestMessageRequest) SendTestMessageRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use SendTestMessageRequest.newBuilder() to construct. private SendTestMessageRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private SendTestMessageRequest() { contacts_ = com.google.protobuf.LazyStringArrayList.EMPTY; resource_ = ""; @@ -27,16 +45,15 @@ private SendTestMessageRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new SendTestMessageRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private SendTestMessageRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,34 +73,37 @@ private SendTestMessageRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - contacts_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + contacts_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + contacts_.add(s); + break; } - contacts_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - resource_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); + resource_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); - notificationCategory_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + notificationCategory_ = rawValue; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,8 +111,7 @@ private SendTestMessageRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { contacts_ = contacts_.getUnmodifiableView(); @@ -101,22 +120,27 @@ private SendTestMessageRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.Builder.class); } public static final int CONTACTS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList contacts_; /** + * + * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -124,14 +148,18 @@ private SendTestMessageRequest(
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the contacts. */ - public com.google.protobuf.ProtocolStringList - getContactsList() { + public com.google.protobuf.ProtocolStringList getContactsList() { return contacts_; } /** + * + * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -139,13 +167,18 @@ private SendTestMessageRequest(
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The count of contacts. */ public int getContactsCount() { return contacts_.size(); } /** + * + * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -153,7 +186,10 @@ public int getContactsCount() {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The contacts at the given index. */ @@ -161,6 +197,8 @@ public java.lang.String getContacts(int index) { return contacts_.get(index); } /** + * + * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -168,18 +206,22 @@ public java.lang.String getContacts(int index) {
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the contacts at the given index. */ - public com.google.protobuf.ByteString - getContactsBytes(int index) { + public com.google.protobuf.ByteString getContactsBytes(int index) { return contacts_.getByteString(index); } public static final int RESOURCE_FIELD_NUMBER = 2; private volatile java.lang.Object resource_; /** + * + * *
    * Required. The name of the resource to send the test message for. All
    * contacts must either be set directly on this resource or inherited from
@@ -188,7 +230,10 @@ public java.lang.String getContacts(int index) {
    * projects/{project_id}
    * 
* - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ @java.lang.Override @@ -197,14 +242,15 @@ public java.lang.String getResource() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; } } /** + * + * *
    * Required. The name of the resource to send the test message for. All
    * contacts must either be set directly on this resource or inherited from
@@ -213,17 +259,18 @@ public java.lang.String getResource() {
    * projects/{project_id}
    * 
* - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ @java.lang.Override - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -234,33 +281,49 @@ public java.lang.String getResource() { public static final int NOTIFICATION_CATEGORY_FIELD_NUMBER = 3; private int notificationCategory_; /** + * + * *
    * Required. The notification category to send the test message for. All
    * contacts must be subscribed to this category.
    * 
* - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for notificationCategory. */ - @java.lang.Override public int getNotificationCategoryValue() { + @java.lang.Override + public int getNotificationCategoryValue() { return notificationCategory_; } /** + * + * *
    * Required. The notification category to send the test message for. All
    * contacts must be subscribed to this category.
    * 
* - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationCategory. */ - @java.lang.Override public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategory() { + @java.lang.Override + public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategory() { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.NotificationCategory result = com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(notificationCategory_); - return result == null ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED : result; + com.google.cloud.essentialcontacts.v1.NotificationCategory result = + com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(notificationCategory_); + return result == null + ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -272,15 +335,17 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < contacts_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, contacts_.getRaw(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, resource_); } - if (notificationCategory_ != com.google.cloud.essentialcontacts.v1.NotificationCategory.NOTIFICATION_CATEGORY_UNSPECIFIED.getNumber()) { + if (notificationCategory_ + != com.google.cloud.essentialcontacts.v1.NotificationCategory + .NOTIFICATION_CATEGORY_UNSPECIFIED + .getNumber()) { output.writeEnum(3, notificationCategory_); } unknownFields.writeTo(output); @@ -303,9 +368,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, resource_); } - if (notificationCategory_ != com.google.cloud.essentialcontacts.v1.NotificationCategory.NOTIFICATION_CATEGORY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, notificationCategory_); + if (notificationCategory_ + != com.google.cloud.essentialcontacts.v1.NotificationCategory + .NOTIFICATION_CATEGORY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, notificationCategory_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -315,17 +382,16 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.SendTestMessageRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest other = (com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) obj; + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest other = + (com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) obj; - if (!getContactsList() - .equals(other.getContactsList())) return false; - if (!getResource() - .equals(other.getResource())) return false; + if (!getContactsList().equals(other.getContactsList())) return false; + if (!getResource().equals(other.getResource())) return false; if (notificationCategory_ != other.notificationCategory_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -352,117 +418,127 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the SendTestMessage method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.SendTestMessageRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.SendTestMessageRequest) com.google.cloud.essentialcontacts.v1.SendTestMessageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.class, + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.newBuilder() @@ -470,16 +546,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -493,13 +568,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; } @java.lang.Override - public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest getDefaultInstanceForType() { + public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest + getDefaultInstanceForType() { return com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.getDefaultInstance(); } @@ -514,7 +590,8 @@ public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.SendTestMessageRequest result = new com.google.cloud.essentialcontacts.v1.SendTestMessageRequest(this); + com.google.cloud.essentialcontacts.v1.SendTestMessageRequest result = + new com.google.cloud.essentialcontacts.v1.SendTestMessageRequest(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { contacts_ = contacts_.getUnmodifiableView(); @@ -531,38 +608,39 @@ public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.SendTestMessageRequest)other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) other); } else { super.mergeFrom(other); return this; @@ -570,7 +648,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.SendTestMessageRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.essentialcontacts.v1.SendTestMessageRequest.getDefaultInstance()) + return this; if (!other.contacts_.isEmpty()) { if (contacts_.isEmpty()) { contacts_ = other.contacts_; @@ -607,7 +687,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.essentialcontacts.v1.SendTestMessageRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -616,16 +697,21 @@ public Builder mergeFrom( } return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList contacts_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList contacts_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureContactsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { contacts_ = new com.google.protobuf.LazyStringArrayList(contacts_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -633,14 +719,18 @@ private void ensureContactsIsMutable() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the contacts. */ - public com.google.protobuf.ProtocolStringList - getContactsList() { + public com.google.protobuf.ProtocolStringList getContactsList() { return contacts_.getUnmodifiableView(); } /** + * + * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -648,13 +738,18 @@ private void ensureContactsIsMutable() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The count of contacts. */ public int getContactsCount() { return contacts_.size(); } /** + * + * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -662,7 +757,10 @@ public int getContactsCount() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The contacts at the given index. */ @@ -670,6 +768,8 @@ public java.lang.String getContacts(int index) { return contacts_.get(index); } /** + * + * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -677,15 +777,19 @@ public java.lang.String getContacts(int index) {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the contacts at the given index. */ - public com.google.protobuf.ByteString - getContactsBytes(int index) { + public com.google.protobuf.ByteString getContactsBytes(int index) { return contacts_.getByteString(index); } /** + * + * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -693,22 +797,26 @@ public java.lang.String getContacts(int index) {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index to set the value at. * @param value The contacts to set. * @return This builder for chaining. */ - public Builder setContacts( - int index, java.lang.String value) { + public Builder setContacts(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContactsIsMutable(); + throw new NullPointerException(); + } + ensureContactsIsMutable(); contacts_.set(index, value); onChanged(); return this; } /** + * + * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -716,21 +824,25 @@ public Builder setContacts(
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The contacts to add. * @return This builder for chaining. */ - public Builder addContacts( - java.lang.String value) { + public Builder addContacts(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureContactsIsMutable(); + throw new NullPointerException(); + } + ensureContactsIsMutable(); contacts_.add(value); onChanged(); return this; } /** + * + * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -738,19 +850,22 @@ public Builder addContacts(
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param values The contacts to add. * @return This builder for chaining. */ - public Builder addAllContacts( - java.lang.Iterable values) { + public Builder addAllContacts(java.lang.Iterable values) { ensureContactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, contacts_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contacts_); onChanged(); return this; } /** + * + * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -758,7 +873,10 @@ public Builder addAllContacts(
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearContacts() { @@ -768,6 +886,8 @@ public Builder clearContacts() { return this; } /** + * + * *
      * Required. The list of names of the contacts to send a test message to.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -775,16 +895,18 @@ public Builder clearContacts() {
      * projects/{project_id}/contacts/{contact_id}
      * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes of the contacts to add. * @return This builder for chaining. */ - public Builder addContactsBytes( - com.google.protobuf.ByteString value) { + public Builder addContactsBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureContactsIsMutable(); contacts_.add(value); onChanged(); @@ -793,6 +915,8 @@ public Builder addContactsBytes( private java.lang.Object resource_ = ""; /** + * + * *
      * Required. The name of the resource to send the test message for. All
      * contacts must either be set directly on this resource or inherited from
@@ -801,14 +925,16 @@ public Builder addContactsBytes(
      * projects/{project_id}
      * 
* - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ public java.lang.String getResource() { java.lang.Object ref = resource_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); resource_ = s; return s; @@ -817,6 +943,8 @@ public java.lang.String getResource() { } } /** + * + * *
      * Required. The name of the resource to send the test message for. All
      * contacts must either be set directly on this resource or inherited from
@@ -825,16 +953,17 @@ public java.lang.String getResource() {
      * projects/{project_id}
      * 
* - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - public com.google.protobuf.ByteString - getResourceBytes() { + public com.google.protobuf.ByteString getResourceBytes() { java.lang.Object ref = resource_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); resource_ = b; return b; } else { @@ -842,6 +971,8 @@ public java.lang.String getResource() { } } /** + * + * *
      * Required. The name of the resource to send the test message for. All
      * contacts must either be set directly on this resource or inherited from
@@ -850,21 +981,25 @@ public java.lang.String getResource() {
      * projects/{project_id}
      * 
* - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The resource to set. * @return This builder for chaining. */ - public Builder setResource( - java.lang.String value) { + public Builder setResource(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + resource_ = value; onChanged(); return this; } /** + * + * *
      * Required. The name of the resource to send the test message for. All
      * contacts must either be set directly on this resource or inherited from
@@ -873,16 +1008,21 @@ public Builder setResource(
      * projects/{project_id}
      * 
* - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearResource() { - + resource_ = getDefaultInstance().getResource(); onChanged(); return this; } /** + * + * *
      * Required. The name of the resource to send the test message for. All
      * contacts must either be set directly on this resource or inherited from
@@ -891,17 +1031,19 @@ public Builder clearResource() {
      * projects/{project_id}
      * 
* - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for resource to set. * @return This builder for chaining. */ - public Builder setResourceBytes( - com.google.protobuf.ByteString value) { + public Builder setResourceBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + resource_ = value; onChanged(); return this; @@ -909,85 +1051,115 @@ public Builder setResourceBytes( private int notificationCategory_ = 0; /** + * + * *
      * Required. The notification category to send the test message for. All
      * contacts must be subscribed to this category.
      * 
* - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for notificationCategory. */ - @java.lang.Override public int getNotificationCategoryValue() { + @java.lang.Override + public int getNotificationCategoryValue() { return notificationCategory_; } /** + * + * *
      * Required. The notification category to send the test message for. All
      * contacts must be subscribed to this category.
      * 
* - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The enum numeric value on the wire for notificationCategory to set. * @return This builder for chaining. */ public Builder setNotificationCategoryValue(int value) { - + notificationCategory_ = value; onChanged(); return this; } /** + * + * *
      * Required. The notification category to send the test message for. All
      * contacts must be subscribed to this category.
      * 
* - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationCategory. */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategory() { @SuppressWarnings("deprecation") - com.google.cloud.essentialcontacts.v1.NotificationCategory result = com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(notificationCategory_); - return result == null ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED : result; + com.google.cloud.essentialcontacts.v1.NotificationCategory result = + com.google.cloud.essentialcontacts.v1.NotificationCategory.valueOf(notificationCategory_); + return result == null + ? com.google.cloud.essentialcontacts.v1.NotificationCategory.UNRECOGNIZED + : result; } /** + * + * *
      * Required. The notification category to send the test message for. All
      * contacts must be subscribed to this category.
      * 
* - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @param value The notificationCategory to set. * @return This builder for chaining. */ - public Builder setNotificationCategory(com.google.cloud.essentialcontacts.v1.NotificationCategory value) { + public Builder setNotificationCategory( + com.google.cloud.essentialcontacts.v1.NotificationCategory value) { if (value == null) { throw new NullPointerException(); } - + notificationCategory_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Required. The notification category to send the test message for. All
      * contacts must be subscribed to this category.
      * 
* - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return This builder for chaining. */ public Builder clearNotificationCategory() { - + notificationCategory_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -997,12 +1169,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.SendTestMessageRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.SendTestMessageRequest) - private static final com.google.cloud.essentialcontacts.v1.SendTestMessageRequest DEFAULT_INSTANCE; + private static final com.google.cloud.essentialcontacts.v1.SendTestMessageRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.SendTestMessageRequest(); } @@ -1011,16 +1184,16 @@ public static com.google.cloud.essentialcontacts.v1.SendTestMessageRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendTestMessageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SendTestMessageRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SendTestMessageRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SendTestMessageRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1035,6 +1208,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.SendTestMessageRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java index e4dff759..02b73f21 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/SendTestMessageRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface SendTestMessageRequestOrBuilder extends +public interface SendTestMessageRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.SendTestMessageRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -15,12 +33,16 @@ public interface SendTestMessageRequestOrBuilder extends
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return A list containing the contacts. */ - java.util.List - getContactsList(); + java.util.List getContactsList(); /** + * + * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -28,11 +50,16 @@ public interface SendTestMessageRequestOrBuilder extends
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The count of contacts. */ int getContactsCount(); /** + * + * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -40,12 +67,17 @@ public interface SendTestMessageRequestOrBuilder extends
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the element to return. * @return The contacts at the given index. */ java.lang.String getContacts(int index); /** + * + * *
    * Required. The list of names of the contacts to send a test message to.
    * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -53,14 +85,18 @@ public interface SendTestMessageRequestOrBuilder extends
    * projects/{project_id}/contacts/{contact_id}
    * 
* - * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * repeated string contacts = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param index The index of the value to return. * @return The bytes of the contacts at the given index. */ - com.google.protobuf.ByteString - getContactsBytes(int index); + com.google.protobuf.ByteString getContactsBytes(int index); /** + * + * *
    * Required. The name of the resource to send the test message for. All
    * contacts must either be set directly on this resource or inherited from
@@ -69,11 +105,16 @@ public interface SendTestMessageRequestOrBuilder extends
    * projects/{project_id}
    * 
* - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The resource. */ java.lang.String getResource(); /** + * + * *
    * Required. The name of the resource to send the test message for. All
    * contacts must either be set directly on this resource or inherited from
@@ -82,29 +123,41 @@ public interface SendTestMessageRequestOrBuilder extends
    * projects/{project_id}
    * 
* - * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for resource. */ - com.google.protobuf.ByteString - getResourceBytes(); + com.google.protobuf.ByteString getResourceBytes(); /** + * + * *
    * Required. The notification category to send the test message for. All
    * contacts must be subscribed to this category.
    * 
* - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The enum numeric value on the wire for notificationCategory. */ int getNotificationCategoryValue(); /** + * + * *
    * Required. The notification category to send the test message for. All
    * contacts must be subscribed to this category.
    * 
* - * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.NotificationCategory notification_category = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The notificationCategory. */ com.google.cloud.essentialcontacts.v1.NotificationCategory getNotificationCategory(); diff --git a/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java new file mode 100644 index 00000000..17ab0cce --- /dev/null +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/Service.java @@ -0,0 +1,310 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/essentialcontacts/v1/service.proto + +package com.google.cloud.essentialcontacts.v1; + +public final class Service { + private Service() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n/google/cloud/essentialcontacts/v1/serv" + + "ice.proto\022!google.cloud.essentialcontact" + + "s.v1\032\034google/api/annotations.proto\032\027goog" + + "le/api/client.proto\032\037google/api/field_be" + + "havior.proto\032\031google/api/resource.proto\032" + + "-google/cloud/essentialcontacts/v1/enums" + + ".proto\032\033google/protobuf/empty.proto\032 goo" + + "gle/protobuf/field_mask.proto\032\037google/pr" + + "otobuf/timestamp.proto\"\321\003\n\007Contact\022\014\n\004na" + + "me\030\001 \001(\t\022\r\n\005email\030\002 \001(\t\022d\n#notification_" + + "category_subscriptions\030\003 \003(\01627.google.cl" + + "oud.essentialcontacts.v1.NotificationCat" + + "egory\022\024\n\014language_tag\030\004 \001(\t\022L\n\020validatio" + + "n_state\030\010 \001(\01622.google.cloud.essentialco" + + "ntacts.v1.ValidationState\0221\n\rvalidate_ti" + + "me\030\t \001(\0132\032.google.protobuf.Timestamp:\253\001\352" + + "A\247\001\n(essentialcontacts.googleapis.com/Co" + + "ntact\022%projects/{project}/contacts/{cont" + + "act}\022#folders/{folder}/contacts/{contact" + + "}\022/organizations/{organization}/contacts" + + "/{contact}\"\210\001\n\023ListContactsRequest\022@\n\006pa" + + "rent\030\001 \001(\tB0\340A\002\372A*\022(essentialcontacts.go" + + "ogleapis.com/Contact\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"m\n\024ListCon" + + "tactsResponse\022<\n\010contacts\030\001 \003(\0132*.google" + + ".cloud.essentialcontacts.v1.Contact\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"S\n\021GetContactReques" + + "t\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(essentialcontac" + + "ts.googleapis.com/Contact\"V\n\024DeleteConta" + + "ctRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(essenti" + + "alcontacts.googleapis.com/Contact\"\232\001\n\024Cr" + + "eateContactRequest\022@\n\006parent\030\001 \001(\tB0\340A\002\372" + + "A*\022(essentialcontacts.googleapis.com/Con" + + "tact\022@\n\007contact\030\002 \001(\0132*.google.cloud.ess" + + "entialcontacts.v1.ContactB\003\340A\002\"\216\001\n\024Updat" + + "eContactRequest\022@\n\007contact\030\002 \001(\0132*.googl" + + "e.cloud.essentialcontacts.v1.ContactB\003\340A" + + "\002\0224\n\013update_mask\030\003 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\001\"\345\001\n\026ComputeContactsReque" + + "st\022@\n\006parent\030\001 \001(\tB0\340A\002\372A*\022(essentialcon" + + "tacts.googleapis.com/Contact\022X\n\027notifica" + + "tion_categories\030\006 \003(\01627.google.cloud.ess" + + "entialcontacts.v1.NotificationCategory\022\026" + + "\n\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001" + + "(\tB\003\340A\001\"p\n\027ComputeContactsResponse\022<\n\010co" + + "ntacts\030\001 \003(\0132*.google.cloud.essentialcon" + + "tacts.v1.Contact\022\027\n\017next_page_token\030\002 \001(" + + "\t\"\375\001\n\026SendTestMessageRequest\022B\n\010contacts" + + "\030\001 \003(\tB0\340A\002\372A*\n(essentialcontacts.google" + + "apis.com/Contact\022B\n\010resource\030\002 \001(\tB0\340A\002\372" + + "A*\022(essentialcontacts.googleapis.com/Con" + + "tact\022[\n\025notification_category\030\003 \001(\01627.go" + + "ogle.cloud.essentialcontacts.v1.Notifica" + + "tionCategoryB\003\340A\0022\313\017\n\030EssentialContactsS" + + "ervice\022\230\002\n\rCreateContact\0227.google.cloud." + + "essentialcontacts.v1.CreateContactReques" + + "t\032*.google.cloud.essentialcontacts.v1.Co" + + "ntact\"\241\001\202\323\344\223\002\211\001\" /v1/{parent=projects/*}" + + "/contacts:\007contactZ*\"\037/v1/{parent=folder" + + "s/*}/contacts:\007contactZ0\"%/v1/{parent=or" + + "ganizations/*}/contacts:\007contact\332A\016paren" + + "t,contact\022\265\002\n\rUpdateContact\0227.google.clo" + + "ud.essentialcontacts.v1.UpdateContactReq" + + "uest\032*.google.cloud.essentialcontacts.v1" + + ".Contact\"\276\001\202\323\344\223\002\241\0012(/v1/{contact.name=pr" + + "ojects/*/contacts/*}:\007contactZ22\'/v1/{co" + + "ntact.name=folders/*/contacts/*}:\007contac" + + "tZ82-/v1/{contact.name=organizations/*/c" + + "ontacts/*}:\007contact\332A\023contact,update_mas" + + "k\022\376\001\n\014ListContacts\0226.google.cloud.essent" + + "ialcontacts.v1.ListContactsRequest\0327.goo" + + "gle.cloud.essentialcontacts.v1.ListConta" + + "ctsResponse\"}\202\323\344\223\002n\022 /v1/{parent=project" + + "s/*}/contactsZ!\022\037/v1/{parent=folders/*}/" + + "contactsZ\'\022%/v1/{parent=organizations/*}" + + "/contacts\332A\006parent\022\353\001\n\nGetContact\0224.goog" + + "le.cloud.essentialcontacts.v1.GetContact" + + "Request\032*.google.cloud.essentialcontacts" + + ".v1.Contact\"{\202\323\344\223\002n\022 /v1/{name=projects/" + + "*/contacts/*}Z!\022\037/v1/{name=folders/*/con" + + "tacts/*}Z\'\022%/v1/{name=organizations/*/co" + + "ntacts/*}\332A\004name\022\335\001\n\rDeleteContact\0227.goo" + + "gle.cloud.essentialcontacts.v1.DeleteCon" + + "tactRequest\032\026.google.protobuf.Empty\"{\202\323\344" + + "\223\002n* /v1/{name=projects/*/contacts/*}Z!*" + + "\037/v1/{name=folders/*/contacts/*}Z\'*%/v1/" + + "{name=organizations/*/contacts/*}\332A\004name" + + "\022\230\002\n\017ComputeContacts\0229.google.cloud.esse" + + "ntialcontacts.v1.ComputeContactsRequest\032" + + ":.google.cloud.essentialcontacts.v1.Comp" + + "uteContactsResponse\"\215\001\202\323\344\223\002\206\001\022(/v1/{pare" + + "nt=projects/*}/contacts:computeZ)\022\'/v1/{" + + "parent=folders/*}/contacts:computeZ/\022-/v" + + "1/{parent=organizations/*}/contacts:comp" + + "ute\022\233\002\n\017SendTestMessage\0229.google.cloud.e" + + "ssentialcontacts.v1.SendTestMessageReque" + + "st\032\026.google.protobuf.Empty\"\264\001\202\323\344\223\002\255\001\"2/v" + + "1/{resource=projects/*}/contacts:sendTes" + + "tMessage:\001*Z6\"1/v1/{resource=folders/*}/" + + "contacts:sendTestMessage:\001*Z<\"7/v1/{reso" + + "urce=organizations/*}/contacts:sendTestM" + + "essage:\001*\032T\312A essentialcontacts.googleap" + + "is.com\322A.https://www.googleapis.com/auth" + + "/cloud-platformB\354\001\n%com.google.cloud.ess" + + "entialcontacts.v1P\001ZRgoogle.golang.org/g" + + "enproto/googleapis/cloud/essentialcontac" + + "ts/v1;essentialcontacts\252\002!Google.Cloud.E" + + "ssentialContacts.V1\312\002!Google\\Cloud\\Essen" + + "tialContacts\\V1\352\002$Google::Cloud::Essenti" + + "alContacts::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_essentialcontacts_v1_Contact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_Contact_descriptor, + new java.lang.String[] { + "Name", + "Email", + "NotificationCategorySubscriptions", + "LanguageTag", + "ValidationState", + "ValidateTime", + }); + internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_ListContactsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_ListContactsResponse_descriptor, + new java.lang.String[] { + "Contacts", "NextPageToken", + }); + internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_GetContactRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_DeleteContactRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_CreateContactRequest_descriptor, + new java.lang.String[] { + "Parent", "Contact", + }); + internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor, + new java.lang.String[] { + "Contact", "UpdateMask", + }); + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsRequest_descriptor, + new java.lang.String[] { + "Parent", "NotificationCategories", "PageSize", "PageToken", + }); + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_ComputeContactsResponse_descriptor, + new java.lang.String[] { + "Contacts", "NextPageToken", + }); + internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_essentialcontacts_v1_SendTestMessageRequest_descriptor, + new java.lang.String[] { + "Contacts", "Resource", "NotificationCategory", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java index a0a84d1b..168ec6da 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequest.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; /** + * + * *
  * Request message for the UpdateContact method.
  * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.UpdateContactRequest} */ -public final class UpdateContactRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class UpdateContactRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.essentialcontacts.v1.UpdateContactRequest) UpdateContactRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use UpdateContactRequest.newBuilder() to construct. private UpdateContactRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateContactRequest() { - } + + private UpdateContactRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new UpdateContactRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private UpdateContactRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,39 +68,44 @@ private UpdateContactRequest( case 0: done = true; break; - case 18: { - com.google.cloud.essentialcontacts.v1.Contact.Builder subBuilder = null; - if (contact_ != null) { - subBuilder = contact_.toBuilder(); - } - contact_ = input.readMessage(com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(contact_); - contact_ = subBuilder.buildPartial(); - } + case 18: + { + com.google.cloud.essentialcontacts.v1.Contact.Builder subBuilder = null; + if (contact_ != null) { + subBuilder = contact_.toBuilder(); + } + contact_ = + input.readMessage( + com.google.cloud.essentialcontacts.v1.Contact.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(contact_); + contact_ = subBuilder.buildPartial(); + } - break; - } - case 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); + break; } + case 26: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -92,35 +113,42 @@ private UpdateContactRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, com.google.cloud.essentialcontacts.v1.UpdateContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, + com.google.cloud.essentialcontacts.v1.UpdateContactRequest.Builder.class); } public static final int CONTACT_FIELD_NUMBER = 2; private com.google.cloud.essentialcontacts.v1.Contact contact_; /** + * + * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the contact field is set. */ @java.lang.Override @@ -128,25 +156,36 @@ public boolean hasContact() { return contact_ != null; } /** + * + * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The contact. */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.Contact getContact() { - return contact_ == null ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; + return contact_ == null + ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() + : contact_; } /** + * + * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ @java.lang.Override public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder() { @@ -156,13 +195,17 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilde public static final int UPDATE_MASK_FIELD_NUMBER = 3; private com.google.protobuf.FieldMask updateMask_; /** + * + * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ @java.lang.Override @@ -170,13 +213,17 @@ public boolean hasUpdateMask() { return updateMask_ != null; } /** + * + * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ @java.lang.Override @@ -184,13 +231,16 @@ public com.google.protobuf.FieldMask getUpdateMask() { return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; } /** + * + * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { @@ -198,6 +248,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -209,8 +260,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (contact_ != null) { output.writeMessage(2, getContact()); } @@ -227,12 +277,10 @@ public int getSerializedSize() { size = 0; if (contact_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getContact()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContact()); } if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -242,22 +290,21 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.essentialcontacts.v1.UpdateContactRequest)) { return super.equals(obj); } - com.google.cloud.essentialcontacts.v1.UpdateContactRequest other = (com.google.cloud.essentialcontacts.v1.UpdateContactRequest) obj; + com.google.cloud.essentialcontacts.v1.UpdateContactRequest other = + (com.google.cloud.essentialcontacts.v1.UpdateContactRequest) obj; if (hasContact() != other.hasContact()) return false; if (hasContact()) { - if (!getContact() - .equals(other.getContact())) return false; + if (!getContact().equals(other.getContact())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; + if (!getUpdateMask().equals(other.getUpdateMask())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -284,117 +331,127 @@ public int hashCode() { } public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.essentialcontacts.v1.UpdateContactRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.essentialcontacts.v1.UpdateContactRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
    * Request message for the UpdateContact method.
    * 
* * Protobuf type {@code google.cloud.essentialcontacts.v1.UpdateContactRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.essentialcontacts.v1.UpdateContactRequest) com.google.cloud.essentialcontacts.v1.UpdateContactRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, com.google.cloud.essentialcontacts.v1.UpdateContactRequest.Builder.class); + com.google.cloud.essentialcontacts.v1.UpdateContactRequest.class, + com.google.cloud.essentialcontacts.v1.UpdateContactRequest.Builder.class); } // Construct using com.google.cloud.essentialcontacts.v1.UpdateContactRequest.newBuilder() @@ -402,16 +459,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -431,9 +487,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.essentialcontacts.v1.Service.internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.essentialcontacts.v1.Service + .internal_static_google_cloud_essentialcontacts_v1_UpdateContactRequest_descriptor; } @java.lang.Override @@ -452,7 +508,8 @@ public com.google.cloud.essentialcontacts.v1.UpdateContactRequest build() { @java.lang.Override public com.google.cloud.essentialcontacts.v1.UpdateContactRequest buildPartial() { - com.google.cloud.essentialcontacts.v1.UpdateContactRequest result = new com.google.cloud.essentialcontacts.v1.UpdateContactRequest(this); + com.google.cloud.essentialcontacts.v1.UpdateContactRequest result = + new com.google.cloud.essentialcontacts.v1.UpdateContactRequest(this); if (contactBuilder_ == null) { result.contact_ = contact_; } else { @@ -471,38 +528,39 @@ public com.google.cloud.essentialcontacts.v1.UpdateContactRequest buildPartial() public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.essentialcontacts.v1.UpdateContactRequest) { - return mergeFrom((com.google.cloud.essentialcontacts.v1.UpdateContactRequest)other); + return mergeFrom((com.google.cloud.essentialcontacts.v1.UpdateContactRequest) other); } else { super.mergeFrom(other); return this; @@ -510,7 +568,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.essentialcontacts.v1.UpdateContactRequest other) { - if (other == com.google.cloud.essentialcontacts.v1.UpdateContactRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.essentialcontacts.v1.UpdateContactRequest.getDefaultInstance()) + return this; if (other.hasContact()) { mergeContact(other.getContact()); } @@ -536,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.essentialcontacts.v1.UpdateContactRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.essentialcontacts.v1.UpdateContactRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -548,42 +608,61 @@ public Builder mergeFrom( private com.google.cloud.essentialcontacts.v1.Contact contact_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> contactBuilder_; + com.google.cloud.essentialcontacts.v1.Contact, + com.google.cloud.essentialcontacts.v1.Contact.Builder, + com.google.cloud.essentialcontacts.v1.ContactOrBuilder> + contactBuilder_; /** + * + * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the contact field is set. */ public boolean hasContact() { return contactBuilder_ != null || contact_ != null; } /** + * + * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The contact. */ public com.google.cloud.essentialcontacts.v1.Contact getContact() { if (contactBuilder_ == null) { - return contact_ == null ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; + return contact_ == null + ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() + : contact_; } else { return contactBuilder_.getMessage(); } } /** + * + * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setContact(com.google.cloud.essentialcontacts.v1.Contact value) { if (contactBuilder_ == null) { @@ -599,12 +678,16 @@ public Builder setContact(com.google.cloud.essentialcontacts.v1.Contact value) { return this; } /** + * + * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder setContact( com.google.cloud.essentialcontacts.v1.Contact.Builder builderForValue) { @@ -618,18 +701,24 @@ public Builder setContact( return this; } /** + * + * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder mergeContact(com.google.cloud.essentialcontacts.v1.Contact value) { if (contactBuilder_ == null) { if (contact_ != null) { contact_ = - com.google.cloud.essentialcontacts.v1.Contact.newBuilder(contact_).mergeFrom(value).buildPartial(); + com.google.cloud.essentialcontacts.v1.Contact.newBuilder(contact_) + .mergeFrom(value) + .buildPartial(); } else { contact_ = value; } @@ -641,12 +730,16 @@ public Builder mergeContact(com.google.cloud.essentialcontacts.v1.Contact value) return this; } /** + * + * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public Builder clearContact() { if (contactBuilder_ == null) { @@ -660,51 +753,67 @@ public Builder clearContact() { return this; } /** + * + * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.essentialcontacts.v1.Contact.Builder getContactBuilder() { - + onChanged(); return getContactFieldBuilder().getBuilder(); } /** + * + * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder() { if (contactBuilder_ != null) { return contactBuilder_.getMessageOrBuilder(); } else { - return contact_ == null ? - com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() : contact_; + return contact_ == null + ? com.google.cloud.essentialcontacts.v1.Contact.getDefaultInstance() + : contact_; } } /** + * + * *
      * Required. The contact resource to replace the existing saved contact. Note:
      * the email address of the contact cannot be modified.
      * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder> + com.google.cloud.essentialcontacts.v1.Contact, + com.google.cloud.essentialcontacts.v1.Contact.Builder, + com.google.cloud.essentialcontacts.v1.ContactOrBuilder> getContactFieldBuilder() { if (contactBuilder_ == null) { - contactBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.essentialcontacts.v1.Contact, com.google.cloud.essentialcontacts.v1.Contact.Builder, com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( - getContact(), - getParentForChildren(), - isClean()); + contactBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.essentialcontacts.v1.Contact, + com.google.cloud.essentialcontacts.v1.Contact.Builder, + com.google.cloud.essentialcontacts.v1.ContactOrBuilder>( + getContact(), getParentForChildren(), isClean()); contact_ = null; } return contactBuilder_; @@ -712,45 +821,61 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilde private com.google.protobuf.FieldMask updateMask_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; /** + * + * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ public boolean hasUpdateMask() { return updateMaskBuilder_ != null || updateMask_ != null; } /** + * + * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ public com.google.protobuf.FieldMask getUpdateMask() { if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } else { return updateMaskBuilder_.getMessage(); } } /** + * + * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { @@ -766,16 +891,18 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { if (updateMaskBuilder_ == null) { updateMask_ = builderForValue.build(); onChanged(); @@ -786,19 +913,22 @@ public Builder setUpdateMask( return this; } /** + * + * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { if (updateMaskBuilder_ == null) { if (updateMask_ != null) { updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); } else { updateMask_ = value; } @@ -810,13 +940,16 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { return this; } /** + * + * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearUpdateMask() { if (updateMaskBuilder_ == null) { @@ -830,61 +963,74 @@ public Builder clearUpdateMask() { return this; } /** + * + * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - + onChanged(); return getUpdateMaskFieldBuilder().getBuilder(); } /** + * + * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { if (updateMaskBuilder_ != null) { return updateMaskBuilder_.getMessageOrBuilder(); } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; } } /** + * + * *
      * Optional. The update mask applied to the resource. For the `FieldMask`
      * definition, see
      * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
      * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> getUpdateMaskFieldBuilder() { if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); updateMask_ = null; } return updateMaskBuilder_; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -894,12 +1040,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.essentialcontacts.v1.UpdateContactRequest) } // @@protoc_insertion_point(class_scope:google.cloud.essentialcontacts.v1.UpdateContactRequest) private static final com.google.cloud.essentialcontacts.v1.UpdateContactRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.essentialcontacts.v1.UpdateContactRequest(); } @@ -908,16 +1054,16 @@ public static com.google.cloud.essentialcontacts.v1.UpdateContactRequest getDefa return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateContactRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateContactRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateContactRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateContactRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -932,6 +1078,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.essentialcontacts.v1.UpdateContactRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java similarity index 63% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java index 7261b091..c378a7e1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/UpdateContactRequestOrBuilder.java @@ -1,72 +1,113 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/service.proto package com.google.cloud.essentialcontacts.v1; -public interface UpdateContactRequestOrBuilder extends +public interface UpdateContactRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.essentialcontacts.v1.UpdateContactRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return Whether the contact field is set. */ boolean hasContact(); /** + * + * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * * @return The contact. */ com.google.cloud.essentialcontacts.v1.Contact getContact(); /** + * + * *
    * Required. The contact resource to replace the existing saved contact. Note:
    * the email address of the contact cannot be modified.
    * 
* - * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * .google.cloud.essentialcontacts.v1.Contact contact = 2 [(.google.api.field_behavior) = REQUIRED]; + * */ com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilder(); /** + * + * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return Whether the updateMask field is set. */ boolean hasUpdateMask(); /** + * + * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * * @return The updateMask. */ com.google.protobuf.FieldMask getUpdateMask(); /** + * + * *
    * Optional. The update mask applied to the resource. For the `FieldMask`
    * definition, see
    * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
    * 
* - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java rename to proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java index 893fd7a1..b17553fa 100644 --- a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java +++ b/proto-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/ValidationState.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/essentialcontacts/v1/enums.proto package com.google.cloud.essentialcontacts.v1; /** + * + * *
  * A contact's validation state indicates whether or not it is the correct
  * contact to be receiving notifications for a particular resource.
@@ -11,9 +28,10 @@
  *
  * Protobuf enum {@code google.cloud.essentialcontacts.v1.ValidationState}
  */
-public enum ValidationState
-    implements com.google.protobuf.ProtocolMessageEnum {
+public enum ValidationState implements com.google.protobuf.ProtocolMessageEnum {
   /**
+   *
+   *
    * 
    * The validation state is unknown or unspecified.
    * 
@@ -22,6 +40,8 @@ public enum ValidationState */ VALIDATION_STATE_UNSPECIFIED(0), /** + * + * *
    * The contact is marked as valid. This is usually done manually by the
    * contact admin. All new contacts begin in the valid state.
@@ -31,6 +51,8 @@ public enum ValidationState
    */
   VALID(1),
   /**
+   *
+   *
    * 
    * The contact is considered invalid. This may become the state if the
    * contact's email is found to be unreachable.
@@ -43,6 +65,8 @@ public enum ValidationState
   ;
 
   /**
+   *
+   *
    * 
    * The validation state is unknown or unspecified.
    * 
@@ -51,6 +75,8 @@ public enum ValidationState */ public static final int VALIDATION_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * The contact is marked as valid. This is usually done manually by the
    * contact admin. All new contacts begin in the valid state.
@@ -60,6 +86,8 @@ public enum ValidationState
    */
   public static final int VALID_VALUE = 1;
   /**
+   *
+   *
    * 
    * The contact is considered invalid. This may become the state if the
    * contact's email is found to be unreachable.
@@ -69,7 +97,6 @@ public enum ValidationState
    */
   public static final int INVALID_VALUE = 2;
 
-
   public final int getNumber() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalArgumentException(
@@ -94,49 +121,49 @@ public static ValidationState valueOf(int value) {
    */
   public static ValidationState forNumber(int value) {
     switch (value) {
-      case 0: return VALIDATION_STATE_UNSPECIFIED;
-      case 1: return VALID;
-      case 2: return INVALID;
-      default: return null;
+      case 0:
+        return VALIDATION_STATE_UNSPECIFIED;
+      case 1:
+        return VALID;
+      case 2:
+        return INVALID;
+      default:
+        return null;
     }
   }
 
-  public static com.google.protobuf.Internal.EnumLiteMap
-      internalGetValueMap() {
+  public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() {
     return internalValueMap;
   }
-  private static final com.google.protobuf.Internal.EnumLiteMap<
-      ValidationState> internalValueMap =
-        new com.google.protobuf.Internal.EnumLiteMap() {
-          public ValidationState findValueByNumber(int number) {
-            return ValidationState.forNumber(number);
-          }
-        };
-
-  public final com.google.protobuf.Descriptors.EnumValueDescriptor
-      getValueDescriptor() {
+
+  private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap =
+      new com.google.protobuf.Internal.EnumLiteMap() {
+        public ValidationState findValueByNumber(int number) {
+          return ValidationState.forNumber(number);
+        }
+      };
+
+  public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
     if (this == UNRECOGNIZED) {
       throw new java.lang.IllegalStateException(
           "Can't get the descriptor of an unrecognized enum value.");
     }
     return getDescriptor().getValues().get(ordinal());
   }
-  public final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptorForType() {
+
+  public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
     return getDescriptor();
   }
-  public static final com.google.protobuf.Descriptors.EnumDescriptor
-      getDescriptor() {
+
+  public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
     return com.google.cloud.essentialcontacts.v1.EnumsProto.getDescriptor().getEnumTypes().get(1);
   }
 
   private static final ValidationState[] VALUES = values();
 
-  public static ValidationState valueOf(
-      com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+  public static ValidationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
     if (desc.getType() != getDescriptor()) {
-      throw new java.lang.IllegalArgumentException(
-        "EnumValueDescriptor is not for this type.");
+      throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
     }
     if (desc.getIndex() == -1) {
       return UNRECOGNIZED;
@@ -152,4 +179,3 @@ private ValidationState(int value) {
 
   // @@protoc_insertion_point(enum_scope:google.cloud.essentialcontacts.v1.ValidationState)
 }
-
diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/enums.proto b/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/enums.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/enums.proto
rename to proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/enums.proto
diff --git a/owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto b/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto
similarity index 100%
rename from owl-bot-staging/v1/proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto
rename to proto-google-cloud-essential-contacts-v1/src/main/proto/google/cloud/essentialcontacts/v1/service.proto
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContacts.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContacts.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContacts.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContacts.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContactsPaged.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContactsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContactsPaged.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/AsyncComputeContactsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/SyncComputeContacts.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/SyncComputeContacts.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/SyncComputeContacts.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/computecontacts/SyncComputeContacts.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java
similarity index 88%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java
index caab616a..24fbbfaa 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider_sync]
 import com.google.api.gax.core.FixedCredentialsProvider;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings;
@@ -39,4 +40,5 @@ public static void syncCreateSetCredentialsProvider() throws Exception {
         EssentialContactsServiceClient.create(essentialContactsServiceSettings);
   }
 }
-// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider_sync]
+// [END
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java
similarity index 88%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java
index 8dce5d59..2b96d39c 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetCredentialsProvider1.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider1_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider1_sync]
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceSettings;
 
@@ -38,4 +39,5 @@ public static void syncCreateSetCredentialsProvider1() throws Exception {
         EssentialContactsServiceClient.create(essentialContactsServiceSettings);
   }
 }
-// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider1_sync]
+// [END
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_create_setcredentialsprovider1_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetEndpoint.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetEndpoint.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/create/SyncCreateSetEndpoint.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/AsyncCreateContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/AsyncCreateContact.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/AsyncCreateContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/AsyncCreateContact.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContact.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContact.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java
index f9d91f51..1eb22dcb 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactFoldernameContact.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_foldernamecontact_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_foldernamecontact_sync]
 import com.google.cloud.essentialcontacts.v1.Contact;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
 import com.google.cloud.essentialcontacts.v1.FolderName;
@@ -38,4 +39,5 @@ public static void syncCreateContactFoldernameContact() throws Exception {
     }
   }
 }
-// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_foldernamecontact_sync]
+// [END
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_foldernamecontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java
index 46126597..9abbaa7a 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactOrganizationnameContact.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_organizationnamecontact_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_organizationnamecontact_sync]
 import com.google.cloud.essentialcontacts.v1.Contact;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
 import com.google.cloud.essentialcontacts.v1.OrganizationName;
@@ -38,4 +39,5 @@ public static void syncCreateContactOrganizationnameContact() throws Exception {
     }
   }
 }
-// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_organizationnamecontact_sync]
+// [END
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_organizationnamecontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java
index 5e1c4aab..dbd48473 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactProjectnameContact.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_projectnamecontact_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_projectnamecontact_sync]
 import com.google.cloud.essentialcontacts.v1.Contact;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
 import com.google.cloud.essentialcontacts.v1.ProjectName;
@@ -38,4 +39,5 @@ public static void syncCreateContactProjectnameContact() throws Exception {
     }
   }
 }
-// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_projectnamecontact_sync]
+// [END
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_projectnamecontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java
index 1d6e08a7..6fe8ca1d 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/createcontact/SyncCreateContactStringContact.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_stringcontact_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_stringcontact_sync]
 import com.google.cloud.essentialcontacts.v1.Contact;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
 import com.google.cloud.essentialcontacts.v1.ProjectName;
@@ -38,4 +39,5 @@ public static void syncCreateContactStringContact() throws Exception {
     }
   }
 }
-// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_stringcontact_sync]
+// [END
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_createcontact_stringcontact_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/AsyncDeleteContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/AsyncDeleteContact.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/AsyncDeleteContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/AsyncDeleteContact.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java
similarity index 98%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java
index dcb7e7e9..a3f95304 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContact.java
@@ -20,7 +20,6 @@
 import com.google.cloud.essentialcontacts.v1.ContactName;
 import com.google.cloud.essentialcontacts.v1.DeleteContactRequest;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteContact {
 
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java
similarity index 85%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java
index 1dd3515f..26bd457c 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactContactname.java
@@ -16,10 +16,10 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_contactname_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_contactname_sync]
 import com.google.cloud.essentialcontacts.v1.ContactName;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteContactContactname {
 
@@ -37,4 +37,5 @@ public static void syncDeleteContactContactname() throws Exception {
     }
   }
 }
-// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_contactname_sync]
+// [END
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_contactname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java
similarity index 97%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java
index d1139565..22fb3fca 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/deletecontact/SyncDeleteContactString.java
@@ -19,7 +19,6 @@
 // [START essentialcontacts_v1_generated_essentialcontactsserviceclient_deletecontact_string_sync]
 import com.google.cloud.essentialcontacts.v1.ContactName;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
-import com.google.protobuf.Empty;
 
 public class SyncDeleteContactString {
 
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/AsyncGetContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/AsyncGetContact.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/AsyncGetContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/AsyncGetContact.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContact.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContact.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactContactname.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactContactname.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactContactname.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactContactname.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactString.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactString.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/getcontact/SyncGetContactString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContacts.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContacts.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContacts.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContacts.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContactsPaged.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContactsPaged.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContactsPaged.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/AsyncListContactsPaged.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContacts.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContacts.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContacts.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContacts.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java
similarity index 93%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java
index d254b248..77663238 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsFoldername.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_foldername_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_foldername_sync]
 import com.google.cloud.essentialcontacts.v1.Contact;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
 import com.google.cloud.essentialcontacts.v1.FolderName;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java
index 9b7145c8..6670d744 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsOrganizationname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_organizationname_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_organizationname_sync]
 import com.google.cloud.essentialcontacts.v1.Contact;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
 import com.google.cloud.essentialcontacts.v1.OrganizationName;
@@ -39,4 +40,5 @@ public static void syncListContactsOrganizationname() throws Exception {
     }
   }
 }
-// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_organizationname_sync]
+// [END
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_organizationname_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java
similarity index 93%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java
index 0aa5a919..54d9051d 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsProjectname.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_projectname_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_listcontacts_projectname_sync]
 import com.google.cloud.essentialcontacts.v1.Contact;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
 import com.google.cloud.essentialcontacts.v1.ProjectName;
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsString.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsString.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsString.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/listcontacts/SyncListContactsString.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/AsyncSendTestMessage.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/AsyncSendTestMessage.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/AsyncSendTestMessage.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/AsyncSendTestMessage.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java
similarity index 98%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java
index f9243b2e..5ce76444 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/sendtestmessage/SyncSendTestMessage.java
@@ -21,7 +21,6 @@
 import com.google.cloud.essentialcontacts.v1.NotificationCategory;
 import com.google.cloud.essentialcontacts.v1.ProjectName;
 import com.google.cloud.essentialcontacts.v1.SendTestMessageRequest;
-import com.google.protobuf.Empty;
 import java.util.ArrayList;
 
 public class SyncSendTestMessage {
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/AsyncUpdateContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/AsyncUpdateContact.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/AsyncUpdateContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/AsyncUpdateContact.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContact.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContact.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java
similarity index 87%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java
index b80b4209..27ca6e5e 100644
--- a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsserviceclient/updatecontact/SyncUpdateContactContactFieldmask.java
@@ -16,7 +16,8 @@
 
 package com.google.cloud.essentialcontacts.v1.samples;
 
-// [START essentialcontacts_v1_generated_essentialcontactsserviceclient_updatecontact_contactfieldmask_sync]
+// [START
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_updatecontact_contactfieldmask_sync]
 import com.google.cloud.essentialcontacts.v1.Contact;
 import com.google.cloud.essentialcontacts.v1.EssentialContactsServiceClient;
 import com.google.protobuf.FieldMask;
@@ -38,4 +39,5 @@ public static void syncUpdateContactContactFieldmask() throws Exception {
     }
   }
 }
-// [END essentialcontacts_v1_generated_essentialcontactsserviceclient_updatecontact_contactfieldmask_sync]
+// [END
+// essentialcontacts_v1_generated_essentialcontactsserviceclient_updatecontact_contactfieldmask_sync]
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservicesettings/createcontact/SyncCreateContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservicesettings/createcontact/SyncCreateContact.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservicesettings/createcontact/SyncCreateContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/essentialcontactsservicesettings/createcontact/SyncCreateContact.java
diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/stub/essentialcontactsservicestubsettings/createcontact/SyncCreateContact.java b/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/stub/essentialcontactsservicestubsettings/createcontact/SyncCreateContact.java
similarity index 100%
rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/essentialcontacts/v1/stub/essentialcontactsservicestubsettings/createcontact/SyncCreateContact.java
rename to samples/snippets/generated/com/google/cloud/essentialcontacts/v1/stub/essentialcontactsservicestubsettings/createcontact/SyncCreateContact.java

From ca3a2c075c7064ce5314621a7b198e607f04b0e2 Mon Sep 17 00:00:00 2001
From: Tomo Suzuki 
Date: Thu, 23 Jun 2022 20:59:57 +0000
Subject: [PATCH 3/6] deps: adding gax-httpjson

---
 google-cloud-essential-contacts/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/google-cloud-essential-contacts/pom.xml b/google-cloud-essential-contacts/pom.xml
index d58ab187..88eb7726 100644
--- a/google-cloud-essential-contacts/pom.xml
+++ b/google-cloud-essential-contacts/pom.xml
@@ -58,6 +58,10 @@
       com.google.api
       gax-grpc
     
+    
+      com.google.api
+      gax-httpjson
+    
     
       org.threeten
       threetenbp
@@ -77,12 +81,24 @@
       test
     
     
+    
+      com.google.api
+      gax
+      testlib
+      test
+    
     
       com.google.api
       gax-grpc
       testlib
       test
     
+    
+      com.google.api
+      gax-httpjson
+      testlib
+      test
+    
   
 
   

From 016cc3c63de66dec477170d4d80b15c2cc4bf465 Mon Sep 17 00:00:00 2001
From: Tomo Suzuki 
Date: Thu, 23 Jun 2022 21:00:02 +0000
Subject: [PATCH 4/6] deps: adding gax-httpjson

---
 google-cloud-essential-contacts/pom.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/google-cloud-essential-contacts/pom.xml b/google-cloud-essential-contacts/pom.xml
index 88eb7726..7c0238ac 100644
--- a/google-cloud-essential-contacts/pom.xml
+++ b/google-cloud-essential-contacts/pom.xml
@@ -62,6 +62,10 @@
       com.google.api
       gax-httpjson
     
+    
+      com.google.api
+      gax-httpjson
+    
     
       org.threeten
       threetenbp
@@ -87,6 +91,12 @@
       testlib
       test
     
+    
+      com.google.api
+      gax
+      testlib
+      test
+    
     
       com.google.api
       gax-grpc
@@ -99,6 +109,12 @@
       testlib
       test
     
+    
+      com.google.api
+      gax-httpjson
+      testlib
+      test
+    
   
 
   

From 1be71e53cf168d6431ceed09c0bc5f038d9b43ca Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Thu, 23 Jun 2022 21:01:40 +0000
Subject: [PATCH 5/6] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?=
 =?UTF-8?q?st-processor?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---
 README.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 260f5152..003fc7fc 100644
--- a/README.md
+++ b/README.md
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
 
   com.google.cloud
   google-cloud-essential-contacts
-  2.2.0
+  2.2.1
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-essential-contacts:2.2.0'
+implementation 'com.google.cloud:google-cloud-essential-contacts:2.2.1'
 ```
 
 If you are using SBT, add this to your dependencies
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.2.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.2.1"
 ```
 
 ## Authentication

From 5777c410fb574723cc976c76bda5ebf5851db025 Mon Sep 17 00:00:00 2001
From: Owl Bot 
Date: Thu, 23 Jun 2022 21:02:18 +0000
Subject: [PATCH 6/6] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?=
 =?UTF-8?q?st-processor?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md
---
 README.md | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 260f5152..003fc7fc 100644
--- a/README.md
+++ b/README.md
@@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file:
 
   com.google.cloud
   google-cloud-essential-contacts
-  2.2.0
+  2.2.1
 
 ```
 
 If you are using Gradle without BOM, add this to your dependencies
 
 ```Groovy
-implementation 'com.google.cloud:google-cloud-essential-contacts:2.2.0'
+implementation 'com.google.cloud:google-cloud-essential-contacts:2.2.1'
 ```
 
 If you are using SBT, add this to your dependencies
 
 ```Scala
-libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.2.0"
+libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.2.1"
 ```
 
 ## Authentication