From 14fb92c539f15a32063307b72589f2fec802af5d Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Aug 2021 22:40:29 +0000 Subject: [PATCH 1/2] feat!: release gapic-generator-java v2.0.0 Committer: @miraleung PiperOrigin-RevId: 388535346 Source-Link: https://github.com/googleapis/googleapis/commit/d9eaf41de44d953458b18712a3f240bb4c564e48 Source-Link: https://github.com/googleapis/googleapis-gen/commit/976c5ab6f24b58c91fe04847ead1953f99d19e6a --- .../v1/EssentialContactsServiceGrpc.java | 1092 ----------------- .../v1/EssentialContactsServiceClient.java | 41 +- .../v1/EssentialContactsServiceSettings.java | 10 +- .../essentialcontacts/v1/gapic_metadata.json | 0 .../essentialcontacts/v1/package-info.java | 0 .../v1/stub/EssentialContactsServiceStub.java | 0 .../EssentialContactsServiceStubSettings.java | 9 +- ...sentialContactsServiceCallableFactory.java | 0 .../GrpcEssentialContactsServiceStub.java | 86 +- .../EssentialContactsServiceClientTest.java | 0 .../v1/MockEssentialContactsService.java | 0 .../v1/MockEssentialContactsServiceImpl.java | 0 .../v1/EssentialContactsServiceGrpc.java | 834 +++++++++++++ .../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 .../v1/DeleteContactRequestOrBuilder.java | 60 - .../essentialcontacts/v1/EnumsProto.java | 61 - .../v1/GetContactRequestOrBuilder.java | 60 - .../cloud/essentialcontacts/v1/Service.java | 310 ----- 47 files changed, 3426 insertions(+), 5527 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 (96%) rename {google-cloud-essential-contacts => owl-bot-staging/v1/google-cloud-essential-contacts}/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceSettings.java (96%) 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 (98%) 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 (83%) 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 (65%) 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 (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/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%) 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 455f821e..00000000 --- a/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java +++ /dev/null @@ -1,1092 +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") -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 96% 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 f2412c52..a8702aa8 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 @@ -16,7 +16,6 @@ package com.google.cloud.essentialcontacts.v1; -import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; @@ -60,13 +59,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. *
* @@ -977,10 +976,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( @@ -990,12 +986,7 @@ public static ApiFuture createAsync( ListContactsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ListContactsPagedResponse apply(ListContactsPage input) { - return new ListContactsPagedResponse(input); - } - }, + input -> new ListContactsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1034,10 +1025,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) { @@ -1057,10 +1045,7 @@ protected ListContactsFixedSizeCollection createCollection( public static class ComputeContactsPagedResponse extends AbstractPagedListResponse< - ComputeContactsRequest, - ComputeContactsResponse, - Contact, - ComputeContactsPage, + ComputeContactsRequest, ComputeContactsResponse, Contact, ComputeContactsPage, ComputeContactsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1070,12 +1055,7 @@ public static ApiFuture createAsync( ComputeContactsPage.createEmptyPage().createPageAsync(context, futureResponse); return ApiFutures.transform( futurePage, - new ApiFunction() { - @Override - public ComputeContactsPagedResponse apply(ComputeContactsPage input) { - return new ComputeContactsPagedResponse(input); - } - }, + input -> new ComputeContactsPagedResponse(input), MoreExecutors.directExecutor()); } @@ -1115,10 +1095,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 96% 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 6b3955b1..2e2f2088 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 @@ -28,6 +28,7 @@ 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 +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 @@ -198,14 +199,13 @@ public EssentialContactsServiceStubSettings.Builder getStubSettingsBuilder() { return ((EssentialContactsServiceStubSettings.Builder) getStubSettings()); } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods( getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); return this; 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 98% 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 9411d755..c72f0b49 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 @@ -68,10 +68,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 @@ -500,14 +500,13 @@ private static Builder initDefaults(Builder builder) { return builder; } - // NEXT_MAJOR_VER: remove 'throws Exception'. /** * Applies the given settings updater function to all of the unary API methods in this service. * *

Note: This method does not support applying settings to streaming methods. */ public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) throws Exception { + ApiFunction, Void> settingsUpdater) { super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); return this; } 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 83% 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 5e92169b..f98d1c81 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 @@ -24,7 +24,6 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsExtractor; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.essentialcontacts.v1.ComputeContactsRequest; import com.google.cloud.essentialcontacts.v1.ComputeContactsResponse; @@ -190,65 +189,50 @@ protected GrpcEssentialContactsServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(createContactMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateContactRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings updateContactTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateContactMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(UpdateContactRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("contact.name", String.valueOf(request.getContact().getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("contact.name", String.valueOf(request.getContact().getName())); + return params.build(); }) .build(); GrpcCallSettings listContactsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listContactsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ListContactsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings getContactTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getContactMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(GetContactRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings deleteContactTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteContactMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(DeleteContactRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); }) .build(); GrpcCallSettings @@ -256,26 +240,20 @@ public Map extract(DeleteContactRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(computeContactsMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(ComputeContactsRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); }) .build(); GrpcCallSettings sendTestMessageTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(sendTestMessageMethodDescriptor) .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(SendTestMessageRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - } + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("resource", String.valueOf(request.getResource())); + return params.build(); }) .build(); @@ -363,7 +341,13 @@ public UnaryCallable sendTestMessageCallable() { @Override public final void close() { - shutdown(); + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } } @Override 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..320965d9 --- /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,834 @@ +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") +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 44518c43..dba4d5ee 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,63 +56,60 @@ 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) { throw e.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_); @@ -138,37 +118,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 @@ -177,33 +149,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 { @@ -214,55 +184,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 @@ -270,58 +223,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. */ @@ -329,14 +267,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
@@ -345,7 +280,6 @@ public int getNotificationCategoriesValue(int index) {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -356,8 +290,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
@@ -366,7 +298,6 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -375,15 +306,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
@@ -392,15 +322,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 { @@ -409,7 +340,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -421,7 +351,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 (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); @@ -452,7 +383,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 (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -460,16 +392,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; @@ -479,18 +409,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; } @@ -518,127 +450,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() @@ -646,15 +568,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(); @@ -670,14 +593,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(); } @@ -692,8 +614,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)) { @@ -711,39 +632,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; @@ -751,9 +671,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(); @@ -794,8 +712,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) { @@ -804,29 +721,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; @@ -835,25 +747,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 { @@ -861,160 +770,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. @@ -1030,23 +901,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(); } @@ -1056,24 +921,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()); @@ -1082,18 +941,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() { @@ -1103,36 +957,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. */ @@ -1140,41 +985,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. */ @@ -1185,22 +1021,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); @@ -1209,10 +1041,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 @@ -1221,7 +1051,6 @@ public Builder addAllNotificationCategoriesValue(java.lang.Iterable * * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -1229,8 +1058,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
@@ -1239,19 +1066,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
@@ -1260,11 +1084,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; @@ -1272,8 +1095,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
@@ -1282,13 +1103,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; @@ -1297,8 +1118,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
@@ -1307,14 +1126,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 { @@ -1322,8 +1142,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
@@ -1332,22 +1150,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
@@ -1356,18 +1172,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
@@ -1376,23 +1189,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); } @@ -1402,13 +1215,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(); } @@ -1417,16 +1229,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; @@ -1441,4 +1253,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 96f528d3..746f843c 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,38 +55,35 @@ 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) { throw e.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_); @@ -112,27 +92,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
@@ -146,8 +121,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
@@ -157,13 +130,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
@@ -177,8 +148,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
@@ -192,8 +161,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
@@ -203,15 +170,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
@@ -220,7 +186,6 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -229,15 +194,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
@@ -246,15 +210,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 { @@ -263,7 +228,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -275,7 +239,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)); } @@ -292,7 +257,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 (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -305,16 +271,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; } @@ -338,127 +305,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() @@ -466,17 +423,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(); @@ -492,14 +449,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(); } @@ -514,8 +470,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)) { @@ -535,39 +490,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; @@ -575,9 +529,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()) { @@ -596,10 +548,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_); } @@ -628,9 +579,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) { @@ -639,29 +588,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
@@ -678,8 +619,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
@@ -696,8 +635,6 @@ public int getContactsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -714,8 +651,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
@@ -724,7 +659,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();
@@ -738,8 +674,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
@@ -760,8 +694,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
@@ -784,8 +716,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
@@ -794,7 +724,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();
@@ -808,8 +739,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
@@ -830,8 +759,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
@@ -852,8 +779,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
@@ -866,7 +791,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);
@@ -874,8 +800,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
@@ -895,8 +819,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
@@ -916,8 +838,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
@@ -926,12 +846,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
@@ -940,16 +859,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
@@ -958,8 +875,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 {
@@ -967,8 +884,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
@@ -978,12 +893,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
@@ -992,13 +905,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
@@ -1007,23 +919,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_;
@@ -1031,8 +940,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
@@ -1041,13 +948,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; @@ -1056,8 +963,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
@@ -1066,14 +971,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 { @@ -1081,8 +987,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
@@ -1091,22 +995,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
@@ -1115,18 +1017,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
@@ -1135,23 +1034,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); } @@ -1161,13 +1060,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(); } @@ -1176,16 +1074,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; @@ -1200,4 +1098,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 ba5dcb1b..1c422095 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,124 +58,110 @@ 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) { throw e.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 @@ -201,30 +170,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 { @@ -235,15 +204,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 @@ -252,30 +218,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 { @@ -286,53 +252,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 @@ -340,73 +289,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
@@ -415,7 +343,6 @@ public int getNotificationCategorySubscriptionsValue(int index) {
    * 
* * string language_tag = 4; - * * @return The languageTag. */ @java.lang.Override @@ -424,15 +351,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
@@ -441,15 +367,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 { @@ -460,48 +387,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
@@ -509,7 +423,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 @@ -517,8 +430,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
@@ -526,18 +437,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
@@ -552,7 +458,6 @@ public com.google.protobuf.TimestampOrBuilder getValidateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -564,7 +469,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 (!getNameBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
@@ -582,9 +488,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
     if (!getLanguageTagBytes().isEmpty()) {
       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) {
@@ -608,27 +512,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 (!getLanguageTagBytes().isEmpty()) {
       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;
@@ -638,23 +540,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;
@@ -688,127 +592,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() @@ -816,15 +711,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(); @@ -848,9 +744,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 @@ -869,14 +765,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_; @@ -895,39 +789,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; @@ -992,26 +885,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; @@ -1020,22 +910,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 { @@ -1043,64 +932,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; @@ -1108,21 +990,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; @@ -1131,22 +1011,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 { @@ -1154,148 +1033,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. @@ -1311,22 +1157,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(); } @@ -1336,23 +1176,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()); @@ -1361,17 +1195,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() { @@ -1381,77 +1210,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. */ @@ -1462,19 +1270,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( @@ -1489,8 +1291,6 @@ public Builder addAllNotificationCategorySubscriptionsValue( private java.lang.Object languageTag_ = ""; /** - * - * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1499,13 +1299,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; @@ -1514,8 +1314,6 @@ public java.lang.String getLanguageTag() { } } /** - * - * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1524,14 +1322,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 { @@ -1539,8 +1338,6 @@ public com.google.protobuf.ByteString getLanguageTagBytes() { } } /** - * - * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1549,22 +1346,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
@@ -1573,18 +1368,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
@@ -1593,16 +1385,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; @@ -1610,71 +1402,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. */ @@ -1682,25 +1458,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; @@ -1708,13 +1481,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
@@ -1722,15 +1490,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
@@ -1738,21 +1503,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
@@ -1775,8 +1535,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
@@ -1785,7 +1543,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();
@@ -1796,8 +1555,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
@@ -1810,9 +1567,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;
         }
@@ -1824,8 +1579,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
@@ -1846,8 +1599,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
@@ -1857,13 +1608,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
@@ -1876,14 +1625,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
@@ -1893,24 +1639,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);
     }
 
@@ -1920,12 +1663,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();
   }
@@ -1934,16 +1677,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;
@@ -1958,4 +1701,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 aeaf1891..d78992bc 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,78 +53,67 @@ 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) { throw e.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 @@ -150,33 +122,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 { @@ -187,17 +157,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 @@ -205,36 +170,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() { @@ -242,7 +196,6 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilde } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -254,7 +207,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 (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -274,7 +228,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; @@ -284,18 +239,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; @@ -320,127 +276,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() @@ -448,15 +394,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(); @@ -472,9 +419,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 @@ -493,8 +440,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_; @@ -509,39 +455,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; @@ -549,8 +494,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(); @@ -577,8 +521,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) { @@ -590,24 +533,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; @@ -616,25 +555,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 { @@ -642,73 +578,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; @@ -716,61 +639,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) { @@ -786,16 +690,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) { @@ -809,24 +709,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; } @@ -838,16 +732,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) { @@ -861,74 +751,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); } @@ -938,12 +812,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(); } @@ -952,16 +826,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; @@ -976,4 +850,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 c0239045..0a9b5ec0 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,52 +53,47 @@ 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) { throw e.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},
@@ -123,10 +101,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 @@ -135,15 +110,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},
@@ -151,18 +125,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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,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; } @@ -235,127 +208,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() @@ -363,15 +326,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(); @@ -381,9 +345,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 @@ -402,8 +366,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; @@ -413,39 +376,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; @@ -453,8 +415,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(); @@ -478,8 +439,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) { @@ -491,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -500,16 +458,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; @@ -518,8 +474,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -527,17 +481,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 { @@ -545,8 +498,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -554,25 +505,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},
@@ -580,21 +527,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},
@@ -602,26 +544,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); } @@ -631,12 +571,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(); } @@ -645,16 +585,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; @@ -669,4 +609,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 65% 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 3f423ad5..50ab9469 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,52 +53,47 @@ 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) { throw e.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},
@@ -123,10 +101,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 @@ -135,15 +110,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},
@@ -151,18 +125,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 { @@ -171,7 +144,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -183,7 +155,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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -207,15 +180,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; } @@ -235,127 +208,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() @@ -363,15 +326,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(); @@ -381,9 +345,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 @@ -402,8 +366,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; @@ -413,39 +376,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; @@ -453,8 +415,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(); @@ -478,8 +439,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) { @@ -491,8 +451,6 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -500,16 +458,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; @@ -518,8 +474,6 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -527,17 +481,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 { @@ -545,8 +498,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -554,25 +505,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},
@@ -580,21 +527,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},
@@ -602,26 +544,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); } @@ -631,12 +571,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(); } @@ -645,16 +585,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; @@ -669,4 +609,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 70% 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 5de77c68..1610e04a 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,74 +54,65 @@ 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) { throw e.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 @@ -147,33 +121,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 { @@ -184,8 +156,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
@@ -194,7 +164,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -205,8 +174,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
@@ -215,7 +182,6 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageToken. */ @java.lang.Override @@ -224,15 +190,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
@@ -241,15 +206,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 { @@ -258,7 +224,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -270,7 +235,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 (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -293,7 +259,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 (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -306,17 +273,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; } @@ -340,127 +309,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() @@ -468,15 +427,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(); @@ -490,9 +450,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 @@ -511,8 +471,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_; @@ -524,39 +483,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; @@ -564,8 +522,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(); @@ -596,8 +553,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) { @@ -609,24 +565,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; @@ -635,25 +587,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 { @@ -661,82 +610,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
@@ -745,7 +679,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * * @return The pageSize. */ @java.lang.Override @@ -753,8 +686,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
@@ -763,19 +694,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
@@ -784,11 +712,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; @@ -796,8 +723,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
@@ -806,13 +731,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; @@ -821,8 +746,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
@@ -831,14 +754,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 { @@ -846,8 +770,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
@@ -856,22 +778,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
@@ -880,18 +800,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
@@ -900,23 +817,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); } @@ -926,12 +843,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(); } @@ -940,16 +857,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; @@ -964,4 +881,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 57e48e8b..770bbff2 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,38 +55,35 @@ 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) { throw e.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_); @@ -112,27 +92,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.
    * 
@@ -144,8 +119,6 @@ public java.util.List getContacts return contacts_; } /** - * - * *
    * The contacts for the specified resource.
    * 
@@ -153,13 +126,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.
    * 
@@ -171,8 +142,6 @@ public int getContactsCount() { return contacts_.size(); } /** - * - * *
    * The contacts for the specified resource.
    * 
@@ -184,8 +153,6 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) { return contacts_.get(index); } /** - * - * *
    * The contacts for the specified resource.
    * 
@@ -193,15 +160,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
@@ -210,7 +176,6 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -219,15 +184,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
@@ -236,15 +200,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 { @@ -253,7 +218,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -265,7 +229,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)); } @@ -282,7 +247,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 (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -295,16 +261,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; } @@ -328,127 +295,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() @@ -456,17 +413,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(); @@ -482,9 +439,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 @@ -503,8 +460,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)) { @@ -524,39 +480,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; @@ -564,8 +519,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()) { @@ -584,10 +538,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_); } @@ -616,8 +569,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) { @@ -626,29 +578,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.
      * 
@@ -663,8 +607,6 @@ public java.util.List getContacts } } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -679,8 +621,6 @@ public int getContactsCount() { } } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -695,15 +635,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(); @@ -717,8 +656,6 @@ public Builder setContacts(int index, com.google.cloud.essentialcontacts.v1.Cont return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -737,8 +674,6 @@ public Builder setContacts( return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -759,15 +694,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(); @@ -781,8 +715,6 @@ public Builder addContacts(int index, com.google.cloud.essentialcontacts.v1.Cont return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -801,8 +733,6 @@ public Builder addContacts( return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -821,8 +751,6 @@ public Builder addContacts( return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -833,7 +761,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); @@ -841,8 +770,6 @@ public Builder addAllContacts( return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -860,8 +787,6 @@ public Builder clearContacts() { return this; } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -879,44 +804,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 { @@ -924,8 +844,6 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild } } /** - * - * *
      * The contacts for the specified resource.
      * 
@@ -933,48 +851,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_; @@ -982,8 +894,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
@@ -992,13 +902,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; @@ -1007,8 +917,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
@@ -1017,14 +925,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 { @@ -1032,8 +941,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
@@ -1042,22 +949,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
@@ -1066,18 +971,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
@@ -1086,23 +988,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); } @@ -1112,12 +1014,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(); } @@ -1126,16 +1028,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; @@ -1150,4 +1052,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 74aeb638..c1e89cfd 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,43 +56,41 @@ 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) { throw e.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(); @@ -118,27 +99,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},
@@ -146,18 +122,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},
@@ -165,18 +137,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},
@@ -184,10 +151,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. */ @@ -195,8 +159,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},
@@ -204,22 +166,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
@@ -228,10 +186,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 @@ -240,15 +195,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
@@ -257,18 +211,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 { @@ -279,49 +232,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; @@ -333,17 +270,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 (!getResourceBytes().isEmpty()) { 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); @@ -366,11 +301,9 @@ public int getSerializedSize() { if (!getResourceBytes().isEmpty()) { 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; @@ -380,16 +313,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; @@ -416,127 +350,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() @@ -544,15 +468,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(); @@ -566,14 +491,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(); } @@ -588,8 +512,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(); @@ -606,39 +529,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; @@ -646,9 +568,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_; @@ -685,8 +605,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) { @@ -695,21 +614,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},
@@ -717,18 +631,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},
@@ -736,18 +646,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},
@@ -755,10 +660,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. */ @@ -766,8 +668,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},
@@ -775,19 +675,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},
@@ -795,26 +691,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},
@@ -822,25 +714,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},
@@ -848,22 +736,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},
@@ -871,10 +756,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() { @@ -884,8 +766,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},
@@ -893,18 +773,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(); @@ -913,8 +791,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
@@ -923,16 +799,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; @@ -941,8 +815,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
@@ -951,17 +823,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 { @@ -969,8 +840,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
@@ -979,25 +848,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
@@ -1006,21 +871,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
@@ -1029,19 +889,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; @@ -1049,115 +907,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); } @@ -1167,13 +995,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(); } @@ -1182,16 +1009,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; @@ -1206,4 +1033,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 6cf7d484..4ff14fe9 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,85 +52,73 @@ 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) { throw e.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 @@ -154,36 +126,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() { @@ -193,17 +154,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 @@ -211,17 +168,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 @@ -229,16 +182,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() { @@ -246,7 +196,6 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,7 +207,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()); } @@ -275,10 +225,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; @@ -288,21 +240,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; @@ -329,127 +282,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() @@ -457,15 +400,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(); @@ -485,9 +429,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 @@ -506,8 +450,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 { @@ -526,39 +469,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; @@ -566,8 +508,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()); } @@ -593,8 +534,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) { @@ -606,61 +546,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) { @@ -676,16 +597,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) { @@ -699,24 +616,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; } @@ -728,16 +639,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) { @@ -751,67 +658,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_; @@ -819,61 +710,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) { @@ -889,18 +764,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(); @@ -911,22 +784,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; } @@ -938,16 +808,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) { @@ -961,74 +828,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); } @@ -1038,12 +892,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(); } @@ -1052,16 +906,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; @@ -1076,4 +930,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/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 7338c9f2d1ef5c47c19b8fbde0deb96e3d0585c1 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 3 Aug 2021 22:42:02 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/master/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 - .../EssentialContactsServiceClientTest.java | 0 .../v1/MockEssentialContactsService.java | 0 .../v1/MockEssentialContactsServiceImpl.java | 0 .../v1/EssentialContactsServiceGrpc.java | 1092 +++++++++++++++++ .../v1/EssentialContactsServiceGrpc.java | 834 ------------- .../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 47 files changed, 5459 insertions(+), 3388 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/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 (65%) 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 (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/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%) 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 a8702aa8..fd6f9cea 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 @@ -59,13 +59,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. *
* @@ -976,7 +976,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( @@ -1025,7 +1028,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) { @@ -1045,7 +1051,10 @@ protected ListContactsFixedSizeCollection createCollection( public static class ComputeContactsPagedResponse extends AbstractPagedListResponse< - ComputeContactsRequest, ComputeContactsResponse, Contact, ComputeContactsPage, + ComputeContactsRequest, + ComputeContactsResponse, + Contact, + ComputeContactsPage, ComputeContactsFixedSizeCollection> { public static ApiFuture createAsync( @@ -1095,7 +1104,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 2e2f2088..be4d26f1 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 @@ -28,7 +28,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; @@ -44,10 +43,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 c72f0b49..3aa61afd 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 @@ -68,10 +68,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 f98d1c81..640f6a65 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/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..455f821e --- /dev/null +++ b/grpc-google-cloud-essential-contacts-v1/src/main/java/com/google/cloud/essentialcontacts/v1/EssentialContactsServiceGrpc.java @@ -0,0 +1,1092 @@ +/* + * 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") +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 320965d9..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,834 +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") -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 dba4d5ee..44518c43 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,60 +73,63 @@ 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) { throw e.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_); @@ -118,29 +138,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 @@ -149,31 +177,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 { @@ -184,38 +214,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 @@ -223,43 +270,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. */ @@ -267,11 +329,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
@@ -280,6 +345,7 @@ public int getNotificationCategoriesValue(int index) {
    * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -290,6 +356,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
@@ -298,6 +366,7 @@ public int getPageSize() {
    * 
* * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -306,14 +375,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
@@ -322,16 +392,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 { @@ -340,6 +409,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -351,8 +421,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 (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); @@ -383,8 +452,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 (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); @@ -392,14 +460,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; @@ -409,20 +479,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; } @@ -450,117 +518,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() @@ -568,16 +646,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(); @@ -593,13 +670,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(); } @@ -614,7 +692,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)) { @@ -632,38 +711,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; @@ -671,7 +751,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(); @@ -712,7 +794,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) { @@ -721,24 +804,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; @@ -747,22 +835,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 { @@ -770,122 +861,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. @@ -901,17 +1030,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(); } @@ -921,18 +1056,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()); @@ -941,13 +1082,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() { @@ -957,27 +1103,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. */ @@ -985,32 +1140,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. */ @@ -1021,18 +1185,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); @@ -1041,8 +1209,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
@@ -1051,6 +1221,7 @@ public Builder addAllNotificationCategoriesValue(
      * 
* * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -1058,6 +1229,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
@@ -1066,16 +1239,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
@@ -1084,10 +1260,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; @@ -1095,6 +1272,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
@@ -1103,13 +1282,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; @@ -1118,6 +1297,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
@@ -1126,15 +1307,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 { @@ -1142,6 +1322,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
@@ -1150,20 +1332,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
@@ -1172,15 +1356,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
@@ -1189,23 +1376,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); } @@ -1215,12 +1402,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(); } @@ -1229,16 +1417,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; @@ -1253,6 +1441,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 746f843c..96f528d3 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,35 +72,38 @@ 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) { throw e.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_); @@ -92,22 +112,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
@@ -121,6 +146,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
@@ -130,11 +157,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
@@ -148,6 +177,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
@@ -161,6 +192,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
@@ -170,14 +203,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
@@ -186,6 +220,7 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -194,14 +229,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
@@ -210,16 +246,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 { @@ -228,6 +263,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -239,8 +275,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)); } @@ -257,8 +292,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 (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -271,17 +305,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; } @@ -305,117 +338,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() @@ -423,17 +466,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(); @@ -449,13 +492,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(); } @@ -470,7 +514,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)) { @@ -490,38 +535,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; @@ -529,7 +575,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()) { @@ -548,9 +596,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_); } @@ -579,7 +628,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) { @@ -588,21 +639,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
@@ -619,6 +678,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
@@ -635,6 +696,8 @@ public int getContactsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * All contacts for the resource that are subscribed to the specified
      * notification categories, including contacts inherited from any parent
@@ -651,6 +714,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
@@ -659,8 +724,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();
@@ -674,6 +738,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
@@ -694,6 +760,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
@@ -716,6 +784,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
@@ -724,8 +794,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();
@@ -739,6 +808,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
@@ -759,6 +830,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
@@ -779,6 +852,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
@@ -791,8 +866,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);
@@ -800,6 +874,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
@@ -819,6 +895,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
@@ -838,6 +916,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
@@ -846,11 +926,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
@@ -859,14 +940,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
@@ -875,8 +958,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 {
@@ -884,6 +967,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
@@ -893,10 +978,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
@@ -905,12 +992,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
@@ -919,20 +1007,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_;
@@ -940,6 +1031,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
@@ -948,13 +1041,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; @@ -963,6 +1056,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
@@ -971,15 +1066,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 { @@ -987,6 +1081,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
@@ -995,20 +1091,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
@@ -1017,15 +1115,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
@@ -1034,23 +1135,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); } @@ -1060,12 +1161,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(); } @@ -1074,16 +1176,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; @@ -1098,6 +1200,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 1c422095..ba5dcb1b 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,110 +75,124 @@ 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) { throw e.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 @@ -170,30 +201,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 { @@ -204,12 +235,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 @@ -218,30 +252,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 { @@ -252,36 +286,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 @@ -289,52 +340,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
@@ -343,6 +415,7 @@ public int getNotificationCategorySubscriptionsValue(int index) {
    * 
* * string language_tag = 4; + * * @return The languageTag. */ @java.lang.Override @@ -351,14 +424,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
@@ -367,16 +441,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 { @@ -387,35 +460,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
@@ -423,6 +509,7 @@ public java.lang.String getLanguageTag() {
    * 
* * .google.protobuf.Timestamp validate_time = 9; + * * @return Whether the validateTime field is set. */ @java.lang.Override @@ -430,6 +517,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
@@ -437,13 +526,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
@@ -458,6 +552,7 @@ public com.google.protobuf.TimestampOrBuilder getValidateTimeOrBuilder() {
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -469,8 +564,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 (!getNameBytes().isEmpty()) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
@@ -488,7 +582,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
     if (!getLanguageTagBytes().isEmpty()) {
       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) {
@@ -512,25 +608,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 (!getLanguageTagBytes().isEmpty()) {
       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;
@@ -540,25 +638,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;
@@ -592,118 +688,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() @@ -711,16 +816,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(); @@ -744,9 +848,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 @@ -765,12 +869,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_; @@ -789,38 +895,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; @@ -885,23 +992,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; @@ -910,21 +1020,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 { @@ -932,57 +1043,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; @@ -990,19 +1108,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; @@ -1011,21 +1131,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 { @@ -1033,115 +1154,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. @@ -1157,16 +1311,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(); } @@ -1176,17 +1336,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()); @@ -1195,12 +1361,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() { @@ -1210,56 +1381,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. */ @@ -1270,13 +1462,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( @@ -1291,6 +1489,8 @@ public Builder addAllNotificationCategorySubscriptionsValue( private java.lang.Object languageTag_ = ""; /** + * + * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1299,13 +1499,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; @@ -1314,6 +1514,8 @@ public java.lang.String getLanguageTag() { } } /** + * + * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1322,15 +1524,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 { @@ -1338,6 +1539,8 @@ public java.lang.String getLanguageTag() { } } /** + * + * *
      * The preferred language for notifications, as a ISO 639-1 language code. See
      * [Supported
@@ -1346,20 +1549,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
@@ -1368,15 +1573,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
@@ -1385,16 +1593,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; @@ -1402,55 +1610,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. */ @@ -1458,22 +1682,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; @@ -1481,8 +1708,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
@@ -1490,12 +1722,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
@@ -1503,16 +1738,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
@@ -1535,6 +1775,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
@@ -1543,8 +1785,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();
@@ -1555,6 +1796,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
@@ -1567,7 +1810,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;
         }
@@ -1579,6 +1824,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
@@ -1599,6 +1846,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
@@ -1608,11 +1857,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
@@ -1625,11 +1876,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
@@ -1639,21 +1893,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);
     }
 
@@ -1663,12 +1920,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();
   }
@@ -1677,16 +1934,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;
@@ -1701,6 +1958,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 d78992bc..aeaf1891 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,67 +70,78 @@ 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) { throw e.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 @@ -122,31 +150,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 { @@ -157,12 +187,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 @@ -170,25 +205,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() { @@ -196,6 +242,7 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactOrBuilde } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,8 +254,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 (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -228,8 +274,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; @@ -239,19 +284,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; @@ -276,117 +320,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() @@ -394,16 +448,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(); @@ -419,9 +472,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 @@ -440,7 +493,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_; @@ -455,38 +509,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; @@ -494,7 +549,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(); @@ -521,7 +577,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) { @@ -533,20 +590,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; @@ -555,22 +616,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 { @@ -578,60 +642,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; @@ -639,42 +716,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) { @@ -690,12 +786,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) { @@ -709,18 +809,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; } @@ -732,12 +838,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) { @@ -751,58 +861,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); } @@ -812,12 +938,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(); } @@ -826,16 +952,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; @@ -850,6 +976,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 0a9b5ec0..c0239045 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,47 +70,52 @@ 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) { throw e.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},
@@ -101,7 +123,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 @@ -110,14 +135,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},
@@ -125,17 +151,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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,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; } @@ -208,117 +235,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() @@ -326,16 +363,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(); @@ -345,9 +381,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 @@ -366,7 +402,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; @@ -376,38 +413,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; @@ -415,7 +453,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(); @@ -439,7 +478,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) { @@ -451,6 +491,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -458,14 +500,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; @@ -474,6 +518,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -481,16 +527,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 { @@ -498,6 +545,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the contact to delete.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -505,21 +554,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},
@@ -527,16 +580,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},
@@ -544,24 +602,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); } @@ -571,12 +631,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(); } @@ -585,16 +645,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; @@ -609,6 +669,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 65% 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 50ab9469..3f423ad5 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,47 +70,52 @@ 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) { throw e.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},
@@ -101,7 +123,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 @@ -110,14 +135,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},
@@ -125,17 +151,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 { @@ -144,6 +171,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -155,8 +183,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 (!getNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -180,15 +207,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; } @@ -208,117 +235,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() @@ -326,16 +363,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(); @@ -345,9 +381,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 @@ -366,7 +402,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; @@ -376,38 +413,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; @@ -415,7 +453,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(); @@ -439,7 +478,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) { @@ -451,6 +491,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -458,14 +500,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; @@ -474,6 +518,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -481,16 +527,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 { @@ -498,6 +545,8 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. The name of the contact to retrieve.
      * Format: organizations/{organization_id}/contacts/{contact_id},
@@ -505,21 +554,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},
@@ -527,16 +580,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},
@@ -544,24 +602,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); } @@ -571,12 +631,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(); } @@ -585,16 +645,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; @@ -609,6 +669,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 70% 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 1610e04a..5de77c68 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,65 +71,74 @@ 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) { throw e.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 @@ -121,31 +147,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 { @@ -156,6 +184,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
@@ -164,6 +194,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -174,6 +205,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
@@ -182,6 +215,7 @@ public int getPageSize() {
    * 
* * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageToken. */ @java.lang.Override @@ -190,14 +224,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
@@ -206,16 +241,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 { @@ -224,6 +258,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -235,8 +270,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 (!getParentBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -259,8 +293,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 (!getPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -273,19 +306,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; } @@ -309,117 +340,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() @@ -427,16 +468,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(); @@ -450,9 +490,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 @@ -471,7 +511,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_; @@ -483,38 +524,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; @@ -522,7 +564,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(); @@ -553,7 +596,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) { @@ -565,20 +609,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; @@ -587,22 +635,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 { @@ -610,67 +661,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
@@ -679,6 +745,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * @return The pageSize. */ @java.lang.Override @@ -686,6 +753,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
@@ -694,16 +763,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
@@ -712,10 +784,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; @@ -723,6 +796,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
@@ -731,13 +806,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; @@ -746,6 +821,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
@@ -754,15 +831,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 { @@ -770,6 +846,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
@@ -778,20 +856,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
@@ -800,15 +880,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
@@ -817,23 +900,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); } @@ -843,12 +926,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(); } @@ -857,16 +940,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; @@ -881,6 +964,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 770bbff2..57e48e8b 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,35 +72,38 @@ 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) { throw e.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_); @@ -92,22 +112,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.
    * 
@@ -119,6 +144,8 @@ public java.util.List getContacts return contacts_; } /** + * + * *
    * The contacts for the specified resource.
    * 
@@ -126,11 +153,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.
    * 
@@ -142,6 +171,8 @@ public int getContactsCount() { return contacts_.size(); } /** + * + * *
    * The contacts for the specified resource.
    * 
@@ -153,6 +184,8 @@ public com.google.cloud.essentialcontacts.v1.Contact getContacts(int index) { return contacts_.get(index); } /** + * + * *
    * The contacts for the specified resource.
    * 
@@ -160,14 +193,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
@@ -176,6 +210,7 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -184,14 +219,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
@@ -200,16 +236,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 { @@ -218,6 +253,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -229,8 +265,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)); } @@ -247,8 +282,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 (!getNextPageTokenBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -261,17 +295,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; } @@ -295,117 +328,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() @@ -413,17 +456,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(); @@ -439,9 +482,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 @@ -460,7 +503,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)) { @@ -480,38 +524,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; @@ -519,7 +564,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()) { @@ -538,9 +584,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_); } @@ -569,7 +616,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) { @@ -578,21 +626,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.
      * 
@@ -607,6 +663,8 @@ public java.util.List getContacts } } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -621,6 +679,8 @@ public int getContactsCount() { } } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -635,14 +695,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(); @@ -656,6 +717,8 @@ public Builder setContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -674,6 +737,8 @@ public Builder setContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -694,14 +759,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(); @@ -715,6 +781,8 @@ public Builder addContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -733,6 +801,8 @@ public Builder addContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -751,6 +821,8 @@ public Builder addContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -761,8 +833,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); @@ -770,6 +841,8 @@ public Builder addAllContacts( return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -787,6 +860,8 @@ public Builder clearContacts() { return this; } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -804,39 +879,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 { @@ -844,6 +924,8 @@ public com.google.cloud.essentialcontacts.v1.ContactOrBuilder getContactsOrBuild } } /** + * + * *
      * The contacts for the specified resource.
      * 
@@ -851,42 +933,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_; @@ -894,6 +982,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
@@ -902,13 +992,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; @@ -917,6 +1007,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
@@ -925,15 +1017,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 { @@ -941,6 +1032,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
@@ -949,20 +1042,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
@@ -971,15 +1066,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
@@ -988,23 +1086,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); } @@ -1014,12 +1112,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(); } @@ -1028,16 +1126,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; @@ -1052,6 +1150,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 c1e89cfd..74aeb638 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,41 +73,43 @@ 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) { throw e.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(); @@ -99,22 +118,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},
@@ -122,14 +146,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},
@@ -137,13 +165,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},
@@ -151,7 +184,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. */ @@ -159,6 +195,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},
@@ -166,18 +204,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
@@ -186,7 +228,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 @@ -195,14 +240,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
@@ -211,17 +257,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 { @@ -232,33 +279,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; @@ -270,15 +333,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 (!getResourceBytes().isEmpty()) { 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); @@ -301,9 +366,11 @@ public int getSerializedSize() { if (!getResourceBytes().isEmpty()) { 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; @@ -313,17 +380,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; @@ -350,117 +416,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() @@ -468,16 +544,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(); @@ -491,13 +566,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(); } @@ -512,7 +588,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(); @@ -529,38 +606,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; @@ -568,7 +646,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_; @@ -605,7 +685,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) { @@ -614,16 +695,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},
@@ -631,14 +717,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},
@@ -646,13 +736,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},
@@ -660,7 +755,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. */ @@ -668,6 +766,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},
@@ -675,15 +775,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},
@@ -691,22 +795,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},
@@ -714,21 +822,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},
@@ -736,19 +848,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},
@@ -756,7 +871,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() { @@ -766,6 +884,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},
@@ -773,16 +893,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(); @@ -791,6 +913,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
@@ -799,14 +923,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; @@ -815,6 +941,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
@@ -823,16 +951,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 { @@ -840,6 +969,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
@@ -848,21 +979,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
@@ -871,16 +1006,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
@@ -889,17 +1029,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; @@ -907,85 +1049,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); } @@ -995,12 +1167,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(); } @@ -1009,16 +1182,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; @@ -1033,6 +1206,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 4ff14fe9..6cf7d484 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,73 +68,85 @@ 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) { throw e.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 @@ -126,25 +154,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() { @@ -154,13 +193,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 @@ -168,13 +211,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 @@ -182,13 +229,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() { @@ -196,6 +246,7 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -207,8 +258,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()); } @@ -225,12 +275,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; @@ -240,22 +288,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; @@ -282,117 +329,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() @@ -400,16 +457,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(); @@ -429,9 +485,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 @@ -450,7 +506,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 { @@ -469,38 +526,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; @@ -508,7 +566,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()); } @@ -534,7 +593,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) { @@ -546,42 +606,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) { @@ -597,12 +676,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) { @@ -616,18 +699,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; } @@ -639,12 +728,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) { @@ -658,51 +751,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_; @@ -710,45 +819,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) { @@ -764,16 +889,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(); @@ -784,19 +911,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; } @@ -808,13 +938,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) { @@ -828,61 +961,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); } @@ -892,12 +1038,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(); } @@ -906,16 +1052,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; @@ -930,6 +1076,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