From cde4768ebc14898830eab0dbb36a70778c06f792 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 29 Mar 2023 15:59:33 +0000 Subject: [PATCH 1/2] feat: updating Cloud Client Libraries with new field NotificationType for advisorynotifications.googleapis.com PiperOrigin-RevId: 520321196 Source-Link: https://github.com/googleapis/googleapis/commit/8feac3239f18625526dc43cc22a6c81f2c00403f Source-Link: https://github.com/googleapis/googleapis-gen/commit/484a5559b134b3ca0682c8bedc59f5401811dfaf Copy-Tag: eyJwIjoiamF2YS1hZHZpc29yeW5vdGlmaWNhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6IjQ4NGE1NTU5YjEzNGIzY2EwNjgyYzhiZWRjNTlmNTQwMTgxMWRmYWYifQ== --- .../v1/AdvisoryNotificationsServiceGrpc.java | 501 -------- .../v1/ServiceProto.java | 283 ----- .../AdvisoryNotificationsServiceClient.java | 0 .../AdvisoryNotificationsServiceSettings.java | 1 + .../v1/gapic_metadata.json | 0 .../v1/package-info.java | 0 .../AdvisoryNotificationsServiceStub.java | 0 ...isoryNotificationsServiceStubSettings.java | 0 ...ryNotificationsServiceCallableFactory.java | 0 .../GrpcAdvisoryNotificationsServiceStub.java | 1 + ...ryNotificationsServiceCallableFactory.java | 0 ...pJsonAdvisoryNotificationsServiceStub.java | 0 ...otificationsServiceClientHttpJsonTest.java | 2 + ...dvisoryNotificationsServiceClientTest.java | 2 + .../v1/MockAdvisoryNotificationsService.java | 0 .../MockAdvisoryNotificationsServiceImpl.java | 0 .../v1/AdvisoryNotificationsServiceGrpc.java | 409 +++++++ .../advisorynotifications/v1/Attachment.java | 455 +++----- .../v1/AttachmentOrBuilder.java | 35 +- .../cloud/advisorynotifications/v1/Csv.java | 851 ++++++-------- .../v1/CsvOrBuilder.java | 54 +- .../v1/GetNotificationRequest.java | 451 +++----- .../v1/GetNotificationRequestOrBuilder.java | 44 +- .../v1/ListNotificationsRequest.java | 636 ++++------ .../v1/ListNotificationsRequestOrBuilder.java | 62 +- .../v1/ListNotificationsResponse.java | 555 ++++----- .../ListNotificationsResponseOrBuilder.java | 45 +- .../v1/LocalizationState.java | 91 +- .../v1/LocationName.java | 0 .../advisorynotifications/v1/Message.java | 1029 ++++++----------- .../v1/MessageOrBuilder.java | 60 +- .../v1/Notification.java | 833 ++++++------- .../v1/NotificationName.java | 0 .../v1/NotificationOrBuilder.java | 89 +- .../v1/NotificationType.java | 150 +++ .../v1/NotificationView.java | 86 +- .../v1/ServiceProto.java | 259 +++++ .../advisorynotifications/v1/Subject.java | 353 +++--- .../v1/SubjectOrBuilder.java | 26 +- .../cloud/advisorynotifications/v1/Text.java | 461 +++----- .../v1/TextOrBuilder.java | 42 +- .../advisorynotifications/v1/service.proto | 21 +- .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../getnotification/AsyncGetNotification.java | 0 .../getnotification/SyncGetNotification.java | 0 .../SyncGetNotificationNotificationname.java | 0 .../SyncGetNotificationString.java | 0 .../AsyncListNotifications.java | 0 .../AsyncListNotificationsPaged.java | 0 .../SyncListNotifications.java | 0 .../SyncListNotificationsLocationname.java | 0 .../SyncListNotificationsString.java | 0 .../getnotification/SyncGetNotification.java | 0 .../getnotification/SyncGetNotification.java | 0 56 files changed, 3201 insertions(+), 4686 deletions(-) delete mode 100644 java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java delete mode 100644 java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java (99%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/gapic_metadata.json (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/package-info.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStub.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceCallableFactory.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java (99%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceCallableFactory.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceStub.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java (98%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java (98%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsService.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsServiceImpl.java (100%) create mode 100644 owl-bot-staging/java-advisorynotifications/v1/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java (69%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java (65%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java (74%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java (74%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java (66%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java (62%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java (69%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java (73%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java (71%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java (73%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java (72%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java (72%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java (79%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java (67%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java (76%) create mode 100644 owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java (68%) create mode 100644 owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java (65%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java (58%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java (68%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java (65%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto (95%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetEndpoint.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/AsyncGetNotification.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotification.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationNotificationname.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationString.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotifications.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotificationsPaged.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotifications.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsLocationname.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsString.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservicesettings/getnotification/SyncGetNotification.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/stub/advisorynotificationsservicestubsettings/getnotification/SyncGetNotification.java (100%) diff --git a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java deleted file mode 100644 index 2924e62fb3f2..000000000000 --- a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java +++ /dev/null @@ -1,501 +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.advisorynotifications.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Service to manage Security and Privacy Notifications.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/advisorynotifications/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdvisoryNotificationsServiceGrpc { - - private AdvisoryNotificationsServiceGrpc() {} - - public static final String SERVICE_NAME = - "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest, - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> - getListNotificationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNotifications", - requestType = com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, - responseType = com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest, - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> - getListNotificationsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest, - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> - getListNotificationsMethod; - if ((getListNotificationsMethod = AdvisoryNotificationsServiceGrpc.getListNotificationsMethod) - == null) { - synchronized (AdvisoryNotificationsServiceGrpc.class) { - if ((getListNotificationsMethod = - AdvisoryNotificationsServiceGrpc.getListNotificationsMethod) - == null) { - AdvisoryNotificationsServiceGrpc.getListNotificationsMethod = - getListNotificationsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotifications")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AdvisoryNotificationsServiceMethodDescriptorSupplier( - "ListNotifications")) - .build(); - } - } - } - return getListNotificationsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.advisorynotifications.v1.GetNotificationRequest, - com.google.cloud.advisorynotifications.v1.Notification> - getGetNotificationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotification", - requestType = com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, - responseType = com.google.cloud.advisorynotifications.v1.Notification.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.advisorynotifications.v1.GetNotificationRequest, - com.google.cloud.advisorynotifications.v1.Notification> - getGetNotificationMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.advisorynotifications.v1.GetNotificationRequest, - com.google.cloud.advisorynotifications.v1.Notification> - getGetNotificationMethod; - if ((getGetNotificationMethod = AdvisoryNotificationsServiceGrpc.getGetNotificationMethod) - == null) { - synchronized (AdvisoryNotificationsServiceGrpc.class) { - if ((getGetNotificationMethod = AdvisoryNotificationsServiceGrpc.getGetNotificationMethod) - == null) { - AdvisoryNotificationsServiceGrpc.getGetNotificationMethod = - getGetNotificationMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotification")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.advisorynotifications.v1.Notification - .getDefaultInstance())) - .setSchemaDescriptor( - new AdvisoryNotificationsServiceMethodDescriptorSupplier( - "GetNotification")) - .build(); - } - } - } - return getGetNotificationMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AdvisoryNotificationsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdvisoryNotificationsServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceStub(channel, callOptions); - } - }; - return AdvisoryNotificationsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdvisoryNotificationsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdvisoryNotificationsServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceBlockingStub(channel, callOptions); - } - }; - return AdvisoryNotificationsServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AdvisoryNotificationsServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdvisoryNotificationsServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceFutureStub(channel, callOptions); - } - }; - return AdvisoryNotificationsServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Service to manage Security and Privacy Notifications.
-   * 
- */ - public abstract static class AdvisoryNotificationsServiceImplBase - implements io.grpc.BindableService { - - /** - * - * - *
-     * Lists notifications under a given parent.
-     * 
- */ - public void listNotifications( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListNotificationsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a notification.
-     * 
- */ - public void getNotification( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetNotificationMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListNotificationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest, - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse>( - this, METHODID_LIST_NOTIFICATIONS))) - .addMethod( - getGetNotificationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.advisorynotifications.v1.GetNotificationRequest, - com.google.cloud.advisorynotifications.v1.Notification>( - this, METHODID_GET_NOTIFICATION))) - .build(); - } - } - - /** - * - * - *
-   * Service to manage Security and Privacy Notifications.
-   * 
- */ - public static final class AdvisoryNotificationsServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AdvisoryNotificationsServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdvisoryNotificationsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists notifications under a given parent.
-     * 
- */ - public void listNotifications( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a notification.
-     * 
- */ - public void getNotification( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Service to manage Security and Privacy Notifications.
-   * 
- */ - public static final class AdvisoryNotificationsServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AdvisoryNotificationsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdvisoryNotificationsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists notifications under a given parent.
-     * 
- */ - public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse listNotifications( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNotificationsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a notification.
-     * 
- */ - public com.google.cloud.advisorynotifications.v1.Notification getNotification( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Service to manage Security and Privacy Notifications.
-   * 
- */ - public static final class AdvisoryNotificationsServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AdvisoryNotificationsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdvisoryNotificationsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Lists notifications under a given parent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> - listNotifications( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNotificationsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a notification.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.advisorynotifications.v1.Notification> - getNotification(com.google.cloud.advisorynotifications.v1.GetNotificationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_NOTIFICATIONS = 0; - private static final int METHODID_GET_NOTIFICATION = 1; - - 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 AdvisoryNotificationsServiceImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AdvisoryNotificationsServiceImplBase 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_LIST_NOTIFICATIONS: - serviceImpl.listNotifications( - (com.google.cloud.advisorynotifications.v1.ListNotificationsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse>) - responseObserver); - break; - case METHODID_GET_NOTIFICATION: - serviceImpl.getNotification( - (com.google.cloud.advisorynotifications.v1.GetNotificationRequest) 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 AdvisoryNotificationsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdvisoryNotificationsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AdvisoryNotificationsService"); - } - } - - private static final class AdvisoryNotificationsServiceFileDescriptorSupplier - extends AdvisoryNotificationsServiceBaseDescriptorSupplier { - AdvisoryNotificationsServiceFileDescriptorSupplier() {} - } - - private static final class AdvisoryNotificationsServiceMethodDescriptorSupplier - extends AdvisoryNotificationsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdvisoryNotificationsServiceMethodDescriptorSupplier(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 (AdvisoryNotificationsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdvisoryNotificationsServiceFileDescriptorSupplier()) - .addMethod(getListNotificationsMethod()) - .addMethod(getGetNotificationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java deleted file mode 100644 index 7acef0c634ba..000000000000 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java +++ /dev/null @@ -1,283 +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/advisorynotifications/v1/service.proto - -package com.google.cloud.advisorynotifications.v1; - -public final class ServiceProto { - private ServiceProto() {} - - 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_advisorynotifications_v1_Notification_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/advisorynotifications/v1/" - + "service.proto\022%google.cloud.advisorynoti" - + "fications.v1\032\034google/api/annotations.pro" - + "to\032\027google/api/client.proto\032\037google/api/" - + "field_behavior.proto\032\031google/api/resourc" - + "e.proto\032\037google/protobuf/timestamp.proto" - + "\"\337\002\n\014Notification\022\014\n\004name\030\001 \001(\t\022?\n\007subje" - + "ct\030\002 \001(\0132..google.cloud.advisorynotifica" - + "tions.v1.Subject\022@\n\010messages\030\003 \003(\0132..goo" - + "gle.cloud.advisorynotifications.v1.Messa" - + "ge\0224\n\013create_time\030\004 \001(\0132\032.google.protobu" - + "f.TimestampB\003\340A\003:\207\001\352A\203\001\n1advisorynotific" - + "ations.googleapis.com/Notification\022Norga" - + "nizations/{organization}/locations/{loca" - + "tion}/notifications/{notification}\"\205\001\n\004T" - + "ext\022\017\n\007en_text\030\001 \001(\t\022\026\n\016localized_text\030\002" - + " \001(\t\022T\n\022localization_state\030\003 \001(\01628.googl" - + "e.cloud.advisorynotifications.v1.Localiz" - + "ationState\"D\n\007Subject\0229\n\004text\030\001 \001(\0132+.go" - + "ogle.cloud.advisorynotifications.v1.Text" - + "\"\277\002\n\007Message\022A\n\004body\030\001 \001(\01323.google.clou" - + "d.advisorynotifications.v1.Message.Body\022" - + "F\n\013attachments\030\002 \003(\01321.google.cloud.advi" - + "sorynotifications.v1.Attachment\022/\n\013creat" - + "e_time\030\003 \001(\0132\032.google.protobuf.Timestamp" - + "\0225\n\021localization_time\030\004 \001(\0132\032.google.pro" - + "tobuf.Timestamp\032A\n\004Body\0229\n\004text\030\001 \001(\0132+." - + "google.cloud.advisorynotifications.v1.Te" - + "xt\"e\n\nAttachment\0229\n\003csv\030\002 \001(\0132*.google.c" - + "loud.advisorynotifications.v1.CsvH\000\022\024\n\014d" - + "isplay_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n\007head" - + "ers\030\001 \003(\t\022D\n\tdata_rows\030\002 \003(\01321.google.cl" - + "oud.advisorynotifications.v1.Csv.CsvRow\032" - + "\031\n\006CsvRow\022\017\n\007entries\030\001 \003(\t\"\352\001\n\030ListNotif" - + "icationsRequest\022I\n\006parent\030\001 \001(\tB9\340A\002\372A3\022" - + "1advisorynotifications.googleapis.com/No" - + "tification\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\022E\n\004view\030\004 \001(\01627.google.cloud.a" - + "dvisorynotifications.v1.NotificationView" - + "\022\025\n\rlanguage_code\030\005 \001(\t\"\224\001\n\031ListNotifica" - + "tionsResponse\022J\n\rnotifications\030\001 \003(\01323.g" - + "oogle.cloud.advisorynotifications.v1.Not" - + "ification\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\nto" - + "tal_size\030\003 \001(\005\"x\n\026GetNotificationRequest" - + "\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1advisorynotifica" - + "tions.googleapis.com/Notification\022\025\n\rlan" - + "guage_code\030\005 \001(\t*J\n\020NotificationView\022!\n\035" - + "NOTIFICATION_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC" - + "\020\001\022\010\n\004FULL\020\002*\240\001\n\021LocalizationState\022\"\n\036LO" - + "CALIZATION_STATE_UNSPECIFIED\020\000\022%\n!LOCALI" - + "ZATION_STATE_NOT_APPLICABLE\020\001\022\036\n\032LOCALIZ" - + "ATION_STATE_PENDING\020\002\022 \n\034LOCALIZATION_ST" - + "ATE_COMPLETED\020\0032\251\004\n\034AdvisoryNotification" - + "sService\022\337\001\n\021ListNotifications\022?.google." - + "cloud.advisorynotifications.v1.ListNotif" - + "icationsRequest\032@.google.cloud.advisoryn" - + "otifications.v1.ListNotificationsRespons" - + "e\"G\202\323\344\223\0028\0226/v1/{parent=organizations/*/l" - + "ocations/*}/notifications\332A\006parent\022\314\001\n\017G" - + "etNotification\022=.google.cloud.advisoryno" - + "tifications.v1.GetNotificationRequest\0323." - + "google.cloud.advisorynotifications.v1.No" - + "tification\"E\202\323\344\223\0028\0226/v1/{name=organizati" - + "ons/*/locations/*/notifications/*}\332A\004nam" - + "e\032X\312A$advisorynotifications.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\374\002\n)com.google.cloud.advisor" - + "ynotifications.v1B\014ServiceProtoP\001Z_cloud" - + ".google.com/go/advisorynotifications/api" - + "v1/advisorynotificationspb;advisorynotif" - + "icationspb\252\002%Google.Cloud.AdvisoryNotifi" - + "cations.V1\312\002%Google\\Cloud\\AdvisoryNotifi" - + "cations\\V1\352\002(Google::Cloud::AdvisoryNoti" - + "fications::V1\352Ab\n-advisorynotifications." - + "googleapis.com/Location\0221organizations/{" - + "organization}/locations/{location}b\006prot" - + "o3" - }; - 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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor, - new java.lang.String[] { - "Name", "Subject", "Messages", "CreateTime", - }); - internal_static_google_cloud_advisorynotifications_v1_Text_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Text_descriptor, - new java.lang.String[] { - "EnText", "LocalizedText", "LocalizationState", - }); - internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor, - new java.lang.String[] { - "Text", - }); - internal_static_google_cloud_advisorynotifications_v1_Message_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Message_descriptor, - new java.lang.String[] { - "Body", "Attachments", "CreateTime", "LocalizationTime", - }); - internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor = - internal_static_google_cloud_advisorynotifications_v1_Message_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor, - new java.lang.String[] { - "Text", - }); - internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor, - new java.lang.String[] { - "Csv", "DisplayName", "Data", - }); - internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor, - new java.lang.String[] { - "Headers", "DataRows", - }); - internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor = - internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor - .getNestedTypes() - .get(0); - internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor, - new java.lang.String[] { - "Entries", - }); - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "View", "LanguageCode", - }); - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor, - new java.lang.String[] { - "Notifications", "NextPageToken", "TotalSize", - }); - internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor, - new java.lang.String[] { - "Name", "LanguageCode", - }); - 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.resourceDefinition); - 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.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java similarity index 99% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java index f716f3599da8..7b44724693bd 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java +++ b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.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.advisorynotifications.v1.stub.AdvisoryNotificationsServiceStubSettings; diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/gapic_metadata.json b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/gapic_metadata.json similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/gapic_metadata.json rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/gapic_metadata.json diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/package-info.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/package-info.java similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/package-info.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/package-info.java diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStub.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStub.java similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStub.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStub.java diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceCallableFactory.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceCallableFactory.java similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceCallableFactory.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceCallableFactory.java diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java similarity index 99% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java index a768ed12da7b..1b6341e481c1 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java +++ b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java @@ -33,6 +33,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceCallableFactory.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceCallableFactory.java similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceCallableFactory.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceCallableFactory.java diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceStub.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceStub.java similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceStub.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceStub.java diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java similarity index 98% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java index 4775ac8560a3..4652f22a0ec3 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java +++ b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java @@ -186,6 +186,7 @@ public void getNotificationTest() throws Exception { .setSubject(Subject.newBuilder().build()) .addAllMessages(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .setNotificationType(NotificationType.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -234,6 +235,7 @@ public void getNotificationTest2() throws Exception { .setSubject(Subject.newBuilder().build()) .addAllMessages(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .setNotificationType(NotificationType.forNumber(0)) .build(); mockService.addResponse(expectedResponse); diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java similarity index 98% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java index 6911b357a98c..4a6fd1aa045f 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java +++ b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java @@ -178,6 +178,7 @@ public void getNotificationTest() throws Exception { .setSubject(Subject.newBuilder().build()) .addAllMessages(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .setNotificationType(NotificationType.forNumber(0)) .build(); mockAdvisoryNotificationsService.addResponse(expectedResponse); @@ -220,6 +221,7 @@ public void getNotificationTest2() throws Exception { .setSubject(Subject.newBuilder().build()) .addAllMessages(new ArrayList()) .setCreateTime(Timestamp.newBuilder().build()) + .setNotificationType(NotificationType.forNumber(0)) .build(); mockAdvisoryNotificationsService.addResponse(expectedResponse); diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsService.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsService.java similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsService.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsService.java diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsServiceImpl.java b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsServiceImpl.java similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsServiceImpl.java rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsServiceImpl.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java b/owl-bot-staging/java-advisorynotifications/v1/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java new file mode 100644 index 000000000000..f55e0447e9cc --- /dev/null +++ b/owl-bot-staging/java-advisorynotifications/v1/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java @@ -0,0 +1,409 @@ +package com.google.cloud.advisorynotifications.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * Service to manage Security and Privacy Notifications.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/advisorynotifications/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdvisoryNotificationsServiceGrpc { + + private AdvisoryNotificationsServiceGrpc() {} + + public static final String SERVICE_NAME = "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getListNotificationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNotifications", + requestType = com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, + responseType = com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListNotificationsMethod() { + io.grpc.MethodDescriptor getListNotificationsMethod; + if ((getListNotificationsMethod = AdvisoryNotificationsServiceGrpc.getListNotificationsMethod) == null) { + synchronized (AdvisoryNotificationsServiceGrpc.class) { + if ((getListNotificationsMethod = AdvisoryNotificationsServiceGrpc.getListNotificationsMethod) == null) { + AdvisoryNotificationsServiceGrpc.getListNotificationsMethod = getListNotificationsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotifications")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AdvisoryNotificationsServiceMethodDescriptorSupplier("ListNotifications")) + .build(); + } + } + } + return getListNotificationsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetNotificationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotification", + requestType = com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, + responseType = com.google.cloud.advisorynotifications.v1.Notification.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetNotificationMethod() { + io.grpc.MethodDescriptor getGetNotificationMethod; + if ((getGetNotificationMethod = AdvisoryNotificationsServiceGrpc.getGetNotificationMethod) == null) { + synchronized (AdvisoryNotificationsServiceGrpc.class) { + if ((getGetNotificationMethod = AdvisoryNotificationsServiceGrpc.getGetNotificationMethod) == null) { + AdvisoryNotificationsServiceGrpc.getGetNotificationMethod = getGetNotificationMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotification")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.advisorynotifications.v1.GetNotificationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance())) + .setSchemaDescriptor(new AdvisoryNotificationsServiceMethodDescriptorSupplier("GetNotification")) + .build(); + } + } + } + return getGetNotificationMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AdvisoryNotificationsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdvisoryNotificationsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceStub(channel, callOptions); + } + }; + return AdvisoryNotificationsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdvisoryNotificationsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdvisoryNotificationsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceBlockingStub(channel, callOptions); + } + }; + return AdvisoryNotificationsServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AdvisoryNotificationsServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdvisoryNotificationsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceFutureStub(channel, callOptions); + } + }; + return AdvisoryNotificationsServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * Service to manage Security and Privacy Notifications.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * Lists notifications under a given parent.
+     * 
+ */ + default void listNotifications(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationsMethod(), responseObserver); + } + + /** + *
+     * Gets a notification.
+     * 
+ */ + default void getNotification(com.google.cloud.advisorynotifications.v1.GetNotificationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AdvisoryNotificationsService. + *
+   * Service to manage Security and Privacy Notifications.
+   * 
+ */ + public static abstract class AdvisoryNotificationsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return AdvisoryNotificationsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AdvisoryNotificationsService. + *
+   * Service to manage Security and Privacy Notifications.
+   * 
+ */ + public static final class AdvisoryNotificationsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AdvisoryNotificationsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdvisoryNotificationsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceStub(channel, callOptions); + } + + /** + *
+     * Lists notifications under a given parent.
+     * 
+ */ + public void listNotifications(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotificationsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Gets a notification.
+     * 
+ */ + public void getNotification(com.google.cloud.advisorynotifications.v1.GetNotificationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AdvisoryNotificationsService. + *
+   * Service to manage Security and Privacy Notifications.
+   * 
+ */ + public static final class AdvisoryNotificationsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AdvisoryNotificationsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdvisoryNotificationsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * Lists notifications under a given parent.
+     * 
+ */ + public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse listNotifications(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationsMethod(), getCallOptions(), request); + } + + /** + *
+     * Gets a notification.
+     * 
+ */ + public com.google.cloud.advisorynotifications.v1.Notification getNotification(com.google.cloud.advisorynotifications.v1.GetNotificationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AdvisoryNotificationsService. + *
+   * Service to manage Security and Privacy Notifications.
+   * 
+ */ + public static final class AdvisoryNotificationsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AdvisoryNotificationsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdvisoryNotificationsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceFutureStub(channel, callOptions); + } + + /** + *
+     * Lists notifications under a given parent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listNotifications( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationsMethod(), getCallOptions()), request); + } + + /** + *
+     * Gets a notification.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getNotification( + com.google.cloud.advisorynotifications.v1.GetNotificationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_NOTIFICATIONS = 0; + private static final int METHODID_GET_NOTIFICATION = 1; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_LIST_NOTIFICATIONS: + serviceImpl.listNotifications((com.google.cloud.advisorynotifications.v1.ListNotificationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_NOTIFICATION: + serviceImpl.getNotification((com.google.cloud.advisorynotifications.v1.GetNotificationRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListNotificationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest, + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse>( + service, METHODID_LIST_NOTIFICATIONS))) + .addMethod( + getGetNotificationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.advisorynotifications.v1.GetNotificationRequest, + com.google.cloud.advisorynotifications.v1.Notification>( + service, METHODID_GET_NOTIFICATION))) + .build(); + } + + private static abstract class AdvisoryNotificationsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdvisoryNotificationsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AdvisoryNotificationsService"); + } + } + + private static final class AdvisoryNotificationsServiceFileDescriptorSupplier + extends AdvisoryNotificationsServiceBaseDescriptorSupplier { + AdvisoryNotificationsServiceFileDescriptorSupplier() {} + } + + private static final class AdvisoryNotificationsServiceMethodDescriptorSupplier + extends AdvisoryNotificationsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdvisoryNotificationsServiceMethodDescriptorSupplier(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 (AdvisoryNotificationsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdvisoryNotificationsServiceFileDescriptorSupplier()) + .addMethod(getListNotificationsMethod()) + .addMethod(getGetNotificationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java similarity index 69% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java index 510af40d0a68..c7c3e3fb7d87 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java @@ -1,83 +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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** - * - * *
  * Attachment with specific information about the issue.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Attachment} */ -public final class Attachment extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Attachment extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Attachment) AttachmentOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Attachment.newBuilder() to construct. private Attachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Attachment() { displayName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Attachment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Attachment.class, - com.google.cloud.advisorynotifications.v1.Attachment.Builder.class); + com.google.cloud.advisorynotifications.v1.Attachment.class, com.google.cloud.advisorynotifications.v1.Attachment.Builder.class); } private int dataCase_ = 0; private java.lang.Object data_; - public enum DataCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CSV(2), DATA_NOT_SET(0); private final int value; - private DataCase(int value) { this.value = value; } @@ -93,34 +71,29 @@ public static DataCase valueOf(int value) { public static DataCase forNumber(int value) { switch (value) { - case 2: - return CSV; - case 0: - return DATA_NOT_SET; - default: - return null; + case 2: return CSV; + case 0: return DATA_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public static final int CSV_FIELD_NUMBER = 2; /** - * - * *
    * A CSV file attachment. Max size is 10 MB.
    * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; - * * @return Whether the csv field is set. */ @java.lang.Override @@ -128,26 +101,21 @@ public boolean hasCsv() { return dataCase_ == 2; } /** - * - * *
    * A CSV file attachment. Max size is 10 MB.
    * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; - * * @return The csv. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Csv getCsv() { if (dataCase_ == 2) { - return (com.google.cloud.advisorynotifications.v1.Csv) data_; + return (com.google.cloud.advisorynotifications.v1.Csv) data_; } return com.google.cloud.advisorynotifications.v1.Csv.getDefaultInstance(); } /** - * - * *
    * A CSV file attachment. Max size is 10 MB.
    * 
@@ -157,24 +125,20 @@ public com.google.cloud.advisorynotifications.v1.Csv getCsv() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder() { if (dataCase_ == 2) { - return (com.google.cloud.advisorynotifications.v1.Csv) data_; + return (com.google.cloud.advisorynotifications.v1.Csv) data_; } return com.google.cloud.advisorynotifications.v1.Csv.getDefaultInstance(); } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** - * - * *
    * The title of the attachment.
    * 
* * string display_name = 1; - * * @return The displayName. */ @java.lang.Override @@ -183,29 +147,29 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** - * - * *
    * The title of the attachment.
    * 
* * string display_name = 1; - * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -214,7 +178,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -226,7 +189,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } @@ -246,9 +210,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (dataCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.advisorynotifications.v1.Csv) data_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.advisorynotifications.v1.Csv) data_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -258,19 +221,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.advisorynotifications.v1.Attachment)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Attachment other = - (com.google.cloud.advisorynotifications.v1.Attachment) obj; + com.google.cloud.advisorynotifications.v1.Attachment other = (com.google.cloud.advisorynotifications.v1.Attachment) obj; - if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDisplayName() + .equals(other.getDisplayName())) return false; if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 2: - if (!getCsv().equals(other.getCsv())) return false; + if (!getCsv() + .equals(other.getCsv())) return false; break; case 0: default: @@ -302,135 +266,129 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Attachment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Attachment parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment 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; } /** - * - * *
    * Attachment with specific information about the issue.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Attachment} */ - 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.advisorynotifications.v1.Attachment) com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Attachment.class, - com.google.cloud.advisorynotifications.v1.Attachment.Builder.class); + com.google.cloud.advisorynotifications.v1.Attachment.class, com.google.cloud.advisorynotifications.v1.Attachment.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Attachment.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -445,9 +403,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; } @java.lang.Override @@ -466,11 +424,8 @@ public com.google.cloud.advisorynotifications.v1.Attachment build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Attachment buildPartial() { - com.google.cloud.advisorynotifications.v1.Attachment result = - new com.google.cloud.advisorynotifications.v1.Attachment(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.advisorynotifications.v1.Attachment result = new com.google.cloud.advisorynotifications.v1.Attachment(this); + if (bitField0_ != 0) { buildPartial0(result); } buildPartialOneofs(result); onBuilt(); return result; @@ -486,7 +441,8 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Attachment private void buildPartialOneofs(com.google.cloud.advisorynotifications.v1.Attachment result) { result.dataCase_ = dataCase_; result.data_ = this.data_; - if (dataCase_ == 2 && csvBuilder_ != null) { + if (dataCase_ == 2 && + csvBuilder_ != null) { result.data_ = csvBuilder_.build(); } } @@ -495,39 +451,38 @@ private void buildPartialOneofs(com.google.cloud.advisorynotifications.v1.Attach 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.advisorynotifications.v1.Attachment) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Attachment) other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Attachment)other); } else { super.mergeFrom(other); return this; @@ -535,23 +490,20 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Attachment other) { - if (other == com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()) - return this; + if (other == com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()) return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDataCase()) { - case CSV: - { - mergeCsv(other.getCsv()); - break; - } - case DATA_NOT_SET: - { - break; - } + case CSV: { + mergeCsv(other.getCsv()); + break; + } + case DATA_NOT_SET: { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -579,25 +531,24 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - input.readMessage(getCsvFieldBuilder().getBuilder(), extensionRegistry); - dataCase_ = 2; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: { + input.readMessage( + getCsvFieldBuilder().getBuilder(), + extensionRegistry); + dataCase_ = 2; + break; + } // case 18 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -607,12 +558,12 @@ public Builder mergeFrom( } // finally return this; } - private int dataCase_ = 0; private java.lang.Object data_; - - public DataCase getDataCase() { - return DataCase.forNumber(dataCase_); + public DataCase + getDataCase() { + return DataCase.forNumber( + dataCase_); } public Builder clearData() { @@ -625,19 +576,13 @@ public Builder clearData() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Csv, - com.google.cloud.advisorynotifications.v1.Csv.Builder, - com.google.cloud.advisorynotifications.v1.CsvOrBuilder> - csvBuilder_; + com.google.cloud.advisorynotifications.v1.Csv, com.google.cloud.advisorynotifications.v1.Csv.Builder, com.google.cloud.advisorynotifications.v1.CsvOrBuilder> csvBuilder_; /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; - * * @return Whether the csv field is set. */ @java.lang.Override @@ -645,14 +590,11 @@ public boolean hasCsv() { return dataCase_ == 2; } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; - * * @return The csv. */ @java.lang.Override @@ -670,8 +612,6 @@ public com.google.cloud.advisorynotifications.v1.Csv getCsv() { } } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -692,15 +632,14 @@ public Builder setCsv(com.google.cloud.advisorynotifications.v1.Csv value) { return this; } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; */ - public Builder setCsv(com.google.cloud.advisorynotifications.v1.Csv.Builder builderForValue) { + public Builder setCsv( + com.google.cloud.advisorynotifications.v1.Csv.Builder builderForValue) { if (csvBuilder_ == null) { data_ = builderForValue.build(); onChanged(); @@ -711,8 +650,6 @@ public Builder setCsv(com.google.cloud.advisorynotifications.v1.Csv.Builder buil return this; } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -721,13 +658,10 @@ public Builder setCsv(com.google.cloud.advisorynotifications.v1.Csv.Builder buil */ public Builder mergeCsv(com.google.cloud.advisorynotifications.v1.Csv value) { if (csvBuilder_ == null) { - if (dataCase_ == 2 - && data_ != com.google.cloud.advisorynotifications.v1.Csv.getDefaultInstance()) { - data_ = - com.google.cloud.advisorynotifications.v1.Csv.newBuilder( - (com.google.cloud.advisorynotifications.v1.Csv) data_) - .mergeFrom(value) - .buildPartial(); + if (dataCase_ == 2 && + data_ != com.google.cloud.advisorynotifications.v1.Csv.getDefaultInstance()) { + data_ = com.google.cloud.advisorynotifications.v1.Csv.newBuilder((com.google.cloud.advisorynotifications.v1.Csv) data_) + .mergeFrom(value).buildPartial(); } else { data_ = value; } @@ -743,8 +677,6 @@ public Builder mergeCsv(com.google.cloud.advisorynotifications.v1.Csv value) { return this; } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -768,8 +700,6 @@ public Builder clearCsv() { return this; } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -780,8 +710,6 @@ public com.google.cloud.advisorynotifications.v1.Csv.Builder getCsvBuilder() { return getCsvFieldBuilder().getBuilder(); } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -800,8 +728,6 @@ public com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder() } } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -809,19 +735,14 @@ public com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder() * .google.cloud.advisorynotifications.v1.Csv csv = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Csv, - com.google.cloud.advisorynotifications.v1.Csv.Builder, - com.google.cloud.advisorynotifications.v1.CsvOrBuilder> + com.google.cloud.advisorynotifications.v1.Csv, com.google.cloud.advisorynotifications.v1.Csv.Builder, com.google.cloud.advisorynotifications.v1.CsvOrBuilder> getCsvFieldBuilder() { if (csvBuilder_ == null) { if (!(dataCase_ == 2)) { data_ = com.google.cloud.advisorynotifications.v1.Csv.getDefaultInstance(); } - csvBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Csv, - com.google.cloud.advisorynotifications.v1.Csv.Builder, - com.google.cloud.advisorynotifications.v1.CsvOrBuilder>( + csvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Csv, com.google.cloud.advisorynotifications.v1.Csv.Builder, com.google.cloud.advisorynotifications.v1.CsvOrBuilder>( (com.google.cloud.advisorynotifications.v1.Csv) data_, getParentForChildren(), isClean()); @@ -834,20 +755,18 @@ public com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder() private java.lang.Object displayName_ = ""; /** - * - * *
      * The title of the attachment.
      * 
* * string display_name = 1; - * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -856,21 +775,20 @@ public java.lang.String getDisplayName() { } } /** - * - * *
      * The title of the attachment.
      * 
* * string display_name = 1; - * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString getDisplayNameBytes() { + public com.google.protobuf.ByteString + getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -878,35 +796,28 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } } /** - * - * *
      * The title of the attachment.
      * 
* * string display_name = 1; - * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The title of the attachment.
      * 
* * string display_name = 1; - * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -916,30 +827,26 @@ public Builder clearDisplayName() { return this; } /** - * - * *
      * The title of the attachment.
      * 
* * string display_name = 1; - * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; 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); } @@ -949,12 +856,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Attachment) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Attachment) private static final com.google.cloud.advisorynotifications.v1.Attachment DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Attachment(); } @@ -963,27 +870,27 @@ public static com.google.cloud.advisorynotifications.v1.Attachment getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -998,4 +905,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Attachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java similarity index 65% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java index 5798e0200fe9..95664bee11e7 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java @@ -1,55 +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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface AttachmentOrBuilder - extends +public interface AttachmentOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Attachment) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A CSV file attachment. Max size is 10 MB.
    * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; - * * @return Whether the csv field is set. */ boolean hasCsv(); /** - * - * *
    * A CSV file attachment. Max size is 10 MB.
    * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; - * * @return The csv. */ com.google.cloud.advisorynotifications.v1.Csv getCsv(); /** - * - * *
    * A CSV file attachment. Max size is 10 MB.
    * 
@@ -59,29 +35,24 @@ public interface AttachmentOrBuilder com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder(); /** - * - * *
    * The title of the attachment.
    * 
* * string display_name = 1; - * * @return The displayName. */ java.lang.String getDisplayName(); /** - * - * *
    * The title of the attachment.
    * 
* * string display_name = 1; - * * @return The bytes for displayName. */ - com.google.protobuf.ByteString getDisplayNameBytes(); + com.google.protobuf.ByteString + getDisplayNameBytes(); public com.google.cloud.advisorynotifications.v1.Attachment.DataCase getDataCase(); } diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java similarity index 74% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java index 3b58f83def66..8a440272f7c2 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** - * - * *
  * A representation of a CSV file attachment, as a list of column headers and
  * a list of data rows.
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.advisorynotifications.v1.Csv}
  */
-public final class Csv extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Csv extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Csv)
     CsvOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Csv.newBuilder() to construct.
   private Csv(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Csv() {
     headers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     dataRows_ = java.util.Collections.emptyList();
@@ -45,183 +27,158 @@ private Csv() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Csv();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.advisorynotifications.v1.ServiceProto
-        .internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.advisorynotifications.v1.ServiceProto
-        .internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable
+    return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.advisorynotifications.v1.Csv.class,
-            com.google.cloud.advisorynotifications.v1.Csv.Builder.class);
+            com.google.cloud.advisorynotifications.v1.Csv.class, com.google.cloud.advisorynotifications.v1.Csv.Builder.class);
   }
 
-  public interface CsvRowOrBuilder
-      extends
+  public interface CsvRowOrBuilder extends
       // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Csv.CsvRow)
       com.google.protobuf.MessageOrBuilder {
 
     /**
-     *
-     *
      * 
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; - * * @return A list containing the entries. */ - java.util.List getEntriesList(); + java.util.List + getEntriesList(); /** - * - * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; - * * @return The count of entries. */ int getEntriesCount(); /** - * - * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; - * * @param index The index of the element to return. * @return The entries at the given index. */ java.lang.String getEntries(int index); /** - * - * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; - * * @param index The index of the value to return. * @return The bytes of the entries at the given index. */ - com.google.protobuf.ByteString getEntriesBytes(int index); + com.google.protobuf.ByteString + getEntriesBytes(int index); } /** - * - * *
    * A representation of a single data row in a CSV file.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Csv.CsvRow} */ - public static final class CsvRow extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class CsvRow extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Csv.CsvRow) CsvRowOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CsvRow.newBuilder() to construct. private CsvRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CsvRow() { entries_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CsvRow(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Csv.CsvRow.class, - com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder.class); + com.google.cloud.advisorynotifications.v1.Csv.CsvRow.class, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder.class); } public static final int ENTRIES_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList entries_; /** - * - * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; - * * @return A list containing the entries. */ - public com.google.protobuf.ProtocolStringList getEntriesList() { + public com.google.protobuf.ProtocolStringList + getEntriesList() { return entries_; } /** - * - * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; - * * @return The count of entries. */ public int getEntriesCount() { return entries_.size(); } /** - * - * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; - * * @param index The index of the element to return. * @return The entries at the given index. */ @@ -229,24 +186,21 @@ public java.lang.String getEntries(int index) { return entries_.get(index); } /** - * - * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; - * * @param index The index of the value to return. * @return The bytes of the entries at the given index. */ - public com.google.protobuf.ByteString getEntriesBytes(int index) { + public com.google.protobuf.ByteString + getEntriesBytes(int index) { return entries_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -258,7 +212,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 < entries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entries_.getRaw(i)); } @@ -287,15 +242,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.advisorynotifications.v1.Csv.CsvRow)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Csv.CsvRow other = - (com.google.cloud.advisorynotifications.v1.Csv.CsvRow) obj; + com.google.cloud.advisorynotifications.v1.Csv.CsvRow other = (com.google.cloud.advisorynotifications.v1.Csv.CsvRow) obj; - if (!getEntriesList().equals(other.getEntriesList())) return false; + if (!getEntriesList() + .equals(other.getEntriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -317,94 +272,87 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow prototype) { + public static Builder newBuilder(com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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 @@ -414,41 +362,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A representation of a single data row in a CSV file.
      * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Csv.CsvRow} */ - 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.advisorynotifications.v1.Csv.CsvRow) com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Csv.CsvRow.class, - com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder.class); + com.google.cloud.advisorynotifications.v1.Csv.CsvRow.class, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Csv.CsvRow.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -459,9 +405,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; } @java.lang.Override @@ -480,18 +426,14 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Csv.CsvRow buildPartial() { - com.google.cloud.advisorynotifications.v1.Csv.CsvRow result = - new com.google.cloud.advisorynotifications.v1.Csv.CsvRow(this); + com.google.cloud.advisorynotifications.v1.Csv.CsvRow result = new com.google.cloud.advisorynotifications.v1.Csv.CsvRow(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.advisorynotifications.v1.Csv.CsvRow result) { + private void buildPartialRepeatedFields(com.google.cloud.advisorynotifications.v1.Csv.CsvRow result) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = entries_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -507,41 +449,38 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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) { + 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.advisorynotifications.v1.Csv.CsvRow) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Csv.CsvRow) other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Csv.CsvRow)other); } else { super.mergeFrom(other); return this; @@ -549,8 +488,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Csv.CsvRow other) { - if (other == com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance()) - return this; + if (other == com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance()) return this; if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; @@ -587,20 +525,18 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureEntriesIsMutable(); - entries_.add(s); - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + ensureEntriesIsMutable(); + entries_.add(s); + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -610,58 +546,47 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; - private com.google.protobuf.LazyStringList entries_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList entries_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new com.google.protobuf.LazyStringArrayList(entries_); bitField0_ |= 0x00000001; - } + } } /** - * - * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; - * * @return A list containing the entries. */ - public com.google.protobuf.ProtocolStringList getEntriesList() { + public com.google.protobuf.ProtocolStringList + getEntriesList() { return entries_.getUnmodifiableView(); } /** - * - * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; - * * @return The count of entries. */ public int getEntriesCount() { return entries_.size(); } /** - * - * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; - * * @param index The index of the element to return. * @return The entries at the given index. */ @@ -669,95 +594,81 @@ public java.lang.String getEntries(int index) { return entries_.get(index); } /** - * - * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; - * * @param index The index of the value to return. * @return The bytes of the entries at the given index. */ - public com.google.protobuf.ByteString getEntriesBytes(int index) { + public com.google.protobuf.ByteString + getEntriesBytes(int index) { return entries_.getByteString(index); } /** - * - * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; - * * @param index The index to set the value at. * @param value The entries to set. * @return This builder for chaining. */ - public Builder setEntries(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEntries( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); return this; } /** - * - * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; - * * @param value The entries to add. * @return This builder for chaining. */ - public Builder addEntries(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEntries( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureEntriesIsMutable(); entries_.add(value); onChanged(); return this; } /** - * - * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; - * * @param values The entries to add. * @return This builder for chaining. */ - public Builder addAllEntries(java.lang.Iterable values) { + public Builder addAllEntries( + java.lang.Iterable values) { ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, entries_); onChanged(); return this; } /** - * - * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; - * * @return This builder for chaining. */ public Builder clearEntries() { @@ -767,29 +678,24 @@ public Builder clearEntries() { return this; } /** - * - * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; - * * @param value The bytes of the entries to add. * @return This builder for chaining. */ - public Builder addEntriesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addEntriesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureEntriesIsMutable(); entries_.add(value); onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -802,12 +708,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Csv.CsvRow) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Csv.CsvRow) private static final com.google.cloud.advisorynotifications.v1.Csv.CsvRow DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Csv.CsvRow(); } @@ -816,28 +722,27 @@ public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CsvRow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvRow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -852,49 +757,41 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Csv.CsvRow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int HEADERS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private com.google.protobuf.LazyStringList headers_; /** - * - * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; - * * @return A list containing the headers. */ - public com.google.protobuf.ProtocolStringList getHeadersList() { + public com.google.protobuf.ProtocolStringList + getHeadersList() { return headers_; } /** - * - * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; - * * @return The count of headers. */ public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; - * * @param index The index of the element to return. * @return The headers at the given index. */ @@ -902,28 +799,23 @@ public java.lang.String getHeaders(int index) { return headers_.get(index); } /** - * - * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; - * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - public com.google.protobuf.ByteString getHeadersBytes(int index) { + public com.google.protobuf.ByteString + getHeadersBytes(int index) { return headers_.getByteString(index); } public static final int DATA_ROWS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List dataRows_; /** - * - * *
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -936,8 +828,6 @@ public java.util.List getD
     return dataRows_;
   }
   /**
-   *
-   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -946,13 +836,11 @@ public java.util.List getD
    * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
    */
   @java.lang.Override
-  public java.util.List
+  public java.util.List 
       getDataRowsOrBuilderList() {
     return dataRows_;
   }
   /**
-   *
-   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -965,8 +853,6 @@ public int getDataRowsCount() {
     return dataRows_.size();
   }
   /**
-   *
-   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -979,8 +865,6 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow getDataRows(int inde
     return dataRows_.get(index);
   }
   /**
-   *
-   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -995,7 +879,6 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRows
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -1007,7 +890,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 < headers_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, headers_.getRaw(i));
     }
@@ -1032,7 +916,8 @@ public int getSerializedSize() {
       size += 1 * getHeadersList().size();
     }
     for (int i = 0; i < dataRows_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dataRows_.get(i));
+      size += com.google.protobuf.CodedOutputStream
+        .computeMessageSize(2, dataRows_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -1042,16 +927,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.advisorynotifications.v1.Csv)) {
       return super.equals(obj);
     }
-    com.google.cloud.advisorynotifications.v1.Csv other =
-        (com.google.cloud.advisorynotifications.v1.Csv) obj;
+    com.google.cloud.advisorynotifications.v1.Csv other = (com.google.cloud.advisorynotifications.v1.Csv) obj;
 
-    if (!getHeadersList().equals(other.getHeadersList())) return false;
-    if (!getDataRowsList().equals(other.getDataRowsList())) return false;
+    if (!getHeadersList()
+        .equals(other.getHeadersList())) return false;
+    if (!getDataRowsList()
+        .equals(other.getDataRowsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -1076,104 +962,97 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.advisorynotifications.v1.Csv parseFrom(java.nio.ByteBuffer data)
+  public static com.google.cloud.advisorynotifications.v1.Csv parseFrom(
+      java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
-
   public static com.google.cloud.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv parseDelimitedFrom(
-      java.io.InputStream input) throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
+  public static com.google.cloud.advisorynotifications.v1.Csv parseDelimitedFrom(java.io.InputStream input)
+      throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3
+        .parseDelimitedWithIOException(PARSER, input);
   }
-
   public static com.google.cloud.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv 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 representation of a CSV file attachment, as a list of column headers and
    * a list of data rows.
@@ -1181,32 +1060,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.advisorynotifications.v1.Csv}
    */
-  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.advisorynotifications.v1.Csv)
       com.google.cloud.advisorynotifications.v1.CsvOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto
-          .internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto
-          .internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable
+      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.advisorynotifications.v1.Csv.class,
-              com.google.cloud.advisorynotifications.v1.Csv.Builder.class);
+              com.google.cloud.advisorynotifications.v1.Csv.class, com.google.cloud.advisorynotifications.v1.Csv.Builder.class);
     }
 
     // Construct using com.google.cloud.advisorynotifications.v1.Csv.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1224,9 +1104,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto
-          .internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
     }
 
     @java.lang.Override
@@ -1245,12 +1125,9 @@ public com.google.cloud.advisorynotifications.v1.Csv build() {
 
     @java.lang.Override
     public com.google.cloud.advisorynotifications.v1.Csv buildPartial() {
-      com.google.cloud.advisorynotifications.v1.Csv result =
-          new com.google.cloud.advisorynotifications.v1.Csv(this);
+      com.google.cloud.advisorynotifications.v1.Csv result = new com.google.cloud.advisorynotifications.v1.Csv(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
@@ -1280,39 +1157,38 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Csv result)
     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.advisorynotifications.v1.Csv) {
-        return mergeFrom((com.google.cloud.advisorynotifications.v1.Csv) other);
+        return mergeFrom((com.google.cloud.advisorynotifications.v1.Csv)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1349,10 +1225,9 @@ public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Csv other) {
             dataRowsBuilder_ = null;
             dataRows_ = other.dataRows_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            dataRowsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getDataRowsFieldBuilder()
-                    : null;
+            dataRowsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getDataRowsFieldBuilder() : null;
           } else {
             dataRowsBuilder_.addAllMessages(other.dataRows_);
           }
@@ -1384,34 +1259,31 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                java.lang.String s = input.readStringRequireUtf8();
-                ensureHeadersIsMutable();
-                headers_.add(s);
-                break;
-              } // case 10
-            case 18:
-              {
-                com.google.cloud.advisorynotifications.v1.Csv.CsvRow m =
-                    input.readMessage(
-                        com.google.cloud.advisorynotifications.v1.Csv.CsvRow.parser(),
-                        extensionRegistry);
-                if (dataRowsBuilder_ == null) {
-                  ensureDataRowsIsMutable();
-                  dataRows_.add(m);
-                } else {
-                  dataRowsBuilder_.addMessage(m);
-                }
-                break;
-              } // case 18
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              java.lang.String s = input.readStringRequireUtf8();
+              ensureHeadersIsMutable();
+              headers_.add(s);
+              break;
+            } // case 10
+            case 18: {
+              com.google.cloud.advisorynotifications.v1.Csv.CsvRow m =
+                  input.readMessage(
+                      com.google.cloud.advisorynotifications.v1.Csv.CsvRow.parser(),
+                      extensionRegistry);
+              if (dataRowsBuilder_ == null) {
+                ensureDataRowsIsMutable();
+                dataRows_.add(m);
+              } else {
+                dataRowsBuilder_.addMessage(m);
+              }
+              break;
+            } // case 18
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1421,55 +1293,44 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList headers_ =
-        com.google.protobuf.LazyStringArrayList.EMPTY;
-
+    private com.google.protobuf.LazyStringList headers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     private void ensureHeadersIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         headers_ = new com.google.protobuf.LazyStringArrayList(headers_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
     /**
-     *
-     *
      * 
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; - * * @return A list containing the headers. */ - public com.google.protobuf.ProtocolStringList getHeadersList() { + public com.google.protobuf.ProtocolStringList + getHeadersList() { return headers_.getUnmodifiableView(); } /** - * - * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; - * * @return The count of headers. */ public int getHeadersCount() { return headers_.size(); } /** - * - * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; - * * @param index The index of the element to return. * @return The headers at the given index. */ @@ -1477,90 +1338,76 @@ public java.lang.String getHeaders(int index) { return headers_.get(index); } /** - * - * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; - * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - public com.google.protobuf.ByteString getHeadersBytes(int index) { + public com.google.protobuf.ByteString + getHeadersBytes(int index) { return headers_.getByteString(index); } /** - * - * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; - * * @param index The index to set the value at. * @param value The headers to set. * @return This builder for chaining. */ - public Builder setHeaders(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setHeaders( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.set(index, value); onChanged(); return this; } /** - * - * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; - * * @param value The headers to add. * @return This builder for chaining. */ - public Builder addHeaders(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addHeaders( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } ensureHeadersIsMutable(); headers_.add(value); onChanged(); return this; } /** - * - * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; - * * @param values The headers to add. * @return This builder for chaining. */ - public Builder addAllHeaders(java.lang.Iterable values) { + public Builder addAllHeaders( + java.lang.Iterable values) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headers_); onChanged(); return this; } /** - * - * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; - * * @return This builder for chaining. */ public Builder clearHeaders() { @@ -1570,21 +1417,17 @@ public Builder clearHeaders() { return this; } /** - * - * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; - * * @param value The bytes of the headers to add. * @return This builder for chaining. */ - public Builder addHeadersBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder addHeadersBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); ensureHeadersIsMutable(); headers_.add(value); @@ -1593,26 +1436,18 @@ public Builder addHeadersBytes(com.google.protobuf.ByteString value) { } private java.util.List dataRows_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureDataRowsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - dataRows_ = - new java.util.ArrayList( - dataRows_); + dataRows_ = new java.util.ArrayList(dataRows_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Csv.CsvRow, - com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder, - com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder> - dataRowsBuilder_; + com.google.cloud.advisorynotifications.v1.Csv.CsvRow, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder, com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder> dataRowsBuilder_; /** - * - * *
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1628,8 +1463,6 @@ public java.util.List getD
       }
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1645,8 +1478,6 @@ public int getDataRowsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1662,8 +1493,6 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow getDataRows(int inde
       }
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1686,8 +1515,6 @@ public Builder setDataRows(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1707,8 +1534,6 @@ public Builder setDataRows(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1730,8 +1555,6 @@ public Builder addDataRows(com.google.cloud.advisorynotifications.v1.Csv.CsvRow
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1754,8 +1577,6 @@ public Builder addDataRows(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1775,8 +1596,6 @@ public Builder addDataRows(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1796,8 +1615,6 @@ public Builder addDataRows(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1809,7 +1626,8 @@ public Builder addAllDataRows(
         java.lang.Iterable values) {
       if (dataRowsBuilder_ == null) {
         ensureDataRowsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataRows_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(
+            values, dataRows_);
         onChanged();
       } else {
         dataRowsBuilder_.addAllMessages(values);
@@ -1817,8 +1635,6 @@ public Builder addAllDataRows(
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1837,8 +1653,6 @@ public Builder clearDataRows() {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1857,8 +1671,6 @@ public Builder removeDataRows(int index) {
       return this;
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1871,8 +1683,6 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder getDataRowsB
       return getDataRowsFieldBuilder().getBuilder(index);
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1883,14 +1693,11 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder getDataRowsB
     public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRowsOrBuilder(
         int index) {
       if (dataRowsBuilder_ == null) {
-        return dataRows_.get(index);
-      } else {
+        return dataRows_.get(index);  } else {
         return dataRowsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1898,8 +1705,8 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRows
      *
      * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
      */
-    public java.util.List
-        getDataRowsOrBuilderList() {
+    public java.util.List 
+         getDataRowsOrBuilderList() {
       if (dataRowsBuilder_ != null) {
         return dataRowsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1907,8 +1714,6 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRows
       }
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1917,12 +1722,10 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRows
      * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
      */
     public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder addDataRowsBuilder() {
-      return getDataRowsFieldBuilder()
-          .addBuilder(com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance());
+      return getDataRowsFieldBuilder().addBuilder(
+          com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1932,13 +1735,10 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder addDataRowsB
      */
     public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder addDataRowsBuilder(
         int index) {
-      return getDataRowsFieldBuilder()
-          .addBuilder(
-              index, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance());
+      return getDataRowsFieldBuilder().addBuilder(
+          index, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance());
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1946,30 +1746,27 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder addDataRowsB
      *
      * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
      */
-    public java.util.List
-        getDataRowsBuilderList() {
+    public java.util.List 
+         getDataRowsBuilderList() {
       return getDataRowsFieldBuilder().getBuilderList();
     }
-
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.advisorynotifications.v1.Csv.CsvRow,
-            com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder,
-            com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder>
+        com.google.cloud.advisorynotifications.v1.Csv.CsvRow, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder, com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder> 
         getDataRowsFieldBuilder() {
       if (dataRowsBuilder_ == null) {
-        dataRowsBuilder_ =
-            new com.google.protobuf.RepeatedFieldBuilderV3<
-                com.google.cloud.advisorynotifications.v1.Csv.CsvRow,
-                com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder,
-                com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder>(
-                dataRows_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
+        dataRowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+            com.google.cloud.advisorynotifications.v1.Csv.CsvRow, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder, com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder>(
+                dataRows_,
+                ((bitField0_ & 0x00000002) != 0),
+                getParentForChildren(),
+                isClean());
         dataRows_ = null;
       }
       return dataRowsBuilder_;
     }
-
     @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);
     }
 
@@ -1979,12 +1776,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
+
     // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Csv)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Csv)
   private static final com.google.cloud.advisorynotifications.v1.Csv DEFAULT_INSTANCE;
-
   static {
     DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Csv();
   }
@@ -1993,27 +1790,27 @@ public static com.google.cloud.advisorynotifications.v1.Csv getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser PARSER =
-      new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public Csv parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          Builder builder = newBuilder();
-          try {
-            builder.mergeFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            throw e.setUnfinishedMessage(builder.buildPartial());
-          } catch (com.google.protobuf.UninitializedMessageException e) {
-            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-          } catch (java.io.IOException e) {
-            throw new com.google.protobuf.InvalidProtocolBufferException(e)
-                .setUnfinishedMessage(builder.buildPartial());
-          }
-          return builder.buildPartial();
-        }
-      };
+  private static final com.google.protobuf.Parser
+      PARSER = new com.google.protobuf.AbstractParser() {
+    @java.lang.Override
+    public Csv parsePartialFrom(
+        com.google.protobuf.CodedInputStream input,
+        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+        throws com.google.protobuf.InvalidProtocolBufferException {
+      Builder builder = newBuilder();
+      try {
+        builder.mergeFrom(input, extensionRegistry);
+      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+        throw e.setUnfinishedMessage(builder.buildPartial());
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+      } catch (java.io.IOException e) {
+        throw new com.google.protobuf.InvalidProtocolBufferException(e)
+            .setUnfinishedMessage(builder.buildPartial());
+      }
+      return builder.buildPartial();
+    }
+  };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -2028,4 +1825,6 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.advisorynotifications.v1.Csv getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
+
 }
+
diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java
similarity index 74%
rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java
rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java
index 177661850dda..3a2010043cdf 100644
--- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java
+++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java
@@ -1,82 +1,54 @@
-/*
- * 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/advisorynotifications/v1/service.proto
 
 package com.google.cloud.advisorynotifications.v1;
 
-public interface CsvOrBuilder
-    extends
+public interface CsvOrBuilder extends
     // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Csv)
     com.google.protobuf.MessageOrBuilder {
 
   /**
-   *
-   *
    * 
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; - * * @return A list containing the headers. */ - java.util.List getHeadersList(); + java.util.List + getHeadersList(); /** - * - * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; - * * @return The count of headers. */ int getHeadersCount(); /** - * - * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; - * * @param index The index of the element to return. * @return The headers at the given index. */ java.lang.String getHeaders(int index); /** - * - * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; - * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - com.google.protobuf.ByteString getHeadersBytes(int index); + com.google.protobuf.ByteString + getHeadersBytes(int index); /** - * - * *
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -84,10 +56,9 @@ public interface CsvOrBuilder
    *
    * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
    */
-  java.util.List getDataRowsList();
+  java.util.List 
+      getDataRowsList();
   /**
-   *
-   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -97,8 +68,6 @@ public interface CsvOrBuilder
    */
   com.google.cloud.advisorynotifications.v1.Csv.CsvRow getDataRows(int index);
   /**
-   *
-   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -108,8 +77,6 @@ public interface CsvOrBuilder
    */
   int getDataRowsCount();
   /**
-   *
-   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -117,11 +84,9 @@ public interface CsvOrBuilder
    *
    * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
    */
-  java.util.List
+  java.util.List 
       getDataRowsOrBuilderList();
   /**
-   *
-   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -129,5 +94,6 @@ public interface CsvOrBuilder
    *
    * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
    */
-  com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRowsOrBuilder(int index);
+  com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRowsOrBuilder(
+      int index);
 }
diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java
similarity index 66%
rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java
rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java
index 68c26c3cf17b..d7c4447ee1c8 100644
--- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java
+++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.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/advisorynotifications/v1/service.proto
 
 package com.google.cloud.advisorynotifications.v1;
 
 /**
- *
- *
  * 
  * Request for fetching a notification.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.GetNotificationRequest} */ -public final class GetNotificationRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class GetNotificationRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.GetNotificationRequest) GetNotificationRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use GetNotificationRequest.newBuilder() to construct. private GetNotificationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetNotificationRequest() { name_ = ""; languageCode_ = ""; @@ -44,47 +26,40 @@ private GetNotificationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNotificationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, - com.google.cloud.advisorynotifications.v1.GetNotificationRequest.Builder.class); + com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, com.google.cloud.advisorynotifications.v1.GetNotificationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** - * - * *
    * Required. A name of the notification to retrieve.
    * Format:
    * organizations/{organization}/locations/{location}/notifications/{notification}.
    * 
* - * - * 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 @@ -93,33 +68,31 @@ 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. A name of the notification to retrieve.
    * Format:
    * organizations/{organization}/locations/{location}/notifications/{notification}.
    * 
* - * - * 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 { @@ -128,12 +101,9 @@ public com.google.protobuf.ByteString getNameBytes() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
    * ISO code for requested localization language. If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -143,7 +113,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string language_code = 5; - * * @return The languageCode. */ @java.lang.Override @@ -152,15 +121,14 @@ public java.lang.String getLanguageCode() { 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(); languageCode_ = s; return s; } } /** - * - * *
    * ISO code for requested localization language. If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -170,15 +138,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 5; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -187,7 +156,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -199,7 +167,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -229,16 +198,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.advisorynotifications.v1.GetNotificationRequest)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.GetNotificationRequest other = - (com.google.cloud.advisorynotifications.v1.GetNotificationRequest) obj; + com.google.cloud.advisorynotifications.v1.GetNotificationRequest other = (com.google.cloud.advisorynotifications.v1.GetNotificationRequest) obj; - if (!getName().equals(other.getName())) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -260,136 +230,129 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest prototype) { + public static Builder newBuilder(com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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 for fetching a notification.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.GetNotificationRequest} */ - 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.advisorynotifications.v1.GetNotificationRequest) com.google.cloud.advisorynotifications.v1.GetNotificationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, - com.google.cloud.advisorynotifications.v1.GetNotificationRequest.Builder.class); + com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, com.google.cloud.advisorynotifications.v1.GetNotificationRequest.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.GetNotificationRequest.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -400,14 +363,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.GetNotificationRequest - getDefaultInstanceForType() { + public com.google.cloud.advisorynotifications.v1.GetNotificationRequest getDefaultInstanceForType() { return com.google.cloud.advisorynotifications.v1.GetNotificationRequest.getDefaultInstance(); } @@ -422,17 +384,13 @@ public com.google.cloud.advisorynotifications.v1.GetNotificationRequest build() @java.lang.Override public com.google.cloud.advisorynotifications.v1.GetNotificationRequest buildPartial() { - com.google.cloud.advisorynotifications.v1.GetNotificationRequest result = - new com.google.cloud.advisorynotifications.v1.GetNotificationRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.advisorynotifications.v1.GetNotificationRequest result = new com.google.cloud.advisorynotifications.v1.GetNotificationRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest result) { + private void buildPartial0(com.google.cloud.advisorynotifications.v1.GetNotificationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -446,50 +404,46 @@ private void buildPartial0( 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.advisorynotifications.v1.GetNotificationRequest) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.GetNotificationRequest) other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.GetNotificationRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest other) { - if (other - == com.google.cloud.advisorynotifications.v1.GetNotificationRequest.getDefaultInstance()) - return this; + public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.GetNotificationRequest other) { + if (other == com.google.cloud.advisorynotifications.v1.GetNotificationRequest.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -526,25 +480,22 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 42: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 42: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -554,29 +505,24 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object name_ = ""; /** - * - * *
      * Required. A name of the notification to retrieve.
      * Format:
      * organizations/{organization}/locations/{location}/notifications/{notification}.
      * 
* - * - * 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; @@ -585,25 +531,22 @@ public java.lang.String getName() { } } /** - * - * *
      * Required. A name of the notification to retrieve.
      * Format:
      * organizations/{organization}/locations/{location}/notifications/{notification}.
      * 
* - * - * 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 { @@ -611,43 +554,32 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Required. A name of the notification to retrieve.
      * Format:
      * organizations/{organization}/locations/{location}/notifications/{notification}.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. A name of the notification to retrieve.
      * Format:
      * organizations/{organization}/locations/{location}/notifications/{notification}.
      * 
* - * - * 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() { @@ -657,25 +589,19 @@ public Builder clearName() { return this; } /** - * - * *
      * Required. A name of the notification to retrieve.
      * Format:
      * organizations/{organization}/locations/{location}/notifications/{notification}.
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -685,8 +611,6 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object languageCode_ = ""; /** - * - * *
      * ISO code for requested localization language. If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -696,13 +620,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) {
      * 
* * string language_code = 5; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; @@ -711,8 +635,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * ISO code for requested localization language. If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -722,14 +644,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -737,8 +660,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * ISO code for requested localization language. If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -748,22 +669,18 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 5; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * ISO code for requested localization language. If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -773,7 +690,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 5; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -783,8 +699,6 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * ISO code for requested localization language. If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -794,23 +708,21 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000002; 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); } @@ -820,43 +732,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.GetNotificationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.GetNotificationRequest) - private static final com.google.cloud.advisorynotifications.v1.GetNotificationRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.advisorynotifications.v1.GetNotificationRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.GetNotificationRequest(); } - public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest - getDefaultInstance() { + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -868,8 +778,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.GetNotificationRequest - getDefaultInstanceForType() { + public com.google.cloud.advisorynotifications.v1.GetNotificationRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java similarity index 62% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java index 8d2d085b0b5e..8aa46617d136 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface GetNotificationRequestOrBuilder - extends +public interface GetNotificationRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.GetNotificationRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. A name of the notification to retrieve.
    * Format:
    * organizations/{organization}/locations/{location}/notifications/{notification}.
    * 
* - * - * 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.String getName(); /** - * - * *
    * Required. A name of the notification to retrieve.
    * Format:
    * organizations/{organization}/locations/{location}/notifications/{notification}.
    * 
* - * - * 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. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * ISO code for requested localization language. If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -68,13 +41,10 @@ public interface GetNotificationRequestOrBuilder
    * 
* * string language_code = 5; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * ISO code for requested localization language. If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -84,8 +54,8 @@ public interface GetNotificationRequestOrBuilder
    * 
* * string language_code = 5; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java similarity index 69% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java index f6200c0a2deb..b5d1a9c793f5 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** - * - * *
  * Request for fetching all notifications for a given parent.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.ListNotificationsRequest} */ -public final class ListNotificationsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.ListNotificationsRequest) ListNotificationsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationsRequest.newBuilder() to construct. private ListNotificationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationsRequest() { parent_ = ""; pageToken_ = ""; @@ -46,46 +28,39 @@ private ListNotificationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.Builder.class); + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** - * - * *
    * Required. The parent, which owns this collection of notifications.
    * Must be of the form "organizations/{organization}/locations/{location}".
    * 
* - * - * 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 @@ -94,32 +69,30 @@ 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, which owns this collection of notifications.
    * Must be of the form "organizations/{organization}/locations/{location}".
    * 
* - * - * 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 { @@ -130,8 +103,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** - * - * *
    * The maximum number of notifications to return. The service may return
    * fewer than this value. If unspecified or equal to 0, at most 50
@@ -140,7 +111,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -149,12 +119,9 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** - * - * *
    * A page token returned from a previous request.
    * When paginating, all other parameters provided in the request
@@ -162,7 +129,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -171,15 +137,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; } } /** - * - * *
    * A page token returned from a previous request.
    * When paginating, all other parameters provided in the request
@@ -187,15 +152,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @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 { @@ -206,49 +172,35 @@ public com.google.protobuf.ByteString getPageTokenBytes() { public static final int VIEW_FIELD_NUMBER = 4; private int view_ = 0; /** - * - * *
    * Specifies which parts of the notification resource should be returned
    * in the response.
    * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
    * Specifies which parts of the notification resource should be returned
    * in the response.
    * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * * @return The view. */ - @java.lang.Override - public com.google.cloud.advisorynotifications.v1.NotificationView getView() { - com.google.cloud.advisorynotifications.v1.NotificationView result = - com.google.cloud.advisorynotifications.v1.NotificationView.forNumber(view_); - return result == null - ? com.google.cloud.advisorynotifications.v1.NotificationView.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.advisorynotifications.v1.NotificationView getView() { + com.google.cloud.advisorynotifications.v1.NotificationView result = com.google.cloud.advisorynotifications.v1.NotificationView.forNumber(view_); + return result == null ? com.google.cloud.advisorynotifications.v1.NotificationView.UNRECOGNIZED : result; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 5; - @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** - * - * *
    * ISO code for requested localization language.  If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -258,7 +210,6 @@ public com.google.cloud.advisorynotifications.v1.NotificationView getView() {
    * 
* * string language_code = 5; - * * @return The languageCode. */ @java.lang.Override @@ -267,15 +218,14 @@ public java.lang.String getLanguageCode() { 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(); languageCode_ = s; return s; } } /** - * - * *
    * ISO code for requested localization language.  If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -285,15 +235,16 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 5; - * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -302,7 +253,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -314,7 +264,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -324,9 +275,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (view_ - != com.google.cloud.advisorynotifications.v1.NotificationView.NOTIFICATION_VIEW_UNSPECIFIED - .getNumber()) { + if (view_ != com.google.cloud.advisorynotifications.v1.NotificationView.NOTIFICATION_VIEW_UNSPECIFIED.getNumber()) { output.writeEnum(4, view_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { @@ -345,15 +294,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (view_ - != com.google.cloud.advisorynotifications.v1.NotificationView.NOTIFICATION_VIEW_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, view_); + if (view_ != com.google.cloud.advisorynotifications.v1.NotificationView.NOTIFICATION_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, view_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); @@ -366,19 +315,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.advisorynotifications.v1.ListNotificationsRequest)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest other = - (com.google.cloud.advisorynotifications.v1.ListNotificationsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest other = (com.google.cloud.advisorynotifications.v1.ListNotificationsRequest) obj; + + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (view_ != other.view_) return false; - if (!getLanguageCode().equals(other.getLanguageCode())) return false; + if (!getLanguageCode() + .equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -406,138 +358,129 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest prototype) { + public static Builder newBuilder(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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 for fetching all notifications for a given parent.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.ListNotificationsRequest} */ - 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.advisorynotifications.v1.ListNotificationsRequest) com.google.cloud.advisorynotifications.v1.ListNotificationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.Builder.class); + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.Builder.class); } - // Construct using - // com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.newBuilder() - private Builder() {} + // Construct using com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -551,16 +494,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest - getDefaultInstanceForType() { - return com.google.cloud.advisorynotifications.v1.ListNotificationsRequest - .getDefaultInstance(); + public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest getDefaultInstanceForType() { + return com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.getDefaultInstance(); } @java.lang.Override @@ -574,17 +515,13 @@ public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest build( @java.lang.Override public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest buildPartial() { - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest result = - new com.google.cloud.advisorynotifications.v1.ListNotificationsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest result = new com.google.cloud.advisorynotifications.v1.ListNotificationsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest result) { + private void buildPartial0(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -607,51 +544,46 @@ private void buildPartial0( 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.advisorynotifications.v1.ListNotificationsRequest) { - return mergeFrom( - (com.google.cloud.advisorynotifications.v1.ListNotificationsRequest) other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.ListNotificationsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest other) { - if (other - == com.google.cloud.advisorynotifications.v1.ListNotificationsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest other) { + if (other == com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -699,43 +631,37 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - view_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + view_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -745,28 +671,23 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object parent_ = ""; /** - * - * *
      * Required. The parent, which owns this collection of notifications.
      * Must be of the form "organizations/{organization}/locations/{location}".
      * 
* - * - * 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; @@ -775,24 +696,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. The parent, which owns this collection of notifications.
      * Must be of the form "organizations/{organization}/locations/{location}".
      * 
* - * - * 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 { @@ -800,41 +718,30 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. The parent, which owns this collection of notifications.
      * Must be of the form "organizations/{organization}/locations/{location}".
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParent( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * Required. The parent, which owns this collection of notifications.
      * Must be of the form "organizations/{organization}/locations/{location}".
      * 
* - * - * 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() { @@ -844,24 +751,18 @@ public Builder clearParent() { return this; } /** - * - * *
      * Required. The parent, which owns this collection of notifications.
      * Must be of the form "organizations/{organization}/locations/{location}".
      * 
* - * - * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setParentBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -869,10 +770,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of notifications to return. The service may return
      * fewer than this value. If unspecified or equal to 0, at most 50
@@ -881,7 +780,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -889,8 +787,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of notifications to return. The service may return
      * fewer than this value. If unspecified or equal to 0, at most 50
@@ -899,20 +795,17 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The maximum number of notifications to return. The service may return
      * fewer than this value. If unspecified or equal to 0, at most 50
@@ -921,7 +814,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -933,8 +825,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -942,13 +832,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @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; @@ -957,8 +847,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -966,14 +854,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @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 { @@ -981,8 +870,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -990,22 +877,18 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -1013,7 +896,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1023,8 +905,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -1032,14 +912,12 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -1049,31 +927,24 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { private int view_ = 0; /** - * - * *
      * Specifies which parts of the notification resource should be returned
      * in the response.
      * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * * @return The enum numeric value on the wire for view. */ - @java.lang.Override - public int getViewValue() { + @java.lang.Override public int getViewValue() { return view_; } /** - * - * *
      * Specifies which parts of the notification resource should be returned
      * in the response.
      * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -1084,35 +955,26 @@ public Builder setViewValue(int value) { return this; } /** - * - * *
      * Specifies which parts of the notification resource should be returned
      * in the response.
      * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * * @return The view. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.NotificationView getView() { - com.google.cloud.advisorynotifications.v1.NotificationView result = - com.google.cloud.advisorynotifications.v1.NotificationView.forNumber(view_); - return result == null - ? com.google.cloud.advisorynotifications.v1.NotificationView.UNRECOGNIZED - : result; + com.google.cloud.advisorynotifications.v1.NotificationView result = com.google.cloud.advisorynotifications.v1.NotificationView.forNumber(view_); + return result == null ? com.google.cloud.advisorynotifications.v1.NotificationView.UNRECOGNIZED : result; } /** - * - * *
      * Specifies which parts of the notification resource should be returned
      * in the response.
      * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * * @param value The view to set. * @return This builder for chaining. */ @@ -1126,15 +988,12 @@ public Builder setView(com.google.cloud.advisorynotifications.v1.NotificationVie return this; } /** - * - * *
      * Specifies which parts of the notification resource should be returned
      * in the response.
      * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * * @return This builder for chaining. */ public Builder clearView() { @@ -1146,8 +1005,6 @@ public Builder clearView() { private java.lang.Object languageCode_ = ""; /** - * - * *
      * ISO code for requested localization language.  If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -1157,13 +1014,13 @@ public Builder clearView() {
      * 
* * string language_code = 5; - * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; @@ -1172,8 +1029,6 @@ public java.lang.String getLanguageCode() { } } /** - * - * *
      * ISO code for requested localization language.  If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -1183,14 +1038,15 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5; - * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString getLanguageCodeBytes() { + public com.google.protobuf.ByteString + getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -1198,8 +1054,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } } /** - * - * *
      * ISO code for requested localization language.  If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -1209,22 +1063,18 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() {
      * 
* * string language_code = 5; - * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } languageCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** - * - * *
      * ISO code for requested localization language.  If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -1234,7 +1084,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 5; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1244,8 +1093,6 @@ public Builder clearLanguageCode() { return this; } /** - * - * *
      * ISO code for requested localization language.  If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -1255,23 +1102,21 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5; - * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLanguageCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; 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); } @@ -1281,43 +1126,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.ListNotificationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.ListNotificationsRequest) - private static final com.google.cloud.advisorynotifications.v1.ListNotificationsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.advisorynotifications.v1.ListNotificationsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.ListNotificationsRequest(); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest - getDefaultInstance() { + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1329,8 +1172,9 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest - getDefaultInstanceForType() { + public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java similarity index 73% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java index dc437d72a8f7..8ed2703d43ab 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface ListNotificationsRequestOrBuilder - extends +public interface ListNotificationsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.ListNotificationsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. The parent, which owns this collection of notifications.
    * Must be of the form "organizations/{organization}/locations/{location}".
    * 
* - * - * 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, which owns this collection of notifications.
    * Must be of the form "organizations/{organization}/locations/{location}".
    * 
* - * - * 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 maximum number of notifications to return. The service may return
    * fewer than this value. If unspecified or equal to 0, at most 50
@@ -65,14 +38,11 @@ public interface ListNotificationsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token returned from a previous request.
    * When paginating, all other parameters provided in the request
@@ -80,13 +50,10 @@ public interface ListNotificationsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token returned from a previous request.
    * When paginating, all other parameters provided in the request
@@ -94,41 +61,33 @@ public interface ListNotificationsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); /** - * - * *
    * Specifies which parts of the notification resource should be returned
    * in the response.
    * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** - * - * *
    * Specifies which parts of the notification resource should be returned
    * in the response.
    * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; - * * @return The view. */ com.google.cloud.advisorynotifications.v1.NotificationView getView(); /** - * - * *
    * ISO code for requested localization language.  If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -138,13 +97,10 @@ public interface ListNotificationsRequestOrBuilder
    * 
* * string language_code = 5; - * * @return The languageCode. */ java.lang.String getLanguageCode(); /** - * - * *
    * ISO code for requested localization language.  If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -154,8 +110,8 @@ public interface ListNotificationsRequestOrBuilder
    * 
* * string language_code = 5; - * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString getLanguageCodeBytes(); + com.google.protobuf.ByteString + getLanguageCodeBytes(); } diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java similarity index 71% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java index 645fa68c9871..fc58aaecd455 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** - * - * *
  * Response of ListNotifications endpoint.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.ListNotificationsResponse} */ -public final class ListNotificationsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListNotificationsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.ListNotificationsResponse) ListNotificationsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListNotificationsResponse.newBuilder() to construct. private ListNotificationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListNotificationsResponse() { notifications_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -44,37 +26,33 @@ private ListNotificationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.Builder.class); + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.Builder.class); } public static final int NOTIFICATIONS_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private java.util.List notifications_; /** - * - * *
    * List of notifications under a given parent.
    * 
@@ -82,13 +60,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ @java.lang.Override - public java.util.List - getNotificationsList() { + public java.util.List getNotificationsList() { return notifications_; } /** - * - * *
    * List of notifications under a given parent.
    * 
@@ -96,13 +71,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNotificationsOrBuilderList() { return notifications_; } /** - * - * *
    * List of notifications under a given parent.
    * 
@@ -114,8 +87,6 @@ public int getNotificationsCount() { return notifications_.size(); } /** - * - * *
    * List of notifications under a given parent.
    * 
@@ -127,8 +98,6 @@ public com.google.cloud.advisorynotifications.v1.Notification getNotifications(i return notifications_.get(index); } /** - * - * *
    * List of notifications under a given parent.
    * 
@@ -142,19 +111,15 @@ public com.google.cloud.advisorynotifications.v1.NotificationOrBuilder getNotifi } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -163,30 +128,30 @@ 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; } } /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -197,14 +162,11 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_ = 0; /** - * - * *
    * Estimation of a total number of notifications.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -213,7 +175,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -225,7 +186,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 < notifications_.size(); i++) { output.writeMessage(1, notifications_.get(i)); } @@ -245,13 +207,15 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, notifications_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, notifications_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -261,17 +225,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.advisorynotifications.v1.ListNotificationsResponse)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse other = - (com.google.cloud.advisorynotifications.v1.ListNotificationsResponse) obj; - - if (!getNotificationsList().equals(other.getNotificationsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; - if (getTotalSize() != other.getTotalSize()) return false; + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse other = (com.google.cloud.advisorynotifications.v1.ListNotificationsResponse) obj; + + if (!getNotificationsList() + .equals(other.getNotificationsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,138 +263,129 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse prototype) { + public static Builder newBuilder(com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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 of ListNotifications endpoint.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.ListNotificationsResponse} */ - 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.advisorynotifications.v1.ListNotificationsResponse) com.google.cloud.advisorynotifications.v1.ListNotificationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.Builder.class); + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.Builder.class); } - // Construct using - // com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.newBuilder() - private Builder() {} + // Construct using com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.newBuilder() + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -446,16 +403,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse - getDefaultInstanceForType() { - return com.google.cloud.advisorynotifications.v1.ListNotificationsResponse - .getDefaultInstance(); + public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse getDefaultInstanceForType() { + return com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.getDefaultInstance(); } @java.lang.Override @@ -469,18 +424,14 @@ public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse build @java.lang.Override public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse buildPartial() { - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result = - new com.google.cloud.advisorynotifications.v1.ListNotificationsResponse(this); + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result = new com.google.cloud.advisorynotifications.v1.ListNotificationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result) { + private void buildPartialRepeatedFields(com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result) { if (notificationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { notifications_ = java.util.Collections.unmodifiableList(notifications_); @@ -492,8 +443,7 @@ private void buildPartialRepeatedFields( } } - private void buildPartial0( - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result) { + private void buildPartial0(com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -507,51 +457,46 @@ private void buildPartial0( 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.advisorynotifications.v1.ListNotificationsResponse) { - return mergeFrom( - (com.google.cloud.advisorynotifications.v1.ListNotificationsResponse) other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.ListNotificationsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse other) { - if (other - == com.google.cloud.advisorynotifications.v1.ListNotificationsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.ListNotificationsResponse other) { + if (other == com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.getDefaultInstance()) return this; if (notificationsBuilder_ == null) { if (!other.notifications_.isEmpty()) { if (notifications_.isEmpty()) { @@ -570,10 +515,9 @@ public Builder mergeFrom( notificationsBuilder_ = null; notifications_ = other.notifications_; bitField0_ = (bitField0_ & ~0x00000001); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getNotificationsFieldBuilder() - : null; + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getNotificationsFieldBuilder() : null; } else { notificationsBuilder_.addAllMessages(other.notifications_); } @@ -613,39 +557,35 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - com.google.cloud.advisorynotifications.v1.Notification m = - input.readMessage( - com.google.cloud.advisorynotifications.v1.Notification.parser(), - extensionRegistry); - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(m); - } else { - notificationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + com.google.cloud.advisorynotifications.v1.Notification m = + input.readMessage( + com.google.cloud.advisorynotifications.v1.Notification.parser(), + extensionRegistry); + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(m); + } else { + notificationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -655,38 +595,28 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.util.List notifications_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureNotificationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notifications_ = - new java.util.ArrayList( - notifications_); + notifications_ = new java.util.ArrayList(notifications_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Notification, - com.google.cloud.advisorynotifications.v1.Notification.Builder, - com.google.cloud.advisorynotifications.v1.NotificationOrBuilder> - notificationsBuilder_; + com.google.cloud.advisorynotifications.v1.Notification, com.google.cloud.advisorynotifications.v1.Notification.Builder, com.google.cloud.advisorynotifications.v1.NotificationOrBuilder> notificationsBuilder_; /** - * - * *
      * List of notifications under a given parent.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - public java.util.List - getNotificationsList() { + public java.util.List getNotificationsList() { if (notificationsBuilder_ == null) { return java.util.Collections.unmodifiableList(notifications_); } else { @@ -694,8 +624,6 @@ private void ensureNotificationsIsMutable() { } } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -710,8 +638,6 @@ public int getNotificationsCount() { } } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -726,8 +652,6 @@ public com.google.cloud.advisorynotifications.v1.Notification getNotifications(i } } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -749,8 +673,6 @@ public Builder setNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -769,8 +691,6 @@ public Builder setNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -791,8 +711,6 @@ public Builder addNotifications(com.google.cloud.advisorynotifications.v1.Notifi return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -814,8 +732,6 @@ public Builder addNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -834,8 +750,6 @@ public Builder addNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -854,8 +768,6 @@ public Builder addNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -863,11 +775,11 @@ public Builder addNotifications( * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ public Builder addAllNotifications( - java.lang.Iterable - values) { + java.lang.Iterable values) { if (notificationsBuilder_ == null) { ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notifications_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, notifications_); onChanged(); } else { notificationsBuilder_.addAllMessages(values); @@ -875,8 +787,6 @@ public Builder addAllNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -894,8 +804,6 @@ public Builder clearNotifications() { return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -913,8 +821,6 @@ public Builder removeNotifications(int index) { return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -926,33 +832,28 @@ public com.google.cloud.advisorynotifications.v1.Notification.Builder getNotific return getNotificationsFieldBuilder().getBuilder(index); } /** - * - * *
      * List of notifications under a given parent.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - public com.google.cloud.advisorynotifications.v1.NotificationOrBuilder - getNotificationsOrBuilder(int index) { + public com.google.cloud.advisorynotifications.v1.NotificationOrBuilder getNotificationsOrBuilder( + int index) { if (notificationsBuilder_ == null) { - return notifications_.get(index); - } else { + return notifications_.get(index); } else { return notificationsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * List of notifications under a given parent.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - public java.util.List - getNotificationsOrBuilderList() { + public java.util.List + getNotificationsOrBuilderList() { if (notificationsBuilder_ != null) { return notificationsBuilder_.getMessageOrBuilderList(); } else { @@ -960,22 +861,17 @@ public com.google.cloud.advisorynotifications.v1.Notification.Builder getNotific } } /** - * - * *
      * List of notifications under a given parent.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - public com.google.cloud.advisorynotifications.v1.Notification.Builder - addNotificationsBuilder() { - return getNotificationsFieldBuilder() - .addBuilder(com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance()); + public com.google.cloud.advisorynotifications.v1.Notification.Builder addNotificationsBuilder() { + return getNotificationsFieldBuilder().addBuilder( + com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance()); } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -984,35 +880,26 @@ public com.google.cloud.advisorynotifications.v1.Notification.Builder getNotific */ public com.google.cloud.advisorynotifications.v1.Notification.Builder addNotificationsBuilder( int index) { - return getNotificationsFieldBuilder() - .addBuilder( - index, com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance()); + return getNotificationsFieldBuilder().addBuilder( + index, com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance()); } /** - * - * *
      * List of notifications under a given parent.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - public java.util.List - getNotificationsBuilderList() { + public java.util.List + getNotificationsBuilderList() { return getNotificationsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Notification, - com.google.cloud.advisorynotifications.v1.Notification.Builder, - com.google.cloud.advisorynotifications.v1.NotificationOrBuilder> + com.google.cloud.advisorynotifications.v1.Notification, com.google.cloud.advisorynotifications.v1.Notification.Builder, com.google.cloud.advisorynotifications.v1.NotificationOrBuilder> getNotificationsFieldBuilder() { if (notificationsBuilder_ == null) { - notificationsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Notification, - com.google.cloud.advisorynotifications.v1.Notification.Builder, - com.google.cloud.advisorynotifications.v1.NotificationOrBuilder>( + notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Notification, com.google.cloud.advisorynotifications.v1.Notification.Builder, com.google.cloud.advisorynotifications.v1.NotificationOrBuilder>( notifications_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -1024,21 +911,19 @@ public com.google.cloud.advisorynotifications.v1.Notification.Builder addNotific private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -1047,22 +932,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -1070,37 +954,30 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -1110,22 +987,18 @@ public Builder clearNextPageToken() { return this; } /** - * - * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1133,16 +1006,13 @@ public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { return this; } - private int totalSize_; + private int totalSize_ ; /** - * - * *
      * Estimation of a total number of notifications.
      * 
* * int32 total_size = 3; - * * @return The totalSize. */ @java.lang.Override @@ -1150,33 +1020,27 @@ public int getTotalSize() { return totalSize_; } /** - * - * *
      * Estimation of a total number of notifications.
      * 
* * int32 total_size = 3; - * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** - * - * *
      * Estimation of a total number of notifications.
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1185,9 +1049,9 @@ public Builder clearTotalSize() { 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); } @@ -1197,43 +1061,41 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.ListNotificationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.ListNotificationsResponse) - private static final com.google.cloud.advisorynotifications.v1.ListNotificationsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.advisorynotifications.v1.ListNotificationsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.ListNotificationsResponse(); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse - getDefaultInstance() { + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1245,8 +1107,9 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse - getDefaultInstanceForType() { + public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java similarity index 73% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java index 54ad6eb280a1..f90c50d49e26 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface ListNotificationsResponseOrBuilder - extends +public interface ListNotificationsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.ListNotificationsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * List of notifications under a given parent.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - java.util.List getNotificationsList(); + java.util.List + getNotificationsList(); /** - * - * *
    * List of notifications under a given parent.
    * 
@@ -44,8 +25,6 @@ public interface ListNotificationsResponseOrBuilder */ com.google.cloud.advisorynotifications.v1.Notification getNotifications(int index); /** - * - * *
    * List of notifications under a given parent.
    * 
@@ -54,19 +33,15 @@ public interface ListNotificationsResponseOrBuilder */ int getNotificationsCount(); /** - * - * *
    * List of notifications under a given parent.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - java.util.List + java.util.List getNotificationsOrBuilderList(); /** - * - * *
    * List of notifications under a given parent.
    * 
@@ -77,41 +52,33 @@ com.google.cloud.advisorynotifications.v1.NotificationOrBuilder getNotifications int index); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); /** - * - * *
    * Estimation of a total number of notifications.
    * 
* * int32 total_size = 3; - * * @return The totalSize. */ int getTotalSize(); diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java similarity index 72% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java index 5eea07968feb..70e3fed12540 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java @@ -1,36 +1,18 @@ -/* - * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** - * - * *
  * Status of localized text.
  * 
* * Protobuf enum {@code google.cloud.advisorynotifications.v1.LocalizationState} */ -public enum LocalizationState implements com.google.protobuf.ProtocolMessageEnum { +public enum LocalizationState + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Not used.
    * 
@@ -39,8 +21,6 @@ public enum LocalizationState implements com.google.protobuf.ProtocolMessageEnum */ LOCALIZATION_STATE_UNSPECIFIED(0), /** - * - * *
    * Localization is not applicable for requested language. This can happen
    * when:
@@ -54,8 +34,6 @@ public enum LocalizationState implements com.google.protobuf.ProtocolMessageEnum
    */
   LOCALIZATION_STATE_NOT_APPLICABLE(1),
   /**
-   *
-   *
    * 
    * Localization for requested language is in progress, and not ready yet.
    * 
@@ -64,8 +42,6 @@ public enum LocalizationState implements com.google.protobuf.ProtocolMessageEnum */ LOCALIZATION_STATE_PENDING(2), /** - * - * *
    * Localization for requested language is completed.
    * 
@@ -77,8 +53,6 @@ public enum LocalizationState implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
    * Not used.
    * 
@@ -87,8 +61,6 @@ public enum LocalizationState implements com.google.protobuf.ProtocolMessageEnum */ public static final int LOCALIZATION_STATE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Localization is not applicable for requested language. This can happen
    * when:
@@ -102,8 +74,6 @@ public enum LocalizationState implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int LOCALIZATION_STATE_NOT_APPLICABLE_VALUE = 1;
   /**
-   *
-   *
    * 
    * Localization for requested language is in progress, and not ready yet.
    * 
@@ -112,8 +82,6 @@ public enum LocalizationState implements com.google.protobuf.ProtocolMessageEnum */ public static final int LOCALIZATION_STATE_PENDING_VALUE = 2; /** - * - * *
    * Localization for requested language is completed.
    * 
@@ -122,6 +90,7 @@ public enum LocalizationState implements com.google.protobuf.ProtocolMessageEnum */ public static final int LOCALIZATION_STATE_COMPLETED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -146,47 +115,41 @@ public static LocalizationState valueOf(int value) { */ public static LocalizationState forNumber(int value) { switch (value) { - case 0: - return LOCALIZATION_STATE_UNSPECIFIED; - case 1: - return LOCALIZATION_STATE_NOT_APPLICABLE; - case 2: - return LOCALIZATION_STATE_PENDING; - case 3: - return LOCALIZATION_STATE_COMPLETED; - default: - return null; + case 0: return LOCALIZATION_STATE_UNSPECIFIED; + case 1: return LOCALIZATION_STATE_NOT_APPLICABLE; + case 2: return LOCALIZATION_STATE_PENDING; + case 3: return LOCALIZATION_STATE_COMPLETED; + 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 LocalizationState findValueByNumber(int number) { - return LocalizationState.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + LocalizationState> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public LocalizationState findValueByNumber(int number) { + return LocalizationState.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() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor() - .getEnumTypes() - .get(1); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor().getEnumTypes().get(1); } private static final LocalizationState[] VALUES = values(); @@ -194,7 +157,8 @@ public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor public static LocalizationState 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; @@ -210,3 +174,4 @@ private LocalizationState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.advisorynotifications.v1.LocalizationState) } + diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java similarity index 100% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java similarity index 72% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java index 06e69a8ccb07..4b5e2be7d07e 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java @@ -1,104 +1,76 @@ -/* - * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** - * - * *
  * A message which contains notification details.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Message} */ -public final class Message extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Message extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Message) MessageOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Message.newBuilder() to construct. private Message(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Message() { attachments_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Message(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Message.class, - com.google.cloud.advisorynotifications.v1.Message.Builder.class); + com.google.cloud.advisorynotifications.v1.Message.class, com.google.cloud.advisorynotifications.v1.Message.Builder.class); } - public interface BodyOrBuilder - extends + public interface BodyOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Message.Body) com.google.protobuf.MessageOrBuilder { /** - * - * *
      * The text content of the message body.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return Whether the text field is set. */ boolean hasText(); /** - * - * *
      * The text content of the message body.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return The text. */ com.google.cloud.advisorynotifications.v1.Text getText(); /** - * - * *
      * The text content of the message body.
      * 
@@ -108,63 +80,57 @@ public interface BodyOrBuilder com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder(); } /** - * - * *
    * A message body containing text.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Message.Body} */ - public static final class Body extends com.google.protobuf.GeneratedMessageV3 - implements + public static final class Body extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Message.Body) BodyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Body.newBuilder() to construct. private Body(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Body() {} + private Body() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Body(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Message.Body.class, - com.google.cloud.advisorynotifications.v1.Message.Body.Builder.class); + com.google.cloud.advisorynotifications.v1.Message.Body.class, com.google.cloud.advisorynotifications.v1.Message.Body.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; private com.google.cloud.advisorynotifications.v1.Text text_; /** - * - * *
      * The text content of the message body.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return Whether the text field is set. */ @java.lang.Override @@ -172,25 +138,18 @@ public boolean hasText() { return text_ != null; } /** - * - * *
      * The text content of the message body.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return The text. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Text getText() { - return text_ == null - ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() - : text_; + return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; } /** - * - * *
      * The text content of the message body.
      * 
@@ -199,13 +158,10 @@ public com.google.cloud.advisorynotifications.v1.Text getText() { */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder() { - return text_ == null - ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() - : text_; + return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -217,7 +173,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 (text_ != null) { output.writeMessage(1, getText()); } @@ -231,7 +188,8 @@ public int getSerializedSize() { size = 0; if (text_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getText()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getText()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -241,17 +199,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.advisorynotifications.v1.Message.Body)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Message.Body other = - (com.google.cloud.advisorynotifications.v1.Message.Body) obj; + com.google.cloud.advisorynotifications.v1.Message.Body other = (com.google.cloud.advisorynotifications.v1.Message.Body) obj; if (hasText() != other.hasText()) return false; if (hasText()) { - if (!getText().equals(other.getText())) return false; + if (!getText() + .equals(other.getText())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -274,94 +232,87 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Message.Body parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Message.Body parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body prototype) { + public static Builder newBuilder(com.google.cloud.advisorynotifications.v1.Message.Body 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 @@ -371,41 +322,39 @@ protected Builder newBuilderForType( return builder; } /** - * - * *
      * A message body containing text.
      * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Message.Body} */ - 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.advisorynotifications.v1.Message.Body) com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Message.Body.class, - com.google.cloud.advisorynotifications.v1.Message.Body.Builder.class); + com.google.cloud.advisorynotifications.v1.Message.Body.class, com.google.cloud.advisorynotifications.v1.Message.Body.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Message.Body.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -419,9 +368,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; } @java.lang.Override @@ -440,11 +389,8 @@ public com.google.cloud.advisorynotifications.v1.Message.Body build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Message.Body buildPartial() { - com.google.cloud.advisorynotifications.v1.Message.Body result = - new com.google.cloud.advisorynotifications.v1.Message.Body(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.advisorynotifications.v1.Message.Body result = new com.google.cloud.advisorynotifications.v1.Message.Body(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -452,7 +398,9 @@ public com.google.cloud.advisorynotifications.v1.Message.Body buildPartial() { private void buildPartial0(com.google.cloud.advisorynotifications.v1.Message.Body result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.text_ = textBuilder_ == null ? text_ : textBuilder_.build(); + result.text_ = textBuilder_ == null + ? text_ + : textBuilder_.build(); } } @@ -460,41 +408,38 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Message.Bod 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) { + 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.advisorynotifications.v1.Message.Body) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Message.Body) other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Message.Body)other); } else { super.mergeFrom(other); return this; @@ -502,8 +447,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Message.Body other) { - if (other == com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()) - return this; + if (other == com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()) return this; if (other.hasText()) { mergeText(other.getText()); } @@ -533,19 +477,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTextFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTextFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -555,52 +499,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.advisorynotifications.v1.Text text_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, - com.google.cloud.advisorynotifications.v1.Text.Builder, - com.google.cloud.advisorynotifications.v1.TextOrBuilder> - textBuilder_; + com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder> textBuilder_; /** - * - * *
        * The text content of the message body.
        * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return Whether the text field is set. */ public boolean hasText() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
        * The text content of the message body.
        * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return The text. */ public com.google.cloud.advisorynotifications.v1.Text getText() { if (textBuilder_ == null) { - return text_ == null - ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() - : text_; + return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; } else { return textBuilder_.getMessage(); } } /** - * - * *
        * The text content of the message body.
        * 
@@ -621,8 +551,6 @@ public Builder setText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** - * - * *
        * The text content of the message body.
        * 
@@ -641,8 +569,6 @@ public Builder setText( return this; } /** - * - * *
        * The text content of the message body.
        * 
@@ -651,9 +577,9 @@ public Builder setText( */ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { if (textBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && text_ != null - && text_ != com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + text_ != null && + text_ != com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()) { getTextBuilder().mergeFrom(value); } else { text_ = value; @@ -666,8 +592,6 @@ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** - * - * *
        * The text content of the message body.
        * 
@@ -685,8 +609,6 @@ public Builder clearText() { return this; } /** - * - * *
        * The text content of the message body.
        * 
@@ -699,8 +621,6 @@ public com.google.cloud.advisorynotifications.v1.Text.Builder getTextBuilder() { return getTextFieldBuilder().getBuilder(); } /** - * - * *
        * The text content of the message body.
        * 
@@ -711,14 +631,11 @@ public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder( if (textBuilder_ != null) { return textBuilder_.getMessageOrBuilder(); } else { - return text_ == null - ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() - : text_; + return text_ == null ? + com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; } } /** - * - * *
        * The text content of the message body.
        * 
@@ -726,22 +643,18 @@ public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder( * .google.cloud.advisorynotifications.v1.Text text = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, - com.google.cloud.advisorynotifications.v1.Text.Builder, - com.google.cloud.advisorynotifications.v1.TextOrBuilder> + com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder> getTextFieldBuilder() { if (textBuilder_ == null) { - textBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, - com.google.cloud.advisorynotifications.v1.Text.Builder, - com.google.cloud.advisorynotifications.v1.TextOrBuilder>( - getText(), getParentForChildren(), isClean()); + textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder>( + getText(), + getParentForChildren(), + isClean()); text_ = null; } return textBuilder_; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -754,12 +667,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Message.Body) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Message.Body) private static final com.google.cloud.advisorynotifications.v1.Message.Body DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Message.Body(); } @@ -768,28 +681,27 @@ public static com.google.cloud.advisorynotifications.v1.Message.Body getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Body parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Body parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -804,19 +716,17 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Message.Body getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } public static final int BODY_FIELD_NUMBER = 1; private com.google.cloud.advisorynotifications.v1.Message.Body body_; /** - * - * *
    * The message content.
    * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; - * * @return Whether the body field is set. */ @java.lang.Override @@ -824,25 +734,18 @@ public boolean hasBody() { return body_ != null; } /** - * - * *
    * The message content.
    * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; - * * @return The body. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Message.Body getBody() { - return body_ == null - ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() - : body_; + return body_ == null ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() : body_; } /** - * - * *
    * The message content.
    * 
@@ -851,18 +754,13 @@ public com.google.cloud.advisorynotifications.v1.Message.Body getBody() { */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder getBodyOrBuilder() { - return body_ == null - ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() - : body_; + return body_ == null ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() : body_; } public static final int ATTACHMENTS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private java.util.List attachments_; /** - * - * *
    * The attachments to download.
    * 
@@ -874,8 +772,6 @@ public java.util.List getA return attachments_; } /** - * - * *
    * The attachments to download.
    * 
@@ -883,13 +779,11 @@ public java.util.List getA * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAttachmentsOrBuilderList() { return attachments_; } /** - * - * *
    * The attachments to download.
    * 
@@ -901,8 +795,6 @@ public int getAttachmentsCount() { return attachments_.size(); } /** - * - * *
    * The attachments to download.
    * 
@@ -914,8 +806,6 @@ public com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int i return attachments_.get(index); } /** - * - * *
    * The attachments to download.
    * 
@@ -931,14 +821,11 @@ public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachme public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * The Message creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ @java.lang.Override @@ -946,14 +833,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The Message creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -961,8 +845,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The Message creation timestamp.
    * 
@@ -977,14 +859,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int LOCALIZATION_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp localizationTime_; /** - * - * *
    * Time when Message was localized
    * 
* * .google.protobuf.Timestamp localization_time = 4; - * * @return Whether the localizationTime field is set. */ @java.lang.Override @@ -992,25 +871,18 @@ public boolean hasLocalizationTime() { return localizationTime_ != null; } /** - * - * *
    * Time when Message was localized
    * 
* * .google.protobuf.Timestamp localization_time = 4; - * * @return The localizationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLocalizationTime() { - return localizationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : localizationTime_; + return localizationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : localizationTime_; } /** - * - * *
    * Time when Message was localized
    * 
@@ -1019,13 +891,10 @@ public com.google.protobuf.Timestamp getLocalizationTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLocalizationTimeOrBuilder() { - return localizationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : localizationTime_; + return localizationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : localizationTime_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -1037,7 +906,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 (body_ != null) { output.writeMessage(1, getBody()); } @@ -1060,16 +930,20 @@ public int getSerializedSize() { size = 0; if (body_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBody()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getBody()); } for (int i = 0; i < attachments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attachments_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, attachments_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getCreateTime()); } if (localizationTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLocalizationTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getLocalizationTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -1079,26 +953,29 @@ 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.advisorynotifications.v1.Message)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Message other = - (com.google.cloud.advisorynotifications.v1.Message) obj; + com.google.cloud.advisorynotifications.v1.Message other = (com.google.cloud.advisorynotifications.v1.Message) obj; if (hasBody() != other.hasBody()) return false; if (hasBody()) { - if (!getBody().equals(other.getBody())) return false; + if (!getBody() + .equals(other.getBody())) return false; } - if (!getAttachmentsList().equals(other.getAttachmentsList())) return false; + if (!getAttachmentsList() + .equals(other.getAttachmentsList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } if (hasLocalizationTime() != other.hasLocalizationTime()) return false; if (hasLocalizationTime()) { - if (!getLocalizationTime().equals(other.getLocalizationTime())) return false; + if (!getLocalizationTime() + .equals(other.getLocalizationTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1133,135 +1010,129 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Message parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Message parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message 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 message which contains notification details.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Message} */ - 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.advisorynotifications.v1.Message) com.google.cloud.advisorynotifications.v1.MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Message.class, - com.google.cloud.advisorynotifications.v1.Message.Builder.class); + com.google.cloud.advisorynotifications.v1.Message.class, com.google.cloud.advisorynotifications.v1.Message.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Message.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -1292,9 +1163,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; } @java.lang.Override @@ -1313,18 +1184,14 @@ public com.google.cloud.advisorynotifications.v1.Message build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Message buildPartial() { - com.google.cloud.advisorynotifications.v1.Message result = - new com.google.cloud.advisorynotifications.v1.Message(this); + com.google.cloud.advisorynotifications.v1.Message result = new com.google.cloud.advisorynotifications.v1.Message(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartialRepeatedFields( - com.google.cloud.advisorynotifications.v1.Message result) { + private void buildPartialRepeatedFields(com.google.cloud.advisorynotifications.v1.Message result) { if (attachmentsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { attachments_ = java.util.Collections.unmodifiableList(attachments_); @@ -1339,14 +1206,19 @@ private void buildPartialRepeatedFields( private void buildPartial0(com.google.cloud.advisorynotifications.v1.Message result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); + result.body_ = bodyBuilder_ == null + ? body_ + : bodyBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null + ? createTime_ + : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.localizationTime_ = - localizationTimeBuilder_ == null ? localizationTime_ : localizationTimeBuilder_.build(); + result.localizationTime_ = localizationTimeBuilder_ == null + ? localizationTime_ + : localizationTimeBuilder_.build(); } } @@ -1354,39 +1226,38 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Message res 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.advisorynotifications.v1.Message) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Message) other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Message)other); } else { super.mergeFrom(other); return this; @@ -1394,8 +1265,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Message other) { - if (other == com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()) - return this; + if (other == com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()) return this; if (other.hasBody()) { mergeBody(other.getBody()); } @@ -1417,10 +1287,9 @@ public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Message other attachmentsBuilder_ = null; attachments_ = other.attachments_; bitField0_ = (bitField0_ & ~0x00000002); - attachmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAttachmentsFieldBuilder() - : null; + attachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAttachmentsFieldBuilder() : null; } else { attachmentsBuilder_.addAllMessages(other.attachments_); } @@ -1458,46 +1327,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getBodyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.cloud.advisorynotifications.v1.Attachment m = - input.readMessage( - com.google.cloud.advisorynotifications.v1.Attachment.parser(), - extensionRegistry); - if (attachmentsBuilder_ == null) { - ensureAttachmentsIsMutable(); - attachments_.add(m); - } else { - attachmentsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - getLocalizationTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getBodyFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + com.google.cloud.advisorynotifications.v1.Attachment m = + input.readMessage( + com.google.cloud.advisorynotifications.v1.Attachment.parser(), + extensionRegistry); + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(m); + } else { + attachmentsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: { + input.readMessage( + getCreateTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + input.readMessage( + getLocalizationTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1507,52 +1376,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.advisorynotifications.v1.Message.Body body_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message.Body, - com.google.cloud.advisorynotifications.v1.Message.Body.Builder, - com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder> - bodyBuilder_; + com.google.cloud.advisorynotifications.v1.Message.Body, com.google.cloud.advisorynotifications.v1.Message.Body.Builder, com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder> bodyBuilder_; /** - * - * *
      * The message content.
      * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; - * * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The message content.
      * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; - * * @return The body. */ public com.google.cloud.advisorynotifications.v1.Message.Body getBody() { if (bodyBuilder_ == null) { - return body_ == null - ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() - : body_; + return body_ == null ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() : body_; } else { return bodyBuilder_.getMessage(); } } /** - * - * *
      * The message content.
      * 
@@ -1573,8 +1428,6 @@ public Builder setBody(com.google.cloud.advisorynotifications.v1.Message.Body va return this; } /** - * - * *
      * The message content.
      * 
@@ -1593,8 +1446,6 @@ public Builder setBody( return this; } /** - * - * *
      * The message content.
      * 
@@ -1603,10 +1454,9 @@ public Builder setBody( */ public Builder mergeBody(com.google.cloud.advisorynotifications.v1.Message.Body value) { if (bodyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && body_ != null - && body_ - != com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + body_ != null && + body_ != com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; @@ -1619,8 +1469,6 @@ public Builder mergeBody(com.google.cloud.advisorynotifications.v1.Message.Body return this; } /** - * - * *
      * The message content.
      * 
@@ -1638,8 +1486,6 @@ public Builder clearBody() { return this; } /** - * - * *
      * The message content.
      * 
@@ -1652,8 +1498,6 @@ public com.google.cloud.advisorynotifications.v1.Message.Body.Builder getBodyBui return getBodyFieldBuilder().getBuilder(); } /** - * - * *
      * The message content.
      * 
@@ -1664,14 +1508,11 @@ public com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder getBodyOr if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { - return body_ == null - ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() - : body_; + return body_ == null ? + com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() : body_; } } /** - * - * *
      * The message content.
      * 
@@ -1679,51 +1520,39 @@ public com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder getBodyOr * .google.cloud.advisorynotifications.v1.Message.Body body = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message.Body, - com.google.cloud.advisorynotifications.v1.Message.Body.Builder, - com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder> + com.google.cloud.advisorynotifications.v1.Message.Body, com.google.cloud.advisorynotifications.v1.Message.Body.Builder, com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { - bodyBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message.Body, - com.google.cloud.advisorynotifications.v1.Message.Body.Builder, - com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder>( - getBody(), getParentForChildren(), isClean()); + bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Message.Body, com.google.cloud.advisorynotifications.v1.Message.Body.Builder, com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder>( + getBody(), + getParentForChildren(), + isClean()); body_ = null; } return bodyBuilder_; } private java.util.List attachments_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureAttachmentsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - attachments_ = - new java.util.ArrayList( - attachments_); + attachments_ = new java.util.ArrayList(attachments_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Attachment, - com.google.cloud.advisorynotifications.v1.Attachment.Builder, - com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder> - attachmentsBuilder_; + com.google.cloud.advisorynotifications.v1.Attachment, com.google.cloud.advisorynotifications.v1.Attachment.Builder, com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder> attachmentsBuilder_; /** - * - * *
      * The attachments to download.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - public java.util.List - getAttachmentsList() { + public java.util.List getAttachmentsList() { if (attachmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(attachments_); } else { @@ -1731,8 +1560,6 @@ private void ensureAttachmentsIsMutable() { } } /** - * - * *
      * The attachments to download.
      * 
@@ -1747,8 +1574,6 @@ public int getAttachmentsCount() { } } /** - * - * *
      * The attachments to download.
      * 
@@ -1763,8 +1588,6 @@ public com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int i } } /** - * - * *
      * The attachments to download.
      * 
@@ -1786,8 +1609,6 @@ public Builder setAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1806,8 +1627,6 @@ public Builder setAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1828,8 +1647,6 @@ public Builder addAttachments(com.google.cloud.advisorynotifications.v1.Attachme return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1851,8 +1668,6 @@ public Builder addAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1871,8 +1686,6 @@ public Builder addAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1891,8 +1704,6 @@ public Builder addAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1903,7 +1714,8 @@ public Builder addAllAttachments( java.lang.Iterable values) { if (attachmentsBuilder_ == null) { ensureAttachmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, attachments_); onChanged(); } else { attachmentsBuilder_.addAllMessages(values); @@ -1911,8 +1723,6 @@ public Builder addAllAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1930,8 +1740,6 @@ public Builder clearAttachments() { return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1949,8 +1757,6 @@ public Builder removeAttachments(int index) { return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1962,8 +1768,6 @@ public com.google.cloud.advisorynotifications.v1.Attachment.Builder getAttachmen return getAttachmentsFieldBuilder().getBuilder(index); } /** - * - * *
      * The attachments to download.
      * 
@@ -1973,22 +1777,19 @@ public com.google.cloud.advisorynotifications.v1.Attachment.Builder getAttachmen public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachmentsOrBuilder( int index) { if (attachmentsBuilder_ == null) { - return attachments_.get(index); - } else { + return attachments_.get(index); } else { return attachmentsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The attachments to download.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - public java.util.List - getAttachmentsOrBuilderList() { + public java.util.List + getAttachmentsOrBuilderList() { if (attachmentsBuilder_ != null) { return attachmentsBuilder_.getMessageOrBuilderList(); } else { @@ -1996,8 +1797,6 @@ public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachme } } /** - * - * *
      * The attachments to download.
      * 
@@ -2005,12 +1804,10 @@ public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachme * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ public com.google.cloud.advisorynotifications.v1.Attachment.Builder addAttachmentsBuilder() { - return getAttachmentsFieldBuilder() - .addBuilder(com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()); + return getAttachmentsFieldBuilder().addBuilder( + com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()); } /** - * - * *
      * The attachments to download.
      * 
@@ -2019,36 +1816,30 @@ public com.google.cloud.advisorynotifications.v1.Attachment.Builder addAttachmen */ public com.google.cloud.advisorynotifications.v1.Attachment.Builder addAttachmentsBuilder( int index) { - return getAttachmentsFieldBuilder() - .addBuilder( - index, com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()); + return getAttachmentsFieldBuilder().addBuilder( + index, com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()); } /** - * - * *
      * The attachments to download.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - public java.util.List - getAttachmentsBuilderList() { + public java.util.List + getAttachmentsBuilderList() { return getAttachmentsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Attachment, - com.google.cloud.advisorynotifications.v1.Attachment.Builder, - com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder> + com.google.cloud.advisorynotifications.v1.Attachment, com.google.cloud.advisorynotifications.v1.Attachment.Builder, com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder> getAttachmentsFieldBuilder() { if (attachmentsBuilder_ == null) { - attachmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Attachment, - com.google.cloud.advisorynotifications.v1.Attachment.Builder, - com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder>( - attachments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Attachment, com.google.cloud.advisorynotifications.v1.Attachment.Builder, com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder>( + attachments_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); attachments_ = null; } return attachmentsBuilder_; @@ -2056,47 +1847,34 @@ public com.google.cloud.advisorynotifications.v1.Attachment.Builder addAttachmen private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * The Message creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** - * - * *
      * The Message creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * The Message creation timestamp.
      * 
@@ -2117,15 +1895,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The Message creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -2136,8 +1913,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The Message creation timestamp.
      * 
@@ -2146,9 +1921,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -2161,8 +1936,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The Message creation timestamp.
      * 
@@ -2180,8 +1953,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The Message creation timestamp.
      * 
@@ -2194,8 +1965,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The Message creation timestamp.
      * 
@@ -2206,14 +1975,11 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * The Message creation timestamp.
      * 
@@ -2221,17 +1987,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2239,47 +2002,34 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp localizationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - localizationTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> localizationTimeBuilder_; /** - * - * *
      * Time when Message was localized
      * 
* * .google.protobuf.Timestamp localization_time = 4; - * * @return Whether the localizationTime field is set. */ public boolean hasLocalizationTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Time when Message was localized
      * 
* * .google.protobuf.Timestamp localization_time = 4; - * * @return The localizationTime. */ public com.google.protobuf.Timestamp getLocalizationTime() { if (localizationTimeBuilder_ == null) { - return localizationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : localizationTime_; + return localizationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : localizationTime_; } else { return localizationTimeBuilder_.getMessage(); } } /** - * - * *
      * Time when Message was localized
      * 
@@ -2300,15 +2050,14 @@ public Builder setLocalizationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when Message was localized
      * 
* * .google.protobuf.Timestamp localization_time = 4; */ - public Builder setLocalizationTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLocalizationTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (localizationTimeBuilder_ == null) { localizationTime_ = builderForValue.build(); } else { @@ -2319,8 +2068,6 @@ public Builder setLocalizationTime(com.google.protobuf.Timestamp.Builder builder return this; } /** - * - * *
      * Time when Message was localized
      * 
@@ -2329,9 +2076,9 @@ public Builder setLocalizationTime(com.google.protobuf.Timestamp.Builder builder */ public Builder mergeLocalizationTime(com.google.protobuf.Timestamp value) { if (localizationTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && localizationTime_ != null - && localizationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + localizationTime_ != null && + localizationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLocalizationTimeBuilder().mergeFrom(value); } else { localizationTime_ = value; @@ -2344,8 +2091,6 @@ public Builder mergeLocalizationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when Message was localized
      * 
@@ -2363,8 +2108,6 @@ public Builder clearLocalizationTime() { return this; } /** - * - * *
      * Time when Message was localized
      * 
@@ -2377,8 +2120,6 @@ public com.google.protobuf.Timestamp.Builder getLocalizationTimeBuilder() { return getLocalizationTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when Message was localized
      * 
@@ -2389,14 +2130,11 @@ public com.google.protobuf.TimestampOrBuilder getLocalizationTimeOrBuilder() { if (localizationTimeBuilder_ != null) { return localizationTimeBuilder_.getMessageOrBuilder(); } else { - return localizationTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : localizationTime_; + return localizationTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : localizationTime_; } } /** - * - * *
      * Time when Message was localized
      * 
@@ -2404,24 +2142,21 @@ public com.google.protobuf.TimestampOrBuilder getLocalizationTimeOrBuilder() { * .google.protobuf.Timestamp localization_time = 4; */ 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> getLocalizationTimeFieldBuilder() { if (localizationTimeBuilder_ == null) { - localizationTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getLocalizationTime(), getParentForChildren(), isClean()); + localizationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getLocalizationTime(), + getParentForChildren(), + isClean()); localizationTime_ = null; } return localizationTimeBuilder_; } - @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); } @@ -2431,12 +2166,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Message) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Message) private static final com.google.cloud.advisorynotifications.v1.Message DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Message(); } @@ -2445,27 +2180,27 @@ public static com.google.cloud.advisorynotifications.v1.Message getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Message parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Message parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2480,4 +2215,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Message getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java similarity index 79% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java index 912d85cd289b..d800a4626c75 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java @@ -1,55 +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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface MessageOrBuilder - extends +public interface MessageOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Message) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The message content.
    * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; - * * @return Whether the body field is set. */ boolean hasBody(); /** - * - * *
    * The message content.
    * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; - * * @return The body. */ com.google.cloud.advisorynotifications.v1.Message.Body getBody(); /** - * - * *
    * The message content.
    * 
@@ -59,18 +35,15 @@ public interface MessageOrBuilder com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder getBodyOrBuilder(); /** - * - * *
    * The attachments to download.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - java.util.List getAttachmentsList(); + java.util.List + getAttachmentsList(); /** - * - * *
    * The attachments to download.
    * 
@@ -79,8 +52,6 @@ public interface MessageOrBuilder */ com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int index); /** - * - * *
    * The attachments to download.
    * 
@@ -89,54 +60,43 @@ public interface MessageOrBuilder */ int getAttachmentsCount(); /** - * - * *
    * The attachments to download.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - java.util.List + java.util.List getAttachmentsOrBuilderList(); /** - * - * *
    * The attachments to download.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index); + com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachmentsOrBuilder( + int index); /** - * - * *
    * The Message creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * The Message creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * The Message creation timestamp.
    * 
@@ -146,32 +106,24 @@ public interface MessageOrBuilder com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** - * - * *
    * Time when Message was localized
    * 
* * .google.protobuf.Timestamp localization_time = 4; - * * @return Whether the localizationTime field is set. */ boolean hasLocalizationTime(); /** - * - * *
    * Time when Message was localized
    * 
* * .google.protobuf.Timestamp localization_time = 4; - * * @return The localizationTime. */ com.google.protobuf.Timestamp getLocalizationTime(); /** - * - * *
    * Time when Message was localized
    * 
diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java similarity index 67% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java index 2a7fd0da2caf..41b4456627ba 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** - * - * *
  * A notification object for notifying customers about security and privacy
  * issues.
@@ -28,54 +11,50 @@
  *
  * Protobuf type {@code google.cloud.advisorynotifications.v1.Notification}
  */
-public final class Notification extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Notification extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Notification)
     NotificationOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Notification.newBuilder() to construct.
   private Notification(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Notification() {
     name_ = "";
     messages_ = java.util.Collections.emptyList();
+    notificationType_ = 0;
   }
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Notification();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.advisorynotifications.v1.ServiceProto
-        .internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.advisorynotifications.v1.ServiceProto
-        .internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable
+    return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.advisorynotifications.v1.Notification.class,
-            com.google.cloud.advisorynotifications.v1.Notification.Builder.class);
+            com.google.cloud.advisorynotifications.v1.Notification.class, com.google.cloud.advisorynotifications.v1.Notification.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
-
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
-   *
-   *
    * 
    * The resource name of the notification.
    * Format:
@@ -83,7 +62,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -92,15 +70,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; } } /** - * - * *
    * The resource name of the notification.
    * Format:
@@ -108,15 +85,16 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -127,14 +105,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int SUBJECT_FIELD_NUMBER = 2; private com.google.cloud.advisorynotifications.v1.Subject subject_; /** - * - * *
    * The subject line of the notification.
    * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; - * * @return Whether the subject field is set. */ @java.lang.Override @@ -142,25 +117,18 @@ public boolean hasSubject() { return subject_ != null; } /** - * - * *
    * The subject line of the notification.
    * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; - * * @return The subject. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Subject getSubject() { - return subject_ == null - ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() : subject_; } /** - * - * *
    * The subject line of the notification.
    * 
@@ -169,18 +137,13 @@ public com.google.cloud.advisorynotifications.v1.Subject getSubject() { */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.SubjectOrBuilder getSubjectOrBuilder() { - return subject_ == null - ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() : subject_; } public static final int MESSAGES_FIELD_NUMBER = 3; - @SuppressWarnings("serial") private java.util.List messages_; /** - * - * *
    * A list of messages in the notification.
    * 
@@ -192,8 +155,6 @@ public java.util.List getMess return messages_; } /** - * - * *
    * A list of messages in the notification.
    * 
@@ -201,13 +162,11 @@ public java.util.List getMess * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** - * - * *
    * A list of messages in the notification.
    * 
@@ -219,8 +178,6 @@ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * A list of messages in the notification.
    * 
@@ -232,8 +189,6 @@ public com.google.cloud.advisorynotifications.v1.Message getMessages(int index) return messages_.get(index); } /** - * - * *
    * A list of messages in the notification.
    * 
@@ -249,15 +204,11 @@ public com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrB public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** - * - * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ @java.lang.Override @@ -265,15 +216,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ @java.lang.Override @@ -281,22 +228,44 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } - private byte memoizedIsInitialized = -1; + public static final int NOTIFICATION_TYPE_FIELD_NUMBER = 12; + private int notificationType_ = 0; + /** + *
+   * Type of notification
+   * 
+ * + * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * @return The enum numeric value on the wire for notificationType. + */ + @java.lang.Override public int getNotificationTypeValue() { + return notificationType_; + } + /** + *
+   * Type of notification
+   * 
+ * + * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * @return The notificationType. + */ + @java.lang.Override public com.google.cloud.advisorynotifications.v1.NotificationType getNotificationType() { + com.google.cloud.advisorynotifications.v1.NotificationType result = com.google.cloud.advisorynotifications.v1.NotificationType.forNumber(notificationType_); + return result == null ? com.google.cloud.advisorynotifications.v1.NotificationType.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -308,7 +277,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -321,6 +291,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } + if (notificationType_ != com.google.cloud.advisorynotifications.v1.NotificationType.NOTIFICATION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(12, notificationType_); + } getUnknownFields().writeTo(output); } @@ -334,13 +307,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (subject_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubject()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSubject()); } for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, messages_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getCreateTime()); + } + if (notificationType_ != com.google.cloud.advisorynotifications.v1.NotificationType.NOTIFICATION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(12, notificationType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -350,24 +330,28 @@ 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.advisorynotifications.v1.Notification)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Notification other = - (com.google.cloud.advisorynotifications.v1.Notification) obj; + com.google.cloud.advisorynotifications.v1.Notification other = (com.google.cloud.advisorynotifications.v1.Notification) obj; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (hasSubject() != other.hasSubject()) return false; if (hasSubject()) { - if (!getSubject().equals(other.getSubject())) return false; + if (!getSubject() + .equals(other.getSubject())) return false; } - if (!getMessagesList().equals(other.getMessagesList())) return false; + if (!getMessagesList() + .equals(other.getMessagesList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime().equals(other.getCreateTime())) return false; + if (!getCreateTime() + .equals(other.getCreateTime())) return false; } + if (notificationType_ != other.notificationType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -393,110 +377,104 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } + hash = (37 * hash) + NOTIFICATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + notificationType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static com.google.cloud.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Notification parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Notification parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification prototype) { + public static Builder newBuilder(com.google.cloud.advisorynotifications.v1.Notification 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 notification object for notifying customers about security and privacy
    * issues.
@@ -504,32 +482,33 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.advisorynotifications.v1.Notification}
    */
-  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.advisorynotifications.v1.Notification)
       com.google.cloud.advisorynotifications.v1.NotificationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto
-          .internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto
-          .internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable
+      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.advisorynotifications.v1.Notification.class,
-              com.google.cloud.advisorynotifications.v1.Notification.Builder.class);
+              com.google.cloud.advisorynotifications.v1.Notification.class, com.google.cloud.advisorynotifications.v1.Notification.Builder.class);
     }
 
     // Construct using com.google.cloud.advisorynotifications.v1.Notification.newBuilder()
-    private Builder() {}
+    private Builder() {
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      super(parent);
     }
 
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+      super(parent);
+
+    }
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -552,13 +531,14 @@ public Builder clear() {
         createTimeBuilder_.dispose();
         createTimeBuilder_ = null;
       }
+      notificationType_ = 0;
       return this;
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto
-          .internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
     }
 
     @java.lang.Override
@@ -577,18 +557,14 @@ public com.google.cloud.advisorynotifications.v1.Notification build() {
 
     @java.lang.Override
     public com.google.cloud.advisorynotifications.v1.Notification buildPartial() {
-      com.google.cloud.advisorynotifications.v1.Notification result =
-          new com.google.cloud.advisorynotifications.v1.Notification(this);
+      com.google.cloud.advisorynotifications.v1.Notification result = new com.google.cloud.advisorynotifications.v1.Notification(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) {
-        buildPartial0(result);
-      }
+      if (bitField0_ != 0) { buildPartial0(result); }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(
-        com.google.cloud.advisorynotifications.v1.Notification result) {
+    private void buildPartialRepeatedFields(com.google.cloud.advisorynotifications.v1.Notification result) {
       if (messagesBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           messages_ = java.util.Collections.unmodifiableList(messages_);
@@ -606,10 +582,17 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Notificatio
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.subject_ = subjectBuilder_ == null ? subject_ : subjectBuilder_.build();
+        result.subject_ = subjectBuilder_ == null
+            ? subject_
+            : subjectBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null
+            ? createTime_
+            : createTimeBuilder_.build();
+      }
+      if (((from_bitField0_ & 0x00000010) != 0)) {
+        result.notificationType_ = notificationType_;
       }
     }
 
@@ -617,39 +600,38 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Notificatio
     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.advisorynotifications.v1.Notification) {
-        return mergeFrom((com.google.cloud.advisorynotifications.v1.Notification) other);
+        return mergeFrom((com.google.cloud.advisorynotifications.v1.Notification)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -657,8 +639,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Notification other) {
-      if (other == com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance()) return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -685,10 +666,9 @@ public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Notification
             messagesBuilder_ = null;
             messages_ = other.messages_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            messagesBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getMessagesFieldBuilder()
-                    : null;
+            messagesBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getMessagesFieldBuilder() : null;
           } else {
             messagesBuilder_.addAllMessages(other.messages_);
           }
@@ -697,6 +677,9 @@ public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Notification
       if (other.hasCreateTime()) {
         mergeCreateTime(other.getCreateTime());
       }
+      if (other.notificationType_ != 0) {
+        setNotificationTypeValue(other.getNotificationTypeValue());
+      }
       this.mergeUnknownFields(other.getUnknownFields());
       onChanged();
       return this;
@@ -723,45 +706,49 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10:
-              {
-                name_ = input.readStringRequireUtf8();
-                bitField0_ |= 0x00000001;
-                break;
-              } // case 10
-            case 18:
-              {
-                input.readMessage(getSubjectFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000002;
-                break;
-              } // case 18
-            case 26:
-              {
-                com.google.cloud.advisorynotifications.v1.Message m =
-                    input.readMessage(
-                        com.google.cloud.advisorynotifications.v1.Message.parser(),
-                        extensionRegistry);
-                if (messagesBuilder_ == null) {
-                  ensureMessagesIsMutable();
-                  messages_.add(m);
-                } else {
-                  messagesBuilder_.addMessage(m);
-                }
-                break;
-              } // case 26
-            case 34:
-              {
-                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
-                bitField0_ |= 0x00000008;
-                break;
-              } // case 34
-            default:
-              {
-                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                  done = true; // was an endgroup tag
-                }
-                break;
-              } // default:
+            case 10: {
+              name_ = input.readStringRequireUtf8();
+              bitField0_ |= 0x00000001;
+              break;
+            } // case 10
+            case 18: {
+              input.readMessage(
+                  getSubjectFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000002;
+              break;
+            } // case 18
+            case 26: {
+              com.google.cloud.advisorynotifications.v1.Message m =
+                  input.readMessage(
+                      com.google.cloud.advisorynotifications.v1.Message.parser(),
+                      extensionRegistry);
+              if (messagesBuilder_ == null) {
+                ensureMessagesIsMutable();
+                messages_.add(m);
+              } else {
+                messagesBuilder_.addMessage(m);
+              }
+              break;
+            } // case 26
+            case 34: {
+              input.readMessage(
+                  getCreateTimeFieldBuilder().getBuilder(),
+                  extensionRegistry);
+              bitField0_ |= 0x00000008;
+              break;
+            } // case 34
+            case 96: {
+              notificationType_ = input.readEnum();
+              bitField0_ |= 0x00000010;
+              break;
+            } // case 96
+            default: {
+              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                done = true; // was an endgroup tag
+              }
+              break;
+            } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -771,13 +758,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the notification.
      * Format:
@@ -785,13 +769,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -800,8 +784,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the notification.
      * Format:
@@ -809,14 +791,15 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -824,8 +807,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the notification.
      * Format:
@@ -833,22 +814,18 @@ public com.google.protobuf.ByteString getNameBytes() {
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The resource name of the notification.
      * Format:
@@ -856,7 +833,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -866,8 +842,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the notification.
      * Format:
@@ -875,14 +849,12 @@ public Builder clearName() {
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -892,47 +864,34 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private com.google.cloud.advisorynotifications.v1.Subject subject_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Subject, - com.google.cloud.advisorynotifications.v1.Subject.Builder, - com.google.cloud.advisorynotifications.v1.SubjectOrBuilder> - subjectBuilder_; + com.google.cloud.advisorynotifications.v1.Subject, com.google.cloud.advisorynotifications.v1.Subject.Builder, com.google.cloud.advisorynotifications.v1.SubjectOrBuilder> subjectBuilder_; /** - * - * *
      * The subject line of the notification.
      * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; - * * @return Whether the subject field is set. */ public boolean hasSubject() { return ((bitField0_ & 0x00000002) != 0); } /** - * - * *
      * The subject line of the notification.
      * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; - * * @return The subject. */ public com.google.cloud.advisorynotifications.v1.Subject getSubject() { if (subjectBuilder_ == null) { - return subject_ == null - ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() : subject_; } else { return subjectBuilder_.getMessage(); } } /** - * - * *
      * The subject line of the notification.
      * 
@@ -953,8 +912,6 @@ public Builder setSubject(com.google.cloud.advisorynotifications.v1.Subject valu return this; } /** - * - * *
      * The subject line of the notification.
      * 
@@ -973,8 +930,6 @@ public Builder setSubject( return this; } /** - * - * *
      * The subject line of the notification.
      * 
@@ -983,9 +938,9 @@ public Builder setSubject( */ public Builder mergeSubject(com.google.cloud.advisorynotifications.v1.Subject value) { if (subjectBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && subject_ != null - && subject_ != com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) && + subject_ != null && + subject_ != com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance()) { getSubjectBuilder().mergeFrom(value); } else { subject_ = value; @@ -998,8 +953,6 @@ public Builder mergeSubject(com.google.cloud.advisorynotifications.v1.Subject va return this; } /** - * - * *
      * The subject line of the notification.
      * 
@@ -1017,8 +970,6 @@ public Builder clearSubject() { return this; } /** - * - * *
      * The subject line of the notification.
      * 
@@ -1031,8 +982,6 @@ public com.google.cloud.advisorynotifications.v1.Subject.Builder getSubjectBuild return getSubjectFieldBuilder().getBuilder(); } /** - * - * *
      * The subject line of the notification.
      * 
@@ -1043,14 +992,11 @@ public com.google.cloud.advisorynotifications.v1.SubjectOrBuilder getSubjectOrBu if (subjectBuilder_ != null) { return subjectBuilder_.getMessageOrBuilder(); } else { - return subject_ == null - ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() - : subject_; + return subject_ == null ? + com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() : subject_; } } /** - * - * *
      * The subject line of the notification.
      * 
@@ -1058,42 +1004,32 @@ public com.google.cloud.advisorynotifications.v1.SubjectOrBuilder getSubjectOrBu * .google.cloud.advisorynotifications.v1.Subject subject = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Subject, - com.google.cloud.advisorynotifications.v1.Subject.Builder, - com.google.cloud.advisorynotifications.v1.SubjectOrBuilder> + com.google.cloud.advisorynotifications.v1.Subject, com.google.cloud.advisorynotifications.v1.Subject.Builder, com.google.cloud.advisorynotifications.v1.SubjectOrBuilder> getSubjectFieldBuilder() { if (subjectBuilder_ == null) { - subjectBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Subject, - com.google.cloud.advisorynotifications.v1.Subject.Builder, - com.google.cloud.advisorynotifications.v1.SubjectOrBuilder>( - getSubject(), getParentForChildren(), isClean()); + subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Subject, com.google.cloud.advisorynotifications.v1.Subject.Builder, com.google.cloud.advisorynotifications.v1.SubjectOrBuilder>( + getSubject(), + getParentForChildren(), + isClean()); subject_ = null; } return subjectBuilder_; } private java.util.List messages_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - messages_ = - new java.util.ArrayList(messages_); + messages_ = new java.util.ArrayList(messages_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message, - com.google.cloud.advisorynotifications.v1.Message.Builder, - com.google.cloud.advisorynotifications.v1.MessageOrBuilder> - messagesBuilder_; + com.google.cloud.advisorynotifications.v1.Message, com.google.cloud.advisorynotifications.v1.Message.Builder, com.google.cloud.advisorynotifications.v1.MessageOrBuilder> messagesBuilder_; /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1108,8 +1044,6 @@ public java.util.List getMess } } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1124,8 +1058,6 @@ public int getMessagesCount() { } } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1140,15 +1072,14 @@ public com.google.cloud.advisorynotifications.v1.Message getMessages(int index) } } /** - * - * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public Builder setMessages(int index, com.google.cloud.advisorynotifications.v1.Message value) { + public Builder setMessages( + int index, com.google.cloud.advisorynotifications.v1.Message value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1162,8 +1093,6 @@ public Builder setMessages(int index, com.google.cloud.advisorynotifications.v1. return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1182,8 +1111,6 @@ public Builder setMessages( return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1204,15 +1131,14 @@ public Builder addMessages(com.google.cloud.advisorynotifications.v1.Message val return this; } /** - * - * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public Builder addMessages(int index, com.google.cloud.advisorynotifications.v1.Message value) { + public Builder addMessages( + int index, com.google.cloud.advisorynotifications.v1.Message value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1226,8 +1152,6 @@ public Builder addMessages(int index, com.google.cloud.advisorynotifications.v1. return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1246,8 +1170,6 @@ public Builder addMessages( return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1266,8 +1188,6 @@ public Builder addMessages( return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1278,7 +1198,8 @@ public Builder addAllMessages( java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); @@ -1286,8 +1207,6 @@ public Builder addAllMessages( return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1305,8 +1224,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1324,20 +1241,17 @@ public Builder removeMessages(int index) { return this; } /** - * - * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public com.google.cloud.advisorynotifications.v1.Message.Builder getMessagesBuilder(int index) { + public com.google.cloud.advisorynotifications.v1.Message.Builder getMessagesBuilder( + int index) { return getMessagesFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1347,22 +1261,19 @@ public com.google.cloud.advisorynotifications.v1.Message.Builder getMessagesBuil public com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { - return messages_.get(index); - } else { + return messages_.get(index); } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -1370,8 +1281,6 @@ public com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrB } } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1379,49 +1288,42 @@ public com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrB * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ public com.google.cloud.advisorynotifications.v1.Message.Builder addMessagesBuilder() { - return getMessagesFieldBuilder() - .addBuilder(com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()); + return getMessagesFieldBuilder().addBuilder( + com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()); } /** - * - * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public com.google.cloud.advisorynotifications.v1.Message.Builder addMessagesBuilder(int index) { - return getMessagesFieldBuilder() - .addBuilder( - index, com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()); + public com.google.cloud.advisorynotifications.v1.Message.Builder addMessagesBuilder( + int index) { + return getMessagesFieldBuilder().addBuilder( + index, com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()); } /** - * - * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message, - com.google.cloud.advisorynotifications.v1.Message.Builder, - com.google.cloud.advisorynotifications.v1.MessageOrBuilder> + com.google.cloud.advisorynotifications.v1.Message, com.google.cloud.advisorynotifications.v1.Message.Builder, com.google.cloud.advisorynotifications.v1.MessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message, - com.google.cloud.advisorynotifications.v1.Message.Builder, - com.google.cloud.advisorynotifications.v1.MessageOrBuilder>( - messages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Message, com.google.cloud.advisorynotifications.v1.Message.Builder, com.google.cloud.advisorynotifications.v1.MessageOrBuilder>( + messages_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); messages_ = null; } return messagesBuilder_; @@ -1429,58 +1331,39 @@ public com.google.cloud.advisorynotifications.v1.Message.Builder addMessagesBuil private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; /** - * - * *
      * Output only. Time the notification was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000008) != 0); } /** - * - * *
      * Output only. Time the notification was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** - * - * *
      * Output only. Time the notification was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1496,17 +1379,14 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time the notification was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime( + com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1517,21 +1397,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * Output only. Time the notification was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) && + createTime_ != null && + createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1544,15 +1420,11 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Output only. Time the notification was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1565,15 +1437,11 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * Output only. Time the notification was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1581,55 +1449,116 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Output only. Time the notification was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; + return createTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } } /** - * - * *
      * Output only. Time the notification was created.
      * 
* - * - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), getParentForChildren(), isClean()); + createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), + getParentForChildren(), + isClean()); createTime_ = null; } return createTimeBuilder_; } + private int notificationType_ = 0; + /** + *
+     * Type of notification
+     * 
+ * + * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * @return The enum numeric value on the wire for notificationType. + */ + @java.lang.Override public int getNotificationTypeValue() { + return notificationType_; + } + /** + *
+     * Type of notification
+     * 
+ * + * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * @param value The enum numeric value on the wire for notificationType to set. + * @return This builder for chaining. + */ + public Builder setNotificationTypeValue(int value) { + notificationType_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Type of notification
+     * 
+ * + * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * @return The notificationType. + */ @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public com.google.cloud.advisorynotifications.v1.NotificationType getNotificationType() { + com.google.cloud.advisorynotifications.v1.NotificationType result = com.google.cloud.advisorynotifications.v1.NotificationType.forNumber(notificationType_); + return result == null ? com.google.cloud.advisorynotifications.v1.NotificationType.UNRECOGNIZED : result; + } + /** + *
+     * Type of notification
+     * 
+ * + * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * @param value The notificationType to set. + * @return This builder for chaining. + */ + public Builder setNotificationType(com.google.cloud.advisorynotifications.v1.NotificationType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + notificationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Type of notification
+     * 
+ * + * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * @return This builder for chaining. + */ + public Builder clearNotificationType() { + bitField0_ = (bitField0_ & ~0x00000010); + notificationType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1639,12 +1568,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Notification) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Notification) private static final com.google.cloud.advisorynotifications.v1.Notification DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Notification(); } @@ -1653,27 +1582,27 @@ public static com.google.cloud.advisorynotifications.v1.Notification getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Notification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Notification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1688,4 +1617,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Notification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java similarity index 100% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java similarity index 76% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java index b48c2188fbf0..e34ff34e8ba9 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface NotificationOrBuilder - extends +public interface NotificationOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Notification) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The resource name of the notification.
    * Format:
@@ -33,13 +15,10 @@ public interface NotificationOrBuilder
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The resource name of the notification.
    * Format:
@@ -47,38 +26,30 @@ public interface NotificationOrBuilder
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The subject line of the notification.
    * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; - * * @return Whether the subject field is set. */ boolean hasSubject(); /** - * - * *
    * The subject line of the notification.
    * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; - * * @return The subject. */ com.google.cloud.advisorynotifications.v1.Subject getSubject(); /** - * - * *
    * The subject line of the notification.
    * 
@@ -88,18 +59,15 @@ public interface NotificationOrBuilder com.google.cloud.advisorynotifications.v1.SubjectOrBuilder getSubjectOrBuilder(); /** - * - * *
    * A list of messages in the notification.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - java.util.List getMessagesList(); + java.util.List + getMessagesList(); /** - * - * *
    * A list of messages in the notification.
    * 
@@ -108,8 +76,6 @@ public interface NotificationOrBuilder */ com.google.cloud.advisorynotifications.v1.Message getMessages(int index); /** - * - * *
    * A list of messages in the notification.
    * 
@@ -118,62 +84,67 @@ public interface NotificationOrBuilder */ int getMessagesCount(); /** - * - * *
    * A list of messages in the notification.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - java.util.List + java.util.List getMessagesOrBuilderList(); /** - * - * *
    * A list of messages in the notification.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrBuilder(int index); + com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrBuilder( + int index); /** - * - * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** - * - * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** - * - * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + *
+   * Type of notification
+   * 
+ * + * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * @return The enum numeric value on the wire for notificationType. + */ + int getNotificationTypeValue(); + /** + *
+   * Type of notification
+   * 
+ * + * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * @return The notificationType. + */ + com.google.cloud.advisorynotifications.v1.NotificationType getNotificationType(); } diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java new file mode 100644 index 000000000000..f146060cb20e --- /dev/null +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java @@ -0,0 +1,150 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/advisorynotifications/v1/service.proto + +package com.google.cloud.advisorynotifications.v1; + +/** + *
+ * Type of notification
+ * 
+ * + * Protobuf enum {@code google.cloud.advisorynotifications.v1.NotificationType} + */ +public enum NotificationType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default type
+   * 
+ * + * NOTIFICATION_TYPE_UNSPECIFIED = 0; + */ + NOTIFICATION_TYPE_UNSPECIFIED(0), + /** + *
+   * Security and privacy advisory notifications
+   * 
+ * + * NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY = 1; + */ + NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY(1), + /** + *
+   * Sensitive action notifications
+   * 
+ * + * NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; + */ + NOTIFICATION_TYPE_SENSITIVE_ACTIONS(2), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default type
+   * 
+ * + * NOTIFICATION_TYPE_UNSPECIFIED = 0; + */ + public static final int NOTIFICATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + *
+   * Security and privacy advisory notifications
+   * 
+ * + * NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY = 1; + */ + public static final int NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY_VALUE = 1; + /** + *
+   * Sensitive action notifications
+   * 
+ * + * NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; + */ + public static final int NOTIFICATION_TYPE_SENSITIVE_ACTIONS_VALUE = 2; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static NotificationType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static NotificationType forNumber(int value) { + switch (value) { + case 0: return NOTIFICATION_TYPE_UNSPECIFIED; + case 1: return NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY; + case 2: return NOTIFICATION_TYPE_SENSITIVE_ACTIONS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + NotificationType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NotificationType findValueByNumber(int number) { + return NotificationType.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() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor().getEnumTypes().get(2); + } + + private static final NotificationType[] VALUES = values(); + + public static NotificationType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private NotificationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.advisorynotifications.v1.NotificationType) +} + diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java similarity index 68% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java index 012cd257a1da..170c726ffa60 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java @@ -1,36 +1,18 @@ -/* - * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** - * - * *
  * Notification view.
  * 
* * Protobuf enum {@code google.cloud.advisorynotifications.v1.NotificationView} */ -public enum NotificationView implements com.google.protobuf.ProtocolMessageEnum { +public enum NotificationView + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Not specified, equivalent to BASIC.
    * 
@@ -39,8 +21,6 @@ public enum NotificationView implements com.google.protobuf.ProtocolMessageEnum */ NOTIFICATION_VIEW_UNSPECIFIED(0), /** - * - * *
    * Server responses only include title, creation time and Notification ID.
    * Note: for internal use responses also include the last update time,
@@ -51,8 +31,6 @@ public enum NotificationView implements com.google.protobuf.ProtocolMessageEnum
    */
   BASIC(1),
   /**
-   *
-   *
    * 
    * Include everything.
    * 
@@ -64,8 +42,6 @@ public enum NotificationView implements com.google.protobuf.ProtocolMessageEnum ; /** - * - * *
    * Not specified, equivalent to BASIC.
    * 
@@ -74,8 +50,6 @@ public enum NotificationView implements com.google.protobuf.ProtocolMessageEnum */ public static final int NOTIFICATION_VIEW_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Server responses only include title, creation time and Notification ID.
    * Note: for internal use responses also include the last update time,
@@ -86,8 +60,6 @@ public enum NotificationView implements com.google.protobuf.ProtocolMessageEnum
    */
   public static final int BASIC_VALUE = 1;
   /**
-   *
-   *
    * 
    * Include everything.
    * 
@@ -96,6 +68,7 @@ public enum NotificationView implements com.google.protobuf.ProtocolMessageEnum */ public static final int FULL_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -120,51 +93,49 @@ public static NotificationView valueOf(int value) { */ public static NotificationView forNumber(int value) { switch (value) { - case 0: - return NOTIFICATION_VIEW_UNSPECIFIED; - case 1: - return BASIC; - case 2: - return FULL; - default: - return null; + case 0: return NOTIFICATION_VIEW_UNSPECIFIED; + case 1: return BASIC; + case 2: return FULL; + 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 NotificationView findValueByNumber(int number) { - return NotificationView.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + NotificationView> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public NotificationView findValueByNumber(int number) { + return NotificationView.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() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor() - .getEnumTypes() - .get(0); + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor().getEnumTypes().get(0); } private static final NotificationView[] VALUES = values(); - public static NotificationView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static NotificationView 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; @@ -180,3 +151,4 @@ private NotificationView(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.advisorynotifications.v1.NotificationView) } + diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java new file mode 100644 index 000000000000..b598bdc22e84 --- /dev/null +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java @@ -0,0 +1,259 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/advisorynotifications/v1/service.proto + +package com.google.cloud.advisorynotifications.v1; + +public final class ServiceProto { + private ServiceProto() {} + 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_advisorynotifications_v1_Notification_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/advisorynotifications/v1/" + + "service.proto\022%google.cloud.advisorynoti" + + "fications.v1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032\037google/protobuf/timestamp.proto" + + "\"\263\003\n\014Notification\022\014\n\004name\030\001 \001(\t\022?\n\007subje" + + "ct\030\002 \001(\0132..google.cloud.advisorynotifica" + + "tions.v1.Subject\022@\n\010messages\030\003 \003(\0132..goo" + + "gle.cloud.advisorynotifications.v1.Messa" + + "ge\0224\n\013create_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022R\n\021notification_type\030\014 " + + "\001(\01627.google.cloud.advisorynotifications" + + ".v1.NotificationType:\207\001\352A\203\001\n1advisorynot" + + "ifications.googleapis.com/Notification\022N" + + "organizations/{organization}/locations/{" + + "location}/notifications/{notification}\"\205" + + "\001\n\004Text\022\017\n\007en_text\030\001 \001(\t\022\026\n\016localized_te" + + "xt\030\002 \001(\t\022T\n\022localization_state\030\003 \001(\01628.g" + + "oogle.cloud.advisorynotifications.v1.Loc" + + "alizationState\"D\n\007Subject\0229\n\004text\030\001 \001(\0132" + + "+.google.cloud.advisorynotifications.v1." + + "Text\"\277\002\n\007Message\022A\n\004body\030\001 \001(\01323.google." + + "cloud.advisorynotifications.v1.Message.B" + + "ody\022F\n\013attachments\030\002 \003(\01321.google.cloud." + + "advisorynotifications.v1.Attachment\022/\n\013c" + + "reate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\0225\n\021localization_time\030\004 \001(\0132\032.google" + + ".protobuf.Timestamp\032A\n\004Body\0229\n\004text\030\001 \001(" + + "\0132+.google.cloud.advisorynotifications.v" + + "1.Text\"e\n\nAttachment\0229\n\003csv\030\002 \001(\0132*.goog" + + "le.cloud.advisorynotifications.v1.CsvH\000\022" + + "\024\n\014display_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n\007" + + "headers\030\001 \003(\t\022D\n\tdata_rows\030\002 \003(\01321.googl" + + "e.cloud.advisorynotifications.v1.Csv.Csv" + + "Row\032\031\n\006CsvRow\022\017\n\007entries\030\001 \003(\t\"\352\001\n\030ListN" + + "otificationsRequest\022I\n\006parent\030\001 \001(\tB9\340A\002" + + "\372A3\0221advisorynotifications.googleapis.co" + + "m/Notification\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\022E\n\004view\030\004 \001(\01627.google.clo" + + "ud.advisorynotifications.v1.Notification" + + "View\022\025\n\rlanguage_code\030\005 \001(\t\"\224\001\n\031ListNoti" + + "ficationsResponse\022J\n\rnotifications\030\001 \003(\013" + + "23.google.cloud.advisorynotifications.v1" + + ".Notification\022\027\n\017next_page_token\030\002 \001(\t\022\022" + + "\n\ntotal_size\030\003 \001(\005\"x\n\026GetNotificationReq" + + "uest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1advisorynoti" + + "fications.googleapis.com/Notification\022\025\n" + + "\rlanguage_code\030\005 \001(\t*J\n\020NotificationView" + + "\022!\n\035NOTIFICATION_VIEW_UNSPECIFIED\020\000\022\t\n\005B" + + "ASIC\020\001\022\010\n\004FULL\020\002*\240\001\n\021LocalizationState\022\"" + + "\n\036LOCALIZATION_STATE_UNSPECIFIED\020\000\022%\n!LO" + + "CALIZATION_STATE_NOT_APPLICABLE\020\001\022\036\n\032LOC" + + "ALIZATION_STATE_PENDING\020\002\022 \n\034LOCALIZATIO" + + "N_STATE_COMPLETED\020\003*\217\001\n\020NotificationType" + + "\022!\n\035NOTIFICATION_TYPE_UNSPECIFIED\020\000\022/\n+N" + + "OTIFICATION_TYPE_SECURITY_PRIVACY_ADVISO" + + "RY\020\001\022\'\n#NOTIFICATION_TYPE_SENSITIVE_ACTI" + + "ONS\020\0022\251\004\n\034AdvisoryNotificationsService\022\337" + + "\001\n\021ListNotifications\022?.google.cloud.advi" + + "sorynotifications.v1.ListNotificationsRe" + + "quest\032@.google.cloud.advisorynotificatio" + + "ns.v1.ListNotificationsResponse\"G\202\323\344\223\0028\022" + + "6/v1/{parent=organizations/*/locations/*" + + "}/notifications\332A\006parent\022\314\001\n\017GetNotifica" + + "tion\022=.google.cloud.advisorynotification" + + "s.v1.GetNotificationRequest\0323.google.clo" + + "ud.advisorynotifications.v1.Notification" + + "\"E\202\323\344\223\0028\0226/v1/{name=organizations/*/loca" + + "tions/*/notifications/*}\332A\004name\032X\312A$advi" + + "sorynotifications.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\374\002\n)com.google.cloud.advisorynotificat" + + "ions.v1B\014ServiceProtoP\001Z_cloud.google.co" + + "m/go/advisorynotifications/apiv1/advisor" + + "ynotificationspb;advisorynotificationspb" + + "\252\002%Google.Cloud.AdvisoryNotifications.V1" + + "\312\002%Google\\Cloud\\AdvisoryNotifications\\V1" + + "\352\002(Google::Cloud::AdvisoryNotifications:" + + ":V1\352Ab\n-advisorynotifications.googleapis" + + ".com/Location\0221organizations/{organizati" + + "on}/locations/{location}b\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor, + new java.lang.String[] { "Name", "Subject", "Messages", "CreateTime", "NotificationType", }); + internal_static_google_cloud_advisorynotifications_v1_Text_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Text_descriptor, + new java.lang.String[] { "EnText", "LocalizedText", "LocalizationState", }); + internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor, + new java.lang.String[] { "Text", }); + internal_static_google_cloud_advisorynotifications_v1_Message_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Message_descriptor, + new java.lang.String[] { "Body", "Attachments", "CreateTime", "LocalizationTime", }); + internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor = + internal_static_google_cloud_advisorynotifications_v1_Message_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor, + new java.lang.String[] { "Text", }); + internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor, + new java.lang.String[] { "Csv", "DisplayName", "Data", }); + internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor, + new java.lang.String[] { "Headers", "DataRows", }); + internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor = + internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor.getNestedTypes().get(0); + internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor, + new java.lang.String[] { "Entries", }); + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", "View", "LanguageCode", }); + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor, + new java.lang.String[] { "Notifications", "NextPageToken", "TotalSize", }); + internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor, + new java.lang.String[] { "Name", "LanguageCode", }); + 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.resourceDefinition); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java similarity index 65% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java index 42f9dd356fd7..e4e9a3b62f95 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java @@ -1,81 +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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** - * - * *
  * A subject line of a notification.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Subject} */ -public final class Subject extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Subject extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Subject) SubjectOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Subject.newBuilder() to construct. private Subject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Subject() {} + private Subject() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Subject(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Subject.class, - com.google.cloud.advisorynotifications.v1.Subject.Builder.class); + com.google.cloud.advisorynotifications.v1.Subject.class, com.google.cloud.advisorynotifications.v1.Subject.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; private com.google.cloud.advisorynotifications.v1.Text text_; /** - * - * *
    * The text content.
    * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return Whether the text field is set. */ @java.lang.Override @@ -83,25 +62,18 @@ public boolean hasText() { return text_ != null; } /** - * - * *
    * The text content.
    * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return The text. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Text getText() { - return text_ == null - ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() - : text_; + return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; } /** - * - * *
    * The text content.
    * 
@@ -110,13 +82,10 @@ public com.google.cloud.advisorynotifications.v1.Text getText() { */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder() { - return text_ == null - ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() - : text_; + return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -128,7 +97,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 (text_ != null) { output.writeMessage(1, getText()); } @@ -142,7 +112,8 @@ public int getSerializedSize() { size = 0; if (text_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getText()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getText()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -152,17 +123,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.advisorynotifications.v1.Subject)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Subject other = - (com.google.cloud.advisorynotifications.v1.Subject) obj; + com.google.cloud.advisorynotifications.v1.Subject other = (com.google.cloud.advisorynotifications.v1.Subject) obj; if (hasText() != other.hasText()) return false; if (hasText()) { - if (!getText().equals(other.getText())) return false; + if (!getText() + .equals(other.getText())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -185,135 +156,129 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Subject parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Subject parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject 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 subject line of a notification.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Subject} */ - 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.advisorynotifications.v1.Subject) com.google.cloud.advisorynotifications.v1.SubjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Subject.class, - com.google.cloud.advisorynotifications.v1.Subject.Builder.class); + com.google.cloud.advisorynotifications.v1.Subject.class, com.google.cloud.advisorynotifications.v1.Subject.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Subject.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -327,9 +292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; } @java.lang.Override @@ -348,11 +313,8 @@ public com.google.cloud.advisorynotifications.v1.Subject build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Subject buildPartial() { - com.google.cloud.advisorynotifications.v1.Subject result = - new com.google.cloud.advisorynotifications.v1.Subject(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.advisorynotifications.v1.Subject result = new com.google.cloud.advisorynotifications.v1.Subject(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -360,7 +322,9 @@ public com.google.cloud.advisorynotifications.v1.Subject buildPartial() { private void buildPartial0(com.google.cloud.advisorynotifications.v1.Subject result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.text_ = textBuilder_ == null ? text_ : textBuilder_.build(); + result.text_ = textBuilder_ == null + ? text_ + : textBuilder_.build(); } } @@ -368,39 +332,38 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Subject res 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.advisorynotifications.v1.Subject) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Subject) other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Subject)other); } else { super.mergeFrom(other); return this; @@ -408,8 +371,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Subject other) { - if (other == com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance()) - return this; + if (other == com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance()) return this; if (other.hasText()) { mergeText(other.getText()); } @@ -439,19 +401,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - input.readMessage(getTextFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + input.readMessage( + getTextFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -461,52 +423,38 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.cloud.advisorynotifications.v1.Text text_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, - com.google.cloud.advisorynotifications.v1.Text.Builder, - com.google.cloud.advisorynotifications.v1.TextOrBuilder> - textBuilder_; + com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder> textBuilder_; /** - * - * *
      * The text content.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return Whether the text field is set. */ public boolean hasText() { return ((bitField0_ & 0x00000001) != 0); } /** - * - * *
      * The text content.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return The text. */ public com.google.cloud.advisorynotifications.v1.Text getText() { if (textBuilder_ == null) { - return text_ == null - ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() - : text_; + return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; } else { return textBuilder_.getMessage(); } } /** - * - * *
      * The text content.
      * 
@@ -527,15 +475,14 @@ public Builder setText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** - * - * *
      * The text content.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; */ - public Builder setText(com.google.cloud.advisorynotifications.v1.Text.Builder builderForValue) { + public Builder setText( + com.google.cloud.advisorynotifications.v1.Text.Builder builderForValue) { if (textBuilder_ == null) { text_ = builderForValue.build(); } else { @@ -546,8 +493,6 @@ public Builder setText(com.google.cloud.advisorynotifications.v1.Text.Builder bu return this; } /** - * - * *
      * The text content.
      * 
@@ -556,9 +501,9 @@ public Builder setText(com.google.cloud.advisorynotifications.v1.Text.Builder bu */ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { if (textBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && text_ != null - && text_ != com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) && + text_ != null && + text_ != com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()) { getTextBuilder().mergeFrom(value); } else { text_ = value; @@ -571,8 +516,6 @@ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** - * - * *
      * The text content.
      * 
@@ -590,8 +533,6 @@ public Builder clearText() { return this; } /** - * - * *
      * The text content.
      * 
@@ -604,8 +545,6 @@ public com.google.cloud.advisorynotifications.v1.Text.Builder getTextBuilder() { return getTextFieldBuilder().getBuilder(); } /** - * - * *
      * The text content.
      * 
@@ -616,14 +555,11 @@ public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder( if (textBuilder_ != null) { return textBuilder_.getMessageOrBuilder(); } else { - return text_ == null - ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() - : text_; + return text_ == null ? + com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; } } /** - * - * *
      * The text content.
      * 
@@ -631,24 +567,21 @@ public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder( * .google.cloud.advisorynotifications.v1.Text text = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, - com.google.cloud.advisorynotifications.v1.Text.Builder, - com.google.cloud.advisorynotifications.v1.TextOrBuilder> + com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder> getTextFieldBuilder() { if (textBuilder_ == null) { - textBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, - com.google.cloud.advisorynotifications.v1.Text.Builder, - com.google.cloud.advisorynotifications.v1.TextOrBuilder>( - getText(), getParentForChildren(), isClean()); + textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder>( + getText(), + getParentForChildren(), + isClean()); text_ = null; } return textBuilder_; } - @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); } @@ -658,12 +591,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Subject) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Subject) private static final com.google.cloud.advisorynotifications.v1.Subject DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Subject(); } @@ -672,27 +605,27 @@ public static com.google.cloud.advisorynotifications.v1.Subject getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -707,4 +640,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Subject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java similarity index 58% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java index 73ca7bf88401..7b21146056ad 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java @@ -1,55 +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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface SubjectOrBuilder - extends +public interface SubjectOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Subject) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The text content.
    * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return Whether the text field is set. */ boolean hasText(); /** - * - * *
    * The text content.
    * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; - * * @return The text. */ com.google.cloud.advisorynotifications.v1.Text getText(); /** - * - * *
    * The text content.
    * 
diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java similarity index 68% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java index 4ab81ce751c9..3aec0578571a 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** - * - * *
  * A text object containing the English text and its localized copies.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Text} */ -public final class Text extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Text extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Text) TextOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Text.newBuilder() to construct. private Text(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Text() { enText_ = ""; localizedText_ = ""; @@ -45,43 +27,38 @@ private Text() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Text(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Text.class, - com.google.cloud.advisorynotifications.v1.Text.Builder.class); + com.google.cloud.advisorynotifications.v1.Text.class, com.google.cloud.advisorynotifications.v1.Text.Builder.class); } public static final int EN_TEXT_FIELD_NUMBER = 1; - @SuppressWarnings("serial") private volatile java.lang.Object enText_ = ""; /** - * - * *
    * The English copy.
    * 
* * string en_text = 1; - * * @return The enText. */ @java.lang.Override @@ -90,29 +67,29 @@ public java.lang.String getEnText() { 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(); enText_ = s; return s; } } /** - * - * *
    * The English copy.
    * 
* * string en_text = 1; - * * @return The bytes for enText. */ @java.lang.Override - public com.google.protobuf.ByteString getEnTextBytes() { + public com.google.protobuf.ByteString + getEnTextBytes() { java.lang.Object ref = enText_; 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); enText_ = b; return b; } else { @@ -121,18 +98,14 @@ public com.google.protobuf.ByteString getEnTextBytes() { } public static final int LOCALIZED_TEXT_FIELD_NUMBER = 2; - @SuppressWarnings("serial") private volatile java.lang.Object localizedText_ = ""; /** - * - * *
    * The requested localized copy (if applicable).
    * 
* * string localized_text = 2; - * * @return The localizedText. */ @java.lang.Override @@ -141,29 +114,29 @@ public java.lang.String getLocalizedText() { 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(); localizedText_ = s; return s; } } /** - * - * *
    * The requested localized copy (if applicable).
    * 
* * string localized_text = 2; - * * @return The bytes for localizedText. */ @java.lang.Override - public com.google.protobuf.ByteString getLocalizedTextBytes() { + public com.google.protobuf.ByteString + getLocalizedTextBytes() { java.lang.Object ref = localizedText_; 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); localizedText_ = b; return b; } else { @@ -174,42 +147,30 @@ public com.google.protobuf.ByteString getLocalizedTextBytes() { public static final int LOCALIZATION_STATE_FIELD_NUMBER = 3; private int localizationState_ = 0; /** - * - * *
    * Status of the localization.
    * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * * @return The enum numeric value on the wire for localizationState. */ - @java.lang.Override - public int getLocalizationStateValue() { + @java.lang.Override public int getLocalizationStateValue() { return localizationState_; } /** - * - * *
    * Status of the localization.
    * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * * @return The localizationState. */ - @java.lang.Override - public com.google.cloud.advisorynotifications.v1.LocalizationState getLocalizationState() { - com.google.cloud.advisorynotifications.v1.LocalizationState result = - com.google.cloud.advisorynotifications.v1.LocalizationState.forNumber(localizationState_); - return result == null - ? com.google.cloud.advisorynotifications.v1.LocalizationState.UNRECOGNIZED - : result; + @java.lang.Override public com.google.cloud.advisorynotifications.v1.LocalizationState getLocalizationState() { + com.google.cloud.advisorynotifications.v1.LocalizationState result = com.google.cloud.advisorynotifications.v1.LocalizationState.forNumber(localizationState_); + return result == null ? com.google.cloud.advisorynotifications.v1.LocalizationState.UNRECOGNIZED : result; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -221,17 +182,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, enText_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localizedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localizedText_); } - if (localizationState_ - != com.google.cloud.advisorynotifications.v1.LocalizationState - .LOCALIZATION_STATE_UNSPECIFIED - .getNumber()) { + if (localizationState_ != com.google.cloud.advisorynotifications.v1.LocalizationState.LOCALIZATION_STATE_UNSPECIFIED.getNumber()) { output.writeEnum(3, localizationState_); } getUnknownFields().writeTo(output); @@ -249,11 +208,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localizedText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localizedText_); } - if (localizationState_ - != com.google.cloud.advisorynotifications.v1.LocalizationState - .LOCALIZATION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, localizationState_); + if (localizationState_ != com.google.cloud.advisorynotifications.v1.LocalizationState.LOCALIZATION_STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, localizationState_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -263,16 +220,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.advisorynotifications.v1.Text)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Text other = - (com.google.cloud.advisorynotifications.v1.Text) obj; + com.google.cloud.advisorynotifications.v1.Text other = (com.google.cloud.advisorynotifications.v1.Text) obj; - if (!getEnText().equals(other.getEnText())) return false; - if (!getLocalizedText().equals(other.getLocalizedText())) return false; + if (!getEnText() + .equals(other.getEnText())) return false; + if (!getLocalizedText() + .equals(other.getLocalizedText())) return false; if (localizationState_ != other.localizationState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -296,136 +254,130 @@ public int hashCode() { return hash; } - public static com.google.cloud.advisorynotifications.v1.Text parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.advisorynotifications.v1.Text parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.advisorynotifications.v1.Text parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text 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 text object containing the English text and its localized copies.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Text} */ - 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.advisorynotifications.v1.Text) com.google.cloud.advisorynotifications.v1.TextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Text.class, - com.google.cloud.advisorynotifications.v1.Text.Builder.class); + com.google.cloud.advisorynotifications.v1.Text.class, com.google.cloud.advisorynotifications.v1.Text.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Text.newBuilder() - private Builder() {} + private Builder() { - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); } + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } @java.lang.Override public Builder clear() { super.clear(); @@ -437,9 +389,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto - .internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; } @java.lang.Override @@ -458,11 +410,8 @@ public com.google.cloud.advisorynotifications.v1.Text build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Text buildPartial() { - com.google.cloud.advisorynotifications.v1.Text result = - new com.google.cloud.advisorynotifications.v1.Text(this); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.advisorynotifications.v1.Text result = new com.google.cloud.advisorynotifications.v1.Text(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -484,39 +433,38 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Text result 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.advisorynotifications.v1.Text) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Text) other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Text)other); } else { super.mergeFrom(other); return this; @@ -564,31 +512,27 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: - { - enText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - localizedText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - localizationState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: { + enText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + localizedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + localizationState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -598,25 +542,22 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private java.lang.Object enText_ = ""; /** - * - * *
      * The English copy.
      * 
* * string en_text = 1; - * * @return The enText. */ public java.lang.String getEnText() { java.lang.Object ref = enText_; 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(); enText_ = s; return s; @@ -625,21 +566,20 @@ public java.lang.String getEnText() { } } /** - * - * *
      * The English copy.
      * 
* * string en_text = 1; - * * @return The bytes for enText. */ - public com.google.protobuf.ByteString getEnTextBytes() { + public com.google.protobuf.ByteString + getEnTextBytes() { java.lang.Object ref = enText_; 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); enText_ = b; return b; } else { @@ -647,35 +587,28 @@ public com.google.protobuf.ByteString getEnTextBytes() { } } /** - * - * *
      * The English copy.
      * 
* * string en_text = 1; - * * @param value The enText to set. * @return This builder for chaining. */ - public Builder setEnText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEnText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } enText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * - * *
      * The English copy.
      * 
* * string en_text = 1; - * * @return This builder for chaining. */ public Builder clearEnText() { @@ -685,21 +618,17 @@ public Builder clearEnText() { return this; } /** - * - * *
      * The English copy.
      * 
* * string en_text = 1; - * * @param value The bytes for enText to set. * @return This builder for chaining. */ - public Builder setEnTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setEnTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); enText_ = value; bitField0_ |= 0x00000001; @@ -709,20 +638,18 @@ public Builder setEnTextBytes(com.google.protobuf.ByteString value) { private java.lang.Object localizedText_ = ""; /** - * - * *
      * The requested localized copy (if applicable).
      * 
* * string localized_text = 2; - * * @return The localizedText. */ public java.lang.String getLocalizedText() { java.lang.Object ref = localizedText_; 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(); localizedText_ = s; return s; @@ -731,21 +658,20 @@ public java.lang.String getLocalizedText() { } } /** - * - * *
      * The requested localized copy (if applicable).
      * 
* * string localized_text = 2; - * * @return The bytes for localizedText. */ - public com.google.protobuf.ByteString getLocalizedTextBytes() { + public com.google.protobuf.ByteString + getLocalizedTextBytes() { java.lang.Object ref = localizedText_; 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); localizedText_ = b; return b; } else { @@ -753,35 +679,28 @@ public com.google.protobuf.ByteString getLocalizedTextBytes() { } } /** - * - * *
      * The requested localized copy (if applicable).
      * 
* * string localized_text = 2; - * * @param value The localizedText to set. * @return This builder for chaining. */ - public Builder setLocalizedText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocalizedText( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } localizedText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * - * *
      * The requested localized copy (if applicable).
      * 
* * string localized_text = 2; - * * @return This builder for chaining. */ public Builder clearLocalizedText() { @@ -791,21 +710,17 @@ public Builder clearLocalizedText() { return this; } /** - * - * *
      * The requested localized copy (if applicable).
      * 
* * string localized_text = 2; - * * @param value The bytes for localizedText to set. * @return This builder for chaining. */ - public Builder setLocalizedTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder setLocalizedTextBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); localizedText_ = value; bitField0_ |= 0x00000002; @@ -815,29 +730,22 @@ public Builder setLocalizedTextBytes(com.google.protobuf.ByteString value) { private int localizationState_ = 0; /** - * - * *
      * Status of the localization.
      * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * * @return The enum numeric value on the wire for localizationState. */ - @java.lang.Override - public int getLocalizationStateValue() { + @java.lang.Override public int getLocalizationStateValue() { return localizationState_; } /** - * - * *
      * Status of the localization.
      * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * * @param value The enum numeric value on the wire for localizationState to set. * @return This builder for chaining. */ @@ -848,38 +756,28 @@ public Builder setLocalizationStateValue(int value) { return this; } /** - * - * *
      * Status of the localization.
      * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * * @return The localizationState. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.LocalizationState getLocalizationState() { - com.google.cloud.advisorynotifications.v1.LocalizationState result = - com.google.cloud.advisorynotifications.v1.LocalizationState.forNumber(localizationState_); - return result == null - ? com.google.cloud.advisorynotifications.v1.LocalizationState.UNRECOGNIZED - : result; + com.google.cloud.advisorynotifications.v1.LocalizationState result = com.google.cloud.advisorynotifications.v1.LocalizationState.forNumber(localizationState_); + return result == null ? com.google.cloud.advisorynotifications.v1.LocalizationState.UNRECOGNIZED : result; } /** - * - * *
      * Status of the localization.
      * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * * @param value The localizationState to set. * @return This builder for chaining. */ - public Builder setLocalizationState( - com.google.cloud.advisorynotifications.v1.LocalizationState value) { + public Builder setLocalizationState(com.google.cloud.advisorynotifications.v1.LocalizationState value) { if (value == null) { throw new NullPointerException(); } @@ -889,14 +787,11 @@ public Builder setLocalizationState( return this; } /** - * - * *
      * Status of the localization.
      * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * * @return This builder for chaining. */ public Builder clearLocalizationState() { @@ -905,9 +800,9 @@ public Builder clearLocalizationState() { 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); } @@ -917,12 +812,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Text) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Text) private static final com.google.cloud.advisorynotifications.v1.Text DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Text(); } @@ -931,27 +826,27 @@ public static com.google.cloud.advisorynotifications.v1.Text getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Text parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Text parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -966,4 +861,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Text getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java similarity index 65% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java index 9eac0050b017..21521323f550 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java @@ -1,99 +1,67 @@ -/* - * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface TextOrBuilder - extends +public interface TextOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Text) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The English copy.
    * 
* * string en_text = 1; - * * @return The enText. */ java.lang.String getEnText(); /** - * - * *
    * The English copy.
    * 
* * string en_text = 1; - * * @return The bytes for enText. */ - com.google.protobuf.ByteString getEnTextBytes(); + com.google.protobuf.ByteString + getEnTextBytes(); /** - * - * *
    * The requested localized copy (if applicable).
    * 
* * string localized_text = 2; - * * @return The localizedText. */ java.lang.String getLocalizedText(); /** - * - * *
    * The requested localized copy (if applicable).
    * 
* * string localized_text = 2; - * * @return The bytes for localizedText. */ - com.google.protobuf.ByteString getLocalizedTextBytes(); + com.google.protobuf.ByteString + getLocalizedTextBytes(); /** - * - * *
    * Status of the localization.
    * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * * @return The enum numeric value on the wire for localizationState. */ int getLocalizationStateValue(); /** - * - * *
    * Status of the localization.
    * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; - * * @return The localizationState. */ com.google.cloud.advisorynotifications.v1.LocalizationState getLocalizationState(); diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto similarity index 95% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto index 05b53b394329..6c9bc375b3fd 100644 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto +++ b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto @@ -1,4 +1,4 @@ -// Copyright 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -24,11 +24,11 @@ import "google/protobuf/timestamp.proto"; option csharp_namespace = "Google.Cloud.AdvisoryNotifications.V1"; option go_package = "cloud.google.com/go/advisorynotifications/apiv1/advisorynotificationspb;advisorynotificationspb"; -option php_namespace = "Google\\Cloud\\AdvisoryNotifications\\V1"; -option ruby_package = "Google::Cloud::AdvisoryNotifications::V1"; option java_multiple_files = true; option java_outer_classname = "ServiceProto"; option java_package = "com.google.cloud.advisorynotifications.v1"; +option php_namespace = "Google\\Cloud\\AdvisoryNotifications\\V1"; +option ruby_package = "Google::Cloud::AdvisoryNotifications::V1"; option (google.api.resource_definition) = { type: "advisorynotifications.googleapis.com/Location" pattern: "organizations/{organization}/locations/{location}" @@ -92,6 +92,18 @@ enum LocalizationState { LOCALIZATION_STATE_COMPLETED = 3; } +// Type of notification +enum NotificationType { + // Default type + NOTIFICATION_TYPE_UNSPECIFIED = 0; + + // Security and privacy advisory notifications + NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY = 1; + + // Sensitive action notifications + NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; +} + // A notification object for notifying customers about security and privacy // issues. message Notification { @@ -114,6 +126,9 @@ message Notification { // Output only. Time the notification was created. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Type of notification + NotificationType notification_type = 12; } // A text object containing the English text and its localized copies. diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetEndpoint.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetEndpoint.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetEndpoint.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/AsyncGetNotification.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/AsyncGetNotification.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/AsyncGetNotification.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/AsyncGetNotification.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotification.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotification.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotification.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotification.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationNotificationname.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationNotificationname.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationNotificationname.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationNotificationname.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationString.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationString.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationString.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationString.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotifications.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotifications.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotifications.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotifications.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotificationsPaged.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotificationsPaged.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotificationsPaged.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotificationsPaged.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotifications.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotifications.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotifications.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotifications.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsLocationname.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsLocationname.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsLocationname.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsLocationname.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsString.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsString.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsString.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsString.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservicesettings/getnotification/SyncGetNotification.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservicesettings/getnotification/SyncGetNotification.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservicesettings/getnotification/SyncGetNotification.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservicesettings/getnotification/SyncGetNotification.java diff --git a/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/stub/advisorynotificationsservicestubsettings/getnotification/SyncGetNotification.java b/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/stub/advisorynotificationsservicestubsettings/getnotification/SyncGetNotification.java similarity index 100% rename from java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/stub/advisorynotificationsservicestubsettings/getnotification/SyncGetNotification.java rename to owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/stub/advisorynotificationsservicestubsettings/getnotification/SyncGetNotification.java From e81ee0c8c9ad71dad19b4035b767cb917e6634a8 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Wed, 29 Mar 2023 16:03:56 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-advisorynotifications/README.md | 8 +- .../pom.xml | 2 +- .../pom.xml | 4 +- .../AdvisoryNotificationsServiceClient.java | 0 .../AdvisoryNotificationsServiceSettings.java | 1 - .../v1/gapic_metadata.json | 0 .../v1/package-info.java | 0 .../AdvisoryNotificationsServiceStub.java | 0 ...isoryNotificationsServiceStubSettings.java | 0 ...ryNotificationsServiceCallableFactory.java | 0 .../GrpcAdvisoryNotificationsServiceStub.java | 1 - ...ryNotificationsServiceCallableFactory.java | 0 ...pJsonAdvisoryNotificationsServiceStub.java | 0 ...otificationsServiceClientHttpJsonTest.java | 0 ...dvisoryNotificationsServiceClientTest.java | 0 .../v1/MockAdvisoryNotificationsService.java | 0 .../MockAdvisoryNotificationsServiceImpl.java | 0 .../v1/AdvisoryNotificationsServiceGrpc.java | 516 +++++++++ java-advisorynotifications/pom.xml | 3 +- .../advisorynotifications/v1/Attachment.java | 455 +++++--- .../v1/AttachmentOrBuilder.java | 35 +- .../cloud/advisorynotifications/v1/Csv.java | 851 ++++++++------ .../v1/CsvOrBuilder.java | 54 +- .../v1/GetNotificationRequest.java | 451 +++++--- .../v1/GetNotificationRequestOrBuilder.java | 44 +- .../v1/ListNotificationsRequest.java | 636 ++++++---- .../v1/ListNotificationsRequestOrBuilder.java | 62 +- .../v1/ListNotificationsResponse.java | 555 +++++---- .../ListNotificationsResponseOrBuilder.java | 45 +- .../v1/LocalizationState.java | 91 +- .../v1/LocationName.java | 0 .../advisorynotifications/v1/Message.java | 1029 +++++++++++------ .../v1/MessageOrBuilder.java | 60 +- .../v1/Notification.java | 782 ++++++++----- .../v1/NotificationName.java | 0 .../v1/NotificationOrBuilder.java | 76 +- .../v1/NotificationType.java | 86 +- .../v1/NotificationView.java | 86 +- .../v1/ServiceProto.java | 288 +++++ .../advisorynotifications/v1/Subject.java | 353 +++--- .../v1/SubjectOrBuilder.java | 26 +- .../cloud/advisorynotifications/v1/Text.java | 461 +++++--- .../v1/TextOrBuilder.java | 42 +- .../advisorynotifications/v1/service.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../getnotification/AsyncGetNotification.java | 0 .../getnotification/SyncGetNotification.java | 0 .../SyncGetNotificationNotificationname.java | 0 .../SyncGetNotificationString.java | 0 .../AsyncListNotifications.java | 0 .../AsyncListNotificationsPaged.java | 0 .../SyncListNotifications.java | 0 .../SyncListNotificationsLocationname.java | 0 .../SyncListNotificationsString.java | 0 .../getnotification/SyncGetNotification.java | 0 .../getnotification/SyncGetNotification.java | 0 .../v1/AdvisoryNotificationsServiceGrpc.java | 409 ------- .../v1/ServiceProto.java | 259 ----- 60 files changed, 4828 insertions(+), 2943 deletions(-) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java (99%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/gapic_metadata.json (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/package-info.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStub.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceCallableFactory.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java (99%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceCallableFactory.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceStub.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsService.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsServiceImpl.java (100%) create mode 100644 java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java (69%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java (65%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java (74%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java (74%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java (66%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java (62%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java (69%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java (73%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java (71%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java (73%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java (72%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java (72%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java (79%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java (70%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java (78%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java (66%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java (68%) create mode 100644 java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java (65%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java (58%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java (68%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java (65%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/AsyncGetNotification.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotification.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationNotificationname.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationString.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotifications.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotificationsPaged.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotifications.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsLocationname.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsString.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservicesettings/getnotification/SyncGetNotification.java (100%) rename {owl-bot-staging/java-advisorynotifications/v1 => java-advisorynotifications}/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/stub/advisorynotificationsservicestubsettings/getnotification/SyncGetNotification.java (100%) delete mode 100644 owl-bot-staging/java-advisorynotifications/v1/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java delete mode 100644 owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 186cf1c284a3..1907cfb5f14e 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -16,9 +16,9 @@ Java idiomatic client for [Advisory Notifications API][product-docs]. If you are using Maven, add this to your pom.xml file: - + ```xml com.google.cloud @@ -55,7 +55,7 @@ The client application making API calls must be granted [authorization scopes][a You will need a [Google Cloud Platform Console][developer-console] project with the Advisory Notifications API [API enabled][enable-api]. You will need to [enable billing][enable-billing] to use Google Advisory Notifications API. [Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by -[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line: +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: `gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. ### Installation and setup @@ -179,14 +179,14 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-advisorynotifications/java11.html [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-advisorynotifications.svg -[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-advisorynotifications&core=gav +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.2.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles [iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy [developer-console]: https://console.developers.google.com/ [create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects -[cloud-sdk]: https://cloud.google.com/sdk/ +[cloud-cli]: https://cloud.google.com/cli [troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting [contributing]: https://github.com/googleapis/java-advisorynotifications/blob/main/CONTRIBUTING.md [code-of-conduct]: https://github.com/googleapis/java-advisorynotifications/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct diff --git a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml index 31776ba2d3bc..713d926a74e1 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications-bom/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud diff --git a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml index e8013cf82a53..26186a045ad4 100644 --- a/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml +++ b/java-advisorynotifications/google-cloud-advisorynotifications/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.cloud @@ -110,4 +110,4 @@ test - \ No newline at end of file + diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClient.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java similarity index 99% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java index 7b44724693bd..f716f3599da8 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.java +++ b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceSettings.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.advisorynotifications.v1.stub.AdvisoryNotificationsServiceStubSettings; diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/gapic_metadata.json b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/gapic_metadata.json rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/gapic_metadata.json diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/package-info.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/package-info.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/package-info.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/package-info.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStub.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStub.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStub.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStub.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/AdvisoryNotificationsServiceStubSettings.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceCallableFactory.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceCallableFactory.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceCallableFactory.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java similarity index 99% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java index 1b6341e481c1..a768ed12da7b 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java +++ b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/GrpcAdvisoryNotificationsServiceStub.java @@ -33,7 +33,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/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceCallableFactory.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceCallableFactory.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceCallableFactory.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceStub.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceStub.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceStub.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/java/com/google/cloud/advisorynotifications/v1/stub/HttpJsonAdvisoryNotificationsServiceStub.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsService.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsService.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsService.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsService.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsServiceImpl.java b/java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsServiceImpl.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsServiceImpl.java rename to java-advisorynotifications/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/MockAdvisoryNotificationsServiceImpl.java diff --git a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java new file mode 100644 index 000000000000..4666cd129124 --- /dev/null +++ b/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java @@ -0,0 +1,516 @@ +/* + * 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.advisorynotifications.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service to manage Security and Privacy Notifications.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/cloud/advisorynotifications/v1/service.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AdvisoryNotificationsServiceGrpc { + + private AdvisoryNotificationsServiceGrpc() {} + + public static final String SERVICE_NAME = + "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest, + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> + getListNotificationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListNotifications", + requestType = com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, + responseType = com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest, + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> + getListNotificationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest, + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> + getListNotificationsMethod; + if ((getListNotificationsMethod = AdvisoryNotificationsServiceGrpc.getListNotificationsMethod) + == null) { + synchronized (AdvisoryNotificationsServiceGrpc.class) { + if ((getListNotificationsMethod = + AdvisoryNotificationsServiceGrpc.getListNotificationsMethod) + == null) { + AdvisoryNotificationsServiceGrpc.getListNotificationsMethod = + getListNotificationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotifications")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AdvisoryNotificationsServiceMethodDescriptorSupplier( + "ListNotifications")) + .build(); + } + } + } + return getListNotificationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.advisorynotifications.v1.GetNotificationRequest, + com.google.cloud.advisorynotifications.v1.Notification> + getGetNotificationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetNotification", + requestType = com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, + responseType = com.google.cloud.advisorynotifications.v1.Notification.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.advisorynotifications.v1.GetNotificationRequest, + com.google.cloud.advisorynotifications.v1.Notification> + getGetNotificationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.advisorynotifications.v1.GetNotificationRequest, + com.google.cloud.advisorynotifications.v1.Notification> + getGetNotificationMethod; + if ((getGetNotificationMethod = AdvisoryNotificationsServiceGrpc.getGetNotificationMethod) + == null) { + synchronized (AdvisoryNotificationsServiceGrpc.class) { + if ((getGetNotificationMethod = AdvisoryNotificationsServiceGrpc.getGetNotificationMethod) + == null) { + AdvisoryNotificationsServiceGrpc.getGetNotificationMethod = + getGetNotificationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotification")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.advisorynotifications.v1.GetNotificationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.advisorynotifications.v1.Notification + .getDefaultInstance())) + .setSchemaDescriptor( + new AdvisoryNotificationsServiceMethodDescriptorSupplier( + "GetNotification")) + .build(); + } + } + } + return getGetNotificationMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AdvisoryNotificationsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdvisoryNotificationsServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceStub(channel, callOptions); + } + }; + return AdvisoryNotificationsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AdvisoryNotificationsServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdvisoryNotificationsServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceBlockingStub(channel, callOptions); + } + }; + return AdvisoryNotificationsServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AdvisoryNotificationsServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AdvisoryNotificationsServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceFutureStub(channel, callOptions); + } + }; + return AdvisoryNotificationsServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service to manage Security and Privacy Notifications.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists notifications under a given parent.
+     * 
+ */ + default void listNotifications( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListNotificationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets a notification.
+     * 
+ */ + default void getNotification( + com.google.cloud.advisorynotifications.v1.GetNotificationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetNotificationMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AdvisoryNotificationsService. + * + *
+   * Service to manage Security and Privacy Notifications.
+   * 
+ */ + public abstract static class AdvisoryNotificationsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AdvisoryNotificationsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AdvisoryNotificationsService. + * + *
+   * Service to manage Security and Privacy Notifications.
+   * 
+ */ + public static final class AdvisoryNotificationsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AdvisoryNotificationsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdvisoryNotificationsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists notifications under a given parent.
+     * 
+ */ + public void listNotifications( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListNotificationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets a notification.
+     * 
+ */ + public void getNotification( + com.google.cloud.advisorynotifications.v1.GetNotificationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetNotificationMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AdvisoryNotificationsService. + * + *
+   * Service to manage Security and Privacy Notifications.
+   * 
+ */ + public static final class AdvisoryNotificationsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AdvisoryNotificationsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdvisoryNotificationsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists notifications under a given parent.
+     * 
+ */ + public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse listNotifications( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListNotificationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets a notification.
+     * 
+ */ + public com.google.cloud.advisorynotifications.v1.Notification getNotification( + com.google.cloud.advisorynotifications.v1.GetNotificationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetNotificationMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * AdvisoryNotificationsService. + * + *
+   * Service to manage Security and Privacy Notifications.
+   * 
+ */ + public static final class AdvisoryNotificationsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AdvisoryNotificationsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AdvisoryNotificationsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AdvisoryNotificationsServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists notifications under a given parent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse> + listNotifications( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListNotificationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets a notification.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.advisorynotifications.v1.Notification> + getNotification(com.google.cloud.advisorynotifications.v1.GetNotificationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetNotificationMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_NOTIFICATIONS = 0; + private static final int METHODID_GET_NOTIFICATION = 1; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_LIST_NOTIFICATIONS: + serviceImpl.listNotifications( + (com.google.cloud.advisorynotifications.v1.ListNotificationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse>) + responseObserver); + break; + case METHODID_GET_NOTIFICATION: + serviceImpl.getNotification( + (com.google.cloud.advisorynotifications.v1.GetNotificationRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListNotificationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest, + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse>( + service, METHODID_LIST_NOTIFICATIONS))) + .addMethod( + getGetNotificationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.advisorynotifications.v1.GetNotificationRequest, + com.google.cloud.advisorynotifications.v1.Notification>( + service, METHODID_GET_NOTIFICATION))) + .build(); + } + + private abstract static class AdvisoryNotificationsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AdvisoryNotificationsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AdvisoryNotificationsService"); + } + } + + private static final class AdvisoryNotificationsServiceFileDescriptorSupplier + extends AdvisoryNotificationsServiceBaseDescriptorSupplier { + AdvisoryNotificationsServiceFileDescriptorSupplier() {} + } + + private static final class AdvisoryNotificationsServiceMethodDescriptorSupplier + extends AdvisoryNotificationsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AdvisoryNotificationsServiceMethodDescriptorSupplier(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 (AdvisoryNotificationsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AdvisoryNotificationsServiceFileDescriptorSupplier()) + .addMethod(getListNotificationsMethod()) + .addMethod(getGetNotificationMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-advisorynotifications/pom.xml b/java-advisorynotifications/pom.xml index 00163e910da6..dded22fc15a4 100644 --- a/java-advisorynotifications/pom.xml +++ b/java-advisorynotifications/pom.xml @@ -50,4 +50,5 @@ proto-google-cloud-advisorynotifications-v1 google-cloud-advisorynotifications-bom - + + diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java similarity index 69% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java index c7c3e3fb7d87..510af40d0a68 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Attachment.java @@ -1,61 +1,83 @@ +/* + * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * Attachment with specific information about the issue.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Attachment} */ -public final class Attachment extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Attachment extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Attachment) AttachmentOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Attachment.newBuilder() to construct. private Attachment(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Attachment() { displayName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Attachment(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Attachment.class, com.google.cloud.advisorynotifications.v1.Attachment.Builder.class); + com.google.cloud.advisorynotifications.v1.Attachment.class, + com.google.cloud.advisorynotifications.v1.Attachment.Builder.class); } private int dataCase_ = 0; private java.lang.Object data_; + public enum DataCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CSV(2), DATA_NOT_SET(0); private final int value; + private DataCase(int value) { this.value = value; } @@ -71,29 +93,34 @@ public static DataCase valueOf(int value) { public static DataCase forNumber(int value) { switch (value) { - case 2: return CSV; - case 0: return DATA_NOT_SET; - default: return null; + case 2: + return CSV; + case 0: + return DATA_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); } public static final int CSV_FIELD_NUMBER = 2; /** + * + * *
    * A CSV file attachment. Max size is 10 MB.
    * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; + * * @return Whether the csv field is set. */ @java.lang.Override @@ -101,21 +128,26 @@ public boolean hasCsv() { return dataCase_ == 2; } /** + * + * *
    * A CSV file attachment. Max size is 10 MB.
    * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; + * * @return The csv. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Csv getCsv() { if (dataCase_ == 2) { - return (com.google.cloud.advisorynotifications.v1.Csv) data_; + return (com.google.cloud.advisorynotifications.v1.Csv) data_; } return com.google.cloud.advisorynotifications.v1.Csv.getDefaultInstance(); } /** + * + * *
    * A CSV file attachment. Max size is 10 MB.
    * 
@@ -125,20 +157,24 @@ public com.google.cloud.advisorynotifications.v1.Csv getCsv() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder() { if (dataCase_ == 2) { - return (com.google.cloud.advisorynotifications.v1.Csv) data_; + return (com.google.cloud.advisorynotifications.v1.Csv) data_; } return com.google.cloud.advisorynotifications.v1.Csv.getDefaultInstance(); } public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object displayName_ = ""; /** + * + * *
    * The title of the attachment.
    * 
* * string display_name = 1; + * * @return The displayName. */ @java.lang.Override @@ -147,29 +183,29 @@ public java.lang.String getDisplayName() { 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(); displayName_ = s; return s; } } /** + * + * *
    * The title of the attachment.
    * 
* * string display_name = 1; + * * @return The bytes for displayName. */ @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -178,6 +214,7 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -189,8 +226,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); } @@ -210,8 +246,9 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); } if (dataCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.advisorynotifications.v1.Csv) data_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.advisorynotifications.v1.Csv) data_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -221,20 +258,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.advisorynotifications.v1.Attachment)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Attachment other = (com.google.cloud.advisorynotifications.v1.Attachment) obj; + com.google.cloud.advisorynotifications.v1.Attachment other = + (com.google.cloud.advisorynotifications.v1.Attachment) obj; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; if (!getDataCase().equals(other.getDataCase())) return false; switch (dataCase_) { case 2: - if (!getCsv() - .equals(other.getCsv())) return false; + if (!getCsv().equals(other.getCsv())) return false; break; case 0: default: @@ -266,129 +302,135 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Attachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Attachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment 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.advisorynotifications.v1.Attachment 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; } /** + * + * *
    * Attachment with specific information about the issue.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Attachment} */ - 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.advisorynotifications.v1.Attachment) com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Attachment.class, com.google.cloud.advisorynotifications.v1.Attachment.Builder.class); + com.google.cloud.advisorynotifications.v1.Attachment.class, + com.google.cloud.advisorynotifications.v1.Attachment.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Attachment.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -403,9 +445,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; } @java.lang.Override @@ -424,8 +466,11 @@ public com.google.cloud.advisorynotifications.v1.Attachment build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Attachment buildPartial() { - com.google.cloud.advisorynotifications.v1.Attachment result = new com.google.cloud.advisorynotifications.v1.Attachment(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.advisorynotifications.v1.Attachment result = + new com.google.cloud.advisorynotifications.v1.Attachment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } buildPartialOneofs(result); onBuilt(); return result; @@ -441,8 +486,7 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Attachment private void buildPartialOneofs(com.google.cloud.advisorynotifications.v1.Attachment result) { result.dataCase_ = dataCase_; result.data_ = this.data_; - if (dataCase_ == 2 && - csvBuilder_ != null) { + if (dataCase_ == 2 && csvBuilder_ != null) { result.data_ = csvBuilder_.build(); } } @@ -451,38 +495,39 @@ private void buildPartialOneofs(com.google.cloud.advisorynotifications.v1.Attach 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.advisorynotifications.v1.Attachment) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Attachment)other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Attachment) other); } else { super.mergeFrom(other); return this; @@ -490,20 +535,23 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Attachment other) { - if (other == com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()) return this; + if (other == com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()) + return this; if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; bitField0_ |= 0x00000002; onChanged(); } switch (other.getDataCase()) { - case CSV: { - mergeCsv(other.getCsv()); - break; - } - case DATA_NOT_SET: { - break; - } + case CSV: + { + mergeCsv(other.getCsv()); + break; + } + case DATA_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -531,24 +579,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: { - input.readMessage( - getCsvFieldBuilder().getBuilder(), - extensionRegistry); - dataCase_ = 2; - break; - } // case 18 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + input.readMessage(getCsvFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -558,12 +607,12 @@ public Builder mergeFrom( } // finally return this; } + private int dataCase_ = 0; private java.lang.Object data_; - public DataCase - getDataCase() { - return DataCase.forNumber( - dataCase_); + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); } public Builder clearData() { @@ -576,13 +625,19 @@ public Builder clearData() { private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Csv, com.google.cloud.advisorynotifications.v1.Csv.Builder, com.google.cloud.advisorynotifications.v1.CsvOrBuilder> csvBuilder_; + com.google.cloud.advisorynotifications.v1.Csv, + com.google.cloud.advisorynotifications.v1.Csv.Builder, + com.google.cloud.advisorynotifications.v1.CsvOrBuilder> + csvBuilder_; /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; + * * @return Whether the csv field is set. */ @java.lang.Override @@ -590,11 +645,14 @@ public boolean hasCsv() { return dataCase_ == 2; } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; + * * @return The csv. */ @java.lang.Override @@ -612,6 +670,8 @@ public com.google.cloud.advisorynotifications.v1.Csv getCsv() { } } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -632,14 +692,15 @@ public Builder setCsv(com.google.cloud.advisorynotifications.v1.Csv value) { return this; } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; */ - public Builder setCsv( - com.google.cloud.advisorynotifications.v1.Csv.Builder builderForValue) { + public Builder setCsv(com.google.cloud.advisorynotifications.v1.Csv.Builder builderForValue) { if (csvBuilder_ == null) { data_ = builderForValue.build(); onChanged(); @@ -650,6 +711,8 @@ public Builder setCsv( return this; } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -658,10 +721,13 @@ public Builder setCsv( */ public Builder mergeCsv(com.google.cloud.advisorynotifications.v1.Csv value) { if (csvBuilder_ == null) { - if (dataCase_ == 2 && - data_ != com.google.cloud.advisorynotifications.v1.Csv.getDefaultInstance()) { - data_ = com.google.cloud.advisorynotifications.v1.Csv.newBuilder((com.google.cloud.advisorynotifications.v1.Csv) data_) - .mergeFrom(value).buildPartial(); + if (dataCase_ == 2 + && data_ != com.google.cloud.advisorynotifications.v1.Csv.getDefaultInstance()) { + data_ = + com.google.cloud.advisorynotifications.v1.Csv.newBuilder( + (com.google.cloud.advisorynotifications.v1.Csv) data_) + .mergeFrom(value) + .buildPartial(); } else { data_ = value; } @@ -677,6 +743,8 @@ public Builder mergeCsv(com.google.cloud.advisorynotifications.v1.Csv value) { return this; } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -700,6 +768,8 @@ public Builder clearCsv() { return this; } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -710,6 +780,8 @@ public com.google.cloud.advisorynotifications.v1.Csv.Builder getCsvBuilder() { return getCsvFieldBuilder().getBuilder(); } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -728,6 +800,8 @@ public com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder() } } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -735,14 +809,19 @@ public com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder() * .google.cloud.advisorynotifications.v1.Csv csv = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Csv, com.google.cloud.advisorynotifications.v1.Csv.Builder, com.google.cloud.advisorynotifications.v1.CsvOrBuilder> + com.google.cloud.advisorynotifications.v1.Csv, + com.google.cloud.advisorynotifications.v1.Csv.Builder, + com.google.cloud.advisorynotifications.v1.CsvOrBuilder> getCsvFieldBuilder() { if (csvBuilder_ == null) { if (!(dataCase_ == 2)) { data_ = com.google.cloud.advisorynotifications.v1.Csv.getDefaultInstance(); } - csvBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Csv, com.google.cloud.advisorynotifications.v1.Csv.Builder, com.google.cloud.advisorynotifications.v1.CsvOrBuilder>( + csvBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Csv, + com.google.cloud.advisorynotifications.v1.Csv.Builder, + com.google.cloud.advisorynotifications.v1.CsvOrBuilder>( (com.google.cloud.advisorynotifications.v1.Csv) data_, getParentForChildren(), isClean()); @@ -755,18 +834,20 @@ public com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder() private java.lang.Object displayName_ = ""; /** + * + * *
      * The title of the attachment.
      * 
* * string display_name = 1; + * * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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(); displayName_ = s; return s; @@ -775,20 +856,21 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The title of the attachment.
      * 
* * string display_name = 1; + * * @return The bytes for displayName. */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { + public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; 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); displayName_ = b; return b; } else { @@ -796,28 +878,35 @@ public java.lang.String getDisplayName() { } } /** + * + * *
      * The title of the attachment.
      * 
* * string display_name = 1; + * * @param value The displayName to set. * @return This builder for chaining. */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } displayName_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The title of the attachment.
      * 
* * string display_name = 1; + * * @return This builder for chaining. */ public Builder clearDisplayName() { @@ -827,26 +916,30 @@ public Builder clearDisplayName() { return this; } /** + * + * *
      * The title of the attachment.
      * 
* * string display_name = 1; + * * @param value The bytes for displayName to set. * @return This builder for chaining. */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); displayName_ = value; bitField0_ |= 0x00000002; 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); } @@ -856,12 +949,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Attachment) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Attachment) private static final com.google.cloud.advisorynotifications.v1.Attachment DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Attachment(); } @@ -870,27 +963,27 @@ public static com.google.cloud.advisorynotifications.v1.Attachment getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Attachment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Attachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -905,6 +998,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Attachment getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java similarity index 65% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java index 95664bee11e7..5798e0200fe9 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AttachmentOrBuilder.java @@ -1,31 +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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface AttachmentOrBuilder extends +public interface AttachmentOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Attachment) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A CSV file attachment. Max size is 10 MB.
    * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; + * * @return Whether the csv field is set. */ boolean hasCsv(); /** + * + * *
    * A CSV file attachment. Max size is 10 MB.
    * 
* * .google.cloud.advisorynotifications.v1.Csv csv = 2; + * * @return The csv. */ com.google.cloud.advisorynotifications.v1.Csv getCsv(); /** + * + * *
    * A CSV file attachment. Max size is 10 MB.
    * 
@@ -35,24 +59,29 @@ public interface AttachmentOrBuilder extends com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder(); /** + * + * *
    * The title of the attachment.
    * 
* * string display_name = 1; + * * @return The displayName. */ java.lang.String getDisplayName(); /** + * + * *
    * The title of the attachment.
    * 
* * string display_name = 1; + * * @return The bytes for displayName. */ - com.google.protobuf.ByteString - getDisplayNameBytes(); + com.google.protobuf.ByteString getDisplayNameBytes(); public com.google.cloud.advisorynotifications.v1.Attachment.DataCase getDataCase(); } diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java similarity index 74% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java index 8a440272f7c2..3b58f83def66 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Csv.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * A representation of a CSV file attachment, as a list of column headers and
  * a list of data rows.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.advisorynotifications.v1.Csv}
  */
-public final class Csv extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Csv extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Csv)
     CsvOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Csv.newBuilder() to construct.
   private Csv(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Csv() {
     headers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
     dataRows_ = java.util.Collections.emptyList();
@@ -27,158 +45,183 @@ private Csv() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Csv();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.advisorynotifications.v1.ServiceProto
+        .internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable
+    return com.google.cloud.advisorynotifications.v1.ServiceProto
+        .internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.advisorynotifications.v1.Csv.class, com.google.cloud.advisorynotifications.v1.Csv.Builder.class);
+            com.google.cloud.advisorynotifications.v1.Csv.class,
+            com.google.cloud.advisorynotifications.v1.Csv.Builder.class);
   }
 
-  public interface CsvRowOrBuilder extends
+  public interface CsvRowOrBuilder
+      extends
       // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Csv.CsvRow)
       com.google.protobuf.MessageOrBuilder {
 
     /**
+     *
+     *
      * 
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; + * * @return A list containing the entries. */ - java.util.List - getEntriesList(); + java.util.List getEntriesList(); /** + * + * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; + * * @return The count of entries. */ int getEntriesCount(); /** + * + * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; + * * @param index The index of the element to return. * @return The entries at the given index. */ java.lang.String getEntries(int index); /** + * + * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; + * * @param index The index of the value to return. * @return The bytes of the entries at the given index. */ - com.google.protobuf.ByteString - getEntriesBytes(int index); + com.google.protobuf.ByteString getEntriesBytes(int index); } /** + * + * *
    * A representation of a single data row in a CSV file.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Csv.CsvRow} */ - public static final class CsvRow extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class CsvRow extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Csv.CsvRow) CsvRowOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use CsvRow.newBuilder() to construct. private CsvRow(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private CsvRow() { entries_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CsvRow(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Csv.CsvRow.class, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder.class); + com.google.cloud.advisorynotifications.v1.Csv.CsvRow.class, + com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder.class); } public static final int ENTRIES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList entries_; /** + * + * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; + * * @return A list containing the entries. */ - public com.google.protobuf.ProtocolStringList - getEntriesList() { + public com.google.protobuf.ProtocolStringList getEntriesList() { return entries_; } /** + * + * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; + * * @return The count of entries. */ public int getEntriesCount() { return entries_.size(); } /** + * + * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; + * * @param index The index of the element to return. * @return The entries at the given index. */ @@ -186,21 +229,24 @@ public java.lang.String getEntries(int index) { return entries_.get(index); } /** + * + * *
      * The data entries in a CSV file row, as a string array rather than a
      * single comma-separated string.
      * 
* * repeated string entries = 1; + * * @param index The index of the value to return. * @return The bytes of the entries at the given index. */ - public com.google.protobuf.ByteString - getEntriesBytes(int index) { + public com.google.protobuf.ByteString getEntriesBytes(int index) { return entries_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -212,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 { for (int i = 0; i < entries_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, entries_.getRaw(i)); } @@ -242,15 +287,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.advisorynotifications.v1.Csv.CsvRow)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Csv.CsvRow other = (com.google.cloud.advisorynotifications.v1.Csv.CsvRow) obj; + com.google.cloud.advisorynotifications.v1.Csv.CsvRow other = + (com.google.cloud.advisorynotifications.v1.Csv.CsvRow) obj; - if (!getEntriesList() - .equals(other.getEntriesList())) return false; + if (!getEntriesList().equals(other.getEntriesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -272,87 +317,94 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow 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.advisorynotifications.v1.Csv.CsvRow prototype) { + + public static Builder newBuilder( + com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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 @@ -362,39 +414,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A representation of a single data row in a CSV file.
      * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Csv.CsvRow} */ - 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.advisorynotifications.v1.Csv.CsvRow) com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Csv.CsvRow.class, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder.class); + com.google.cloud.advisorynotifications.v1.Csv.CsvRow.class, + com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Csv.CsvRow.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -405,9 +459,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; } @java.lang.Override @@ -426,14 +480,18 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Csv.CsvRow buildPartial() { - com.google.cloud.advisorynotifications.v1.Csv.CsvRow result = new com.google.cloud.advisorynotifications.v1.Csv.CsvRow(this); + com.google.cloud.advisorynotifications.v1.Csv.CsvRow result = + new com.google.cloud.advisorynotifications.v1.Csv.CsvRow(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.advisorynotifications.v1.Csv.CsvRow result) { + private void buildPartialRepeatedFields( + com.google.cloud.advisorynotifications.v1.Csv.CsvRow result) { if (((bitField0_ & 0x00000001) != 0)) { entries_ = entries_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); @@ -449,38 +507,41 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Csv.CsvRow 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) { + 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.advisorynotifications.v1.Csv.CsvRow) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Csv.CsvRow)other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Csv.CsvRow) other); } else { super.mergeFrom(other); return this; @@ -488,7 +549,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Csv.CsvRow other) { - if (other == com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance()) return this; + if (other == com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance()) + return this; if (!other.entries_.isEmpty()) { if (entries_.isEmpty()) { entries_ = other.entries_; @@ -525,18 +587,20 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - ensureEntriesIsMutable(); - entries_.add(s); - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureEntriesIsMutable(); + entries_.add(s); + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -546,47 +610,58 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; - private com.google.protobuf.LazyStringList entries_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList entries_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureEntriesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entries_ = new com.google.protobuf.LazyStringArrayList(entries_); bitField0_ |= 0x00000001; - } + } } /** + * + * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; + * * @return A list containing the entries. */ - public com.google.protobuf.ProtocolStringList - getEntriesList() { + public com.google.protobuf.ProtocolStringList getEntriesList() { return entries_.getUnmodifiableView(); } /** + * + * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; + * * @return The count of entries. */ public int getEntriesCount() { return entries_.size(); } /** + * + * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; + * * @param index The index of the element to return. * @return The entries at the given index. */ @@ -594,81 +669,95 @@ public java.lang.String getEntries(int index) { return entries_.get(index); } /** + * + * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; + * * @param index The index of the value to return. * @return The bytes of the entries at the given index. */ - public com.google.protobuf.ByteString - getEntriesBytes(int index) { + public com.google.protobuf.ByteString getEntriesBytes(int index) { return entries_.getByteString(index); } /** + * + * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; + * * @param index The index to set the value at. * @param value The entries to set. * @return This builder for chaining. */ - public Builder setEntries( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEntries(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureEntriesIsMutable(); entries_.set(index, value); onChanged(); return this; } /** + * + * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; + * * @param value The entries to add. * @return This builder for chaining. */ - public Builder addEntries( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addEntries(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureEntriesIsMutable(); entries_.add(value); onChanged(); return this; } /** + * + * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; + * * @param values The entries to add. * @return This builder for chaining. */ - public Builder addAllEntries( - java.lang.Iterable values) { + public Builder addAllEntries(java.lang.Iterable values) { ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, entries_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); onChanged(); return this; } /** + * + * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; + * * @return This builder for chaining. */ public Builder clearEntries() { @@ -678,24 +767,29 @@ public Builder clearEntries() { return this; } /** + * + * *
        * The data entries in a CSV file row, as a string array rather than a
        * single comma-separated string.
        * 
* * repeated string entries = 1; + * * @param value The bytes of the entries to add. * @return This builder for chaining. */ - public Builder addEntriesBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addEntriesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureEntriesIsMutable(); entries_.add(value); onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -708,12 +802,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Csv.CsvRow) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Csv.CsvRow) private static final com.google.cloud.advisorynotifications.v1.Csv.CsvRow DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Csv.CsvRow(); } @@ -722,27 +816,28 @@ public static com.google.cloud.advisorynotifications.v1.Csv.CsvRow getDefaultIns return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CsvRow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CsvRow parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -757,41 +852,49 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Csv.CsvRow getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int HEADERS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private com.google.protobuf.LazyStringList headers_; /** + * + * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; + * * @return A list containing the headers. */ - public com.google.protobuf.ProtocolStringList - getHeadersList() { + public com.google.protobuf.ProtocolStringList getHeadersList() { return headers_; } /** + * + * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; + * * @return The count of headers. */ public int getHeadersCount() { return headers_.size(); } /** + * + * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; + * * @param index The index of the element to return. * @return The headers at the given index. */ @@ -799,23 +902,28 @@ public java.lang.String getHeaders(int index) { return headers_.get(index); } /** + * + * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; + * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - public com.google.protobuf.ByteString - getHeadersBytes(int index) { + public com.google.protobuf.ByteString getHeadersBytes(int index) { return headers_.getByteString(index); } public static final int DATA_ROWS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List dataRows_; /** + * + * *
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -828,6 +936,8 @@ public java.util.List getD
     return dataRows_;
   }
   /**
+   *
+   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -836,11 +946,13 @@ public java.util.List getD
    * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
    */
   @java.lang.Override
-  public java.util.List 
+  public java.util.List
       getDataRowsOrBuilderList() {
     return dataRows_;
   }
   /**
+   *
+   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -853,6 +965,8 @@ public int getDataRowsCount() {
     return dataRows_.size();
   }
   /**
+   *
+   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -865,6 +979,8 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow getDataRows(int inde
     return dataRows_.get(index);
   }
   /**
+   *
+   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -879,6 +995,7 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRows
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -890,8 +1007,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 < headers_.size(); i++) {
       com.google.protobuf.GeneratedMessageV3.writeString(output, 1, headers_.getRaw(i));
     }
@@ -916,8 +1032,7 @@ public int getSerializedSize() {
       size += 1 * getHeadersList().size();
     }
     for (int i = 0; i < dataRows_.size(); i++) {
-      size += com.google.protobuf.CodedOutputStream
-        .computeMessageSize(2, dataRows_.get(i));
+      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dataRows_.get(i));
     }
     size += getUnknownFields().getSerializedSize();
     memoizedSize = size;
@@ -927,17 +1042,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.advisorynotifications.v1.Csv)) {
       return super.equals(obj);
     }
-    com.google.cloud.advisorynotifications.v1.Csv other = (com.google.cloud.advisorynotifications.v1.Csv) obj;
+    com.google.cloud.advisorynotifications.v1.Csv other =
+        (com.google.cloud.advisorynotifications.v1.Csv) obj;
 
-    if (!getHeadersList()
-        .equals(other.getHeadersList())) return false;
-    if (!getDataRowsList()
-        .equals(other.getDataRowsList())) return false;
+    if (!getHeadersList().equals(other.getHeadersList())) return false;
+    if (!getDataRowsList().equals(other.getDataRowsList())) return false;
     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
     return true;
   }
@@ -962,97 +1076,104 @@ public int hashCode() {
     return hash;
   }
 
-  public static com.google.cloud.advisorynotifications.v1.Csv parseFrom(
-      java.nio.ByteBuffer data)
+  public static com.google.cloud.advisorynotifications.v1.Csv parseFrom(java.nio.ByteBuffer data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv parseFrom(
       com.google.protobuf.ByteString data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv parseFrom(byte[] data)
       throws com.google.protobuf.InvalidProtocolBufferException {
     return PARSER.parseFrom(data);
   }
+
   public static com.google.cloud.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv parseDelimitedFrom(java.io.InputStream input)
-      throws java.io.IOException {
-    return com.google.protobuf.GeneratedMessageV3
-        .parseDelimitedWithIOException(PARSER, input);
+
+  public static com.google.cloud.advisorynotifications.v1.Csv parseDelimitedFrom(
+      java.io.InputStream input) throws java.io.IOException {
+    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
   }
+
   public static com.google.cloud.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv 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.advisorynotifications.v1.Csv 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 representation of a CSV file attachment, as a list of column headers and
    * a list of data rows.
@@ -1060,33 +1181,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.advisorynotifications.v1.Csv}
    */
-  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.advisorynotifications.v1.Csv)
       com.google.cloud.advisorynotifications.v1.CsvOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.advisorynotifications.v1.ServiceProto
+          .internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable
+      return com.google.cloud.advisorynotifications.v1.ServiceProto
+          .internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.advisorynotifications.v1.Csv.class, com.google.cloud.advisorynotifications.v1.Csv.Builder.class);
+              com.google.cloud.advisorynotifications.v1.Csv.class,
+              com.google.cloud.advisorynotifications.v1.Csv.Builder.class);
     }
 
     // Construct using com.google.cloud.advisorynotifications.v1.Csv.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -1104,9 +1224,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.advisorynotifications.v1.ServiceProto
+          .internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor;
     }
 
     @java.lang.Override
@@ -1125,9 +1245,12 @@ public com.google.cloud.advisorynotifications.v1.Csv build() {
 
     @java.lang.Override
     public com.google.cloud.advisorynotifications.v1.Csv buildPartial() {
-      com.google.cloud.advisorynotifications.v1.Csv result = new com.google.cloud.advisorynotifications.v1.Csv(this);
+      com.google.cloud.advisorynotifications.v1.Csv result =
+          new com.google.cloud.advisorynotifications.v1.Csv(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
@@ -1157,38 +1280,39 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Csv result)
     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.advisorynotifications.v1.Csv) {
-        return mergeFrom((com.google.cloud.advisorynotifications.v1.Csv)other);
+        return mergeFrom((com.google.cloud.advisorynotifications.v1.Csv) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -1225,9 +1349,10 @@ public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Csv other) {
             dataRowsBuilder_ = null;
             dataRows_ = other.dataRows_;
             bitField0_ = (bitField0_ & ~0x00000002);
-            dataRowsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getDataRowsFieldBuilder() : null;
+            dataRowsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getDataRowsFieldBuilder()
+                    : null;
           } else {
             dataRowsBuilder_.addAllMessages(other.dataRows_);
           }
@@ -1259,31 +1384,34 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-              ensureHeadersIsMutable();
-              headers_.add(s);
-              break;
-            } // case 10
-            case 18: {
-              com.google.cloud.advisorynotifications.v1.Csv.CsvRow m =
-                  input.readMessage(
-                      com.google.cloud.advisorynotifications.v1.Csv.CsvRow.parser(),
-                      extensionRegistry);
-              if (dataRowsBuilder_ == null) {
-                ensureDataRowsIsMutable();
-                dataRows_.add(m);
-              } else {
-                dataRowsBuilder_.addMessage(m);
-              }
-              break;
-            } // case 18
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                java.lang.String s = input.readStringRequireUtf8();
+                ensureHeadersIsMutable();
+                headers_.add(s);
+                break;
+              } // case 10
+            case 18:
+              {
+                com.google.cloud.advisorynotifications.v1.Csv.CsvRow m =
+                    input.readMessage(
+                        com.google.cloud.advisorynotifications.v1.Csv.CsvRow.parser(),
+                        extensionRegistry);
+                if (dataRowsBuilder_ == null) {
+                  ensureDataRowsIsMutable();
+                  dataRows_.add(m);
+                } else {
+                  dataRowsBuilder_.addMessage(m);
+                }
+                break;
+              } // case 18
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -1293,44 +1421,55 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
-    private com.google.protobuf.LazyStringList headers_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+    private com.google.protobuf.LazyStringList headers_ =
+        com.google.protobuf.LazyStringArrayList.EMPTY;
+
     private void ensureHeadersIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
         headers_ = new com.google.protobuf.LazyStringArrayList(headers_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
     /**
+     *
+     *
      * 
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; + * * @return A list containing the headers. */ - public com.google.protobuf.ProtocolStringList - getHeadersList() { + public com.google.protobuf.ProtocolStringList getHeadersList() { return headers_.getUnmodifiableView(); } /** + * + * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; + * * @return The count of headers. */ public int getHeadersCount() { return headers_.size(); } /** + * + * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; + * * @param index The index of the element to return. * @return The headers at the given index. */ @@ -1338,76 +1477,90 @@ public java.lang.String getHeaders(int index) { return headers_.get(index); } /** + * + * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; + * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - public com.google.protobuf.ByteString - getHeadersBytes(int index) { + public com.google.protobuf.ByteString getHeadersBytes(int index) { return headers_.getByteString(index); } /** + * + * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; + * * @param index The index to set the value at. * @param value The headers to set. * @return This builder for chaining. */ - public Builder setHeaders( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setHeaders(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureHeadersIsMutable(); headers_.set(index, value); onChanged(); return this; } /** + * + * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; + * * @param value The headers to add. * @return This builder for chaining. */ - public Builder addHeaders( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder addHeaders(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } ensureHeadersIsMutable(); headers_.add(value); onChanged(); return this; } /** + * + * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; + * * @param values The headers to add. * @return This builder for chaining. */ - public Builder addAllHeaders( - java.lang.Iterable values) { + public Builder addAllHeaders(java.lang.Iterable values) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); onChanged(); return this; } /** + * + * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; + * * @return This builder for chaining. */ public Builder clearHeaders() { @@ -1417,17 +1570,21 @@ public Builder clearHeaders() { return this; } /** + * + * *
      * The list of headers for data columns in a CSV file.
      * 
* * repeated string headers = 1; + * * @param value The bytes of the headers to add. * @return This builder for chaining. */ - public Builder addHeadersBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder addHeadersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); ensureHeadersIsMutable(); headers_.add(value); @@ -1436,18 +1593,26 @@ public Builder addHeadersBytes( } private java.util.List dataRows_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureDataRowsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - dataRows_ = new java.util.ArrayList(dataRows_); + dataRows_ = + new java.util.ArrayList( + dataRows_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Csv.CsvRow, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder, com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder> dataRowsBuilder_; + com.google.cloud.advisorynotifications.v1.Csv.CsvRow, + com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder, + com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder> + dataRowsBuilder_; /** + * + * *
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1463,6 +1628,8 @@ public java.util.List getD
       }
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1478,6 +1645,8 @@ public int getDataRowsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1493,6 +1662,8 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow getDataRows(int inde
       }
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1515,6 +1686,8 @@ public Builder setDataRows(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1534,6 +1707,8 @@ public Builder setDataRows(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1555,6 +1730,8 @@ public Builder addDataRows(com.google.cloud.advisorynotifications.v1.Csv.CsvRow
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1577,6 +1754,8 @@ public Builder addDataRows(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1596,6 +1775,8 @@ public Builder addDataRows(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1615,6 +1796,8 @@ public Builder addDataRows(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1626,8 +1809,7 @@ public Builder addAllDataRows(
         java.lang.Iterable values) {
       if (dataRowsBuilder_ == null) {
         ensureDataRowsIsMutable();
-        com.google.protobuf.AbstractMessageLite.Builder.addAll(
-            values, dataRows_);
+        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, dataRows_);
         onChanged();
       } else {
         dataRowsBuilder_.addAllMessages(values);
@@ -1635,6 +1817,8 @@ public Builder addAllDataRows(
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1653,6 +1837,8 @@ public Builder clearDataRows() {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1671,6 +1857,8 @@ public Builder removeDataRows(int index) {
       return this;
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1683,6 +1871,8 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder getDataRowsB
       return getDataRowsFieldBuilder().getBuilder(index);
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1693,11 +1883,14 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder getDataRowsB
     public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRowsOrBuilder(
         int index) {
       if (dataRowsBuilder_ == null) {
-        return dataRows_.get(index);  } else {
+        return dataRows_.get(index);
+      } else {
         return dataRowsBuilder_.getMessageOrBuilder(index);
       }
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1705,8 +1898,8 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRows
      *
      * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
      */
-    public java.util.List 
-         getDataRowsOrBuilderList() {
+    public java.util.List
+        getDataRowsOrBuilderList() {
       if (dataRowsBuilder_ != null) {
         return dataRowsBuilder_.getMessageOrBuilderList();
       } else {
@@ -1714,6 +1907,8 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRows
       }
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1722,10 +1917,12 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRows
      * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
      */
     public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder addDataRowsBuilder() {
-      return getDataRowsFieldBuilder().addBuilder(
-          com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance());
+      return getDataRowsFieldBuilder()
+          .addBuilder(com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1735,10 +1932,13 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder addDataRowsB
      */
     public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder addDataRowsBuilder(
         int index) {
-      return getDataRowsFieldBuilder().addBuilder(
-          index, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance());
+      return getDataRowsFieldBuilder()
+          .addBuilder(
+              index, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.getDefaultInstance());
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1746,27 +1946,30 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder addDataRowsB
      *
      * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
      */
-    public java.util.List 
-         getDataRowsBuilderList() {
+    public java.util.List
+        getDataRowsBuilderList() {
       return getDataRowsFieldBuilder().getBuilderList();
     }
+
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.advisorynotifications.v1.Csv.CsvRow, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder, com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder> 
+            com.google.cloud.advisorynotifications.v1.Csv.CsvRow,
+            com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder,
+            com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder>
         getDataRowsFieldBuilder() {
       if (dataRowsBuilder_ == null) {
-        dataRowsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.advisorynotifications.v1.Csv.CsvRow, com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder, com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder>(
-                dataRows_,
-                ((bitField0_ & 0x00000002) != 0),
-                getParentForChildren(),
-                isClean());
+        dataRowsBuilder_ =
+            new com.google.protobuf.RepeatedFieldBuilderV3<
+                com.google.cloud.advisorynotifications.v1.Csv.CsvRow,
+                com.google.cloud.advisorynotifications.v1.Csv.CsvRow.Builder,
+                com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder>(
+                dataRows_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean());
         dataRows_ = null;
       }
       return dataRowsBuilder_;
     }
+
     @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);
     }
 
@@ -1776,12 +1979,12 @@ public final Builder mergeUnknownFields(
       return super.mergeUnknownFields(unknownFields);
     }
 
-
     // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Csv)
   }
 
   // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Csv)
   private static final com.google.cloud.advisorynotifications.v1.Csv DEFAULT_INSTANCE;
+
   static {
     DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Csv();
   }
@@ -1790,27 +1993,27 @@ public static com.google.cloud.advisorynotifications.v1.Csv getDefaultInstance()
     return DEFAULT_INSTANCE;
   }
 
-  private static final com.google.protobuf.Parser
-      PARSER = new com.google.protobuf.AbstractParser() {
-    @java.lang.Override
-    public Csv parsePartialFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      Builder builder = newBuilder();
-      try {
-        builder.mergeFrom(input, extensionRegistry);
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(builder.buildPartial());
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(e)
-            .setUnfinishedMessage(builder.buildPartial());
-      }
-      return builder.buildPartial();
-    }
-  };
+  private static final com.google.protobuf.Parser PARSER =
+      new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public Csv parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          Builder builder = newBuilder();
+          try {
+            builder.mergeFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            throw e.setUnfinishedMessage(builder.buildPartial());
+          } catch (com.google.protobuf.UninitializedMessageException e) {
+            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
+          } catch (java.io.IOException e) {
+            throw new com.google.protobuf.InvalidProtocolBufferException(e)
+                .setUnfinishedMessage(builder.buildPartial());
+          }
+          return builder.buildPartial();
+        }
+      };
 
   public static com.google.protobuf.Parser parser() {
     return PARSER;
@@ -1825,6 +2028,4 @@ public com.google.protobuf.Parser getParserForType() {
   public com.google.cloud.advisorynotifications.v1.Csv getDefaultInstanceForType() {
     return DEFAULT_INSTANCE;
   }
-
 }
-
diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java
similarity index 74%
rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java
rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java
index 3a2010043cdf..177661850dda 100644
--- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java
+++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/CsvOrBuilder.java
@@ -1,54 +1,82 @@
+/*
+ * 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/advisorynotifications/v1/service.proto
 
 package com.google.cloud.advisorynotifications.v1;
 
-public interface CsvOrBuilder extends
+public interface CsvOrBuilder
+    extends
     // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Csv)
     com.google.protobuf.MessageOrBuilder {
 
   /**
+   *
+   *
    * 
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; + * * @return A list containing the headers. */ - java.util.List - getHeadersList(); + java.util.List getHeadersList(); /** + * + * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; + * * @return The count of headers. */ int getHeadersCount(); /** + * + * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; + * * @param index The index of the element to return. * @return The headers at the given index. */ java.lang.String getHeaders(int index); /** + * + * *
    * The list of headers for data columns in a CSV file.
    * 
* * repeated string headers = 1; + * * @param index The index of the value to return. * @return The bytes of the headers at the given index. */ - com.google.protobuf.ByteString - getHeadersBytes(int index); + com.google.protobuf.ByteString getHeadersBytes(int index); /** + * + * *
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -56,9 +84,10 @@ public interface CsvOrBuilder extends
    *
    * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
    */
-  java.util.List 
-      getDataRowsList();
+  java.util.List getDataRowsList();
   /**
+   *
+   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -68,6 +97,8 @@ public interface CsvOrBuilder extends
    */
   com.google.cloud.advisorynotifications.v1.Csv.CsvRow getDataRows(int index);
   /**
+   *
+   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -77,6 +108,8 @@ public interface CsvOrBuilder extends
    */
   int getDataRowsCount();
   /**
+   *
+   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -84,9 +117,11 @@ public interface CsvOrBuilder extends
    *
    * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
    */
-  java.util.List 
+  java.util.List
       getDataRowsOrBuilderList();
   /**
+   *
+   *
    * 
    * The list of data rows in a CSV file, as string arrays rather than as a
    * single comma-separated string.
@@ -94,6 +129,5 @@ public interface CsvOrBuilder extends
    *
    * repeated .google.cloud.advisorynotifications.v1.Csv.CsvRow data_rows = 2;
    */
-  com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRowsOrBuilder(
-      int index);
+  com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRowsOrBuilder(int index);
 }
diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java
similarity index 66%
rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java
rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java
index d7c4447ee1c8..68c26c3cf17b 100644
--- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.java
+++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequest.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/advisorynotifications/v1/service.proto
 
 package com.google.cloud.advisorynotifications.v1;
 
 /**
+ *
+ *
  * 
  * Request for fetching a notification.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.GetNotificationRequest} */ -public final class GetNotificationRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class GetNotificationRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.GetNotificationRequest) GetNotificationRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use GetNotificationRequest.newBuilder() to construct. private GetNotificationRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private GetNotificationRequest() { name_ = ""; languageCode_ = ""; @@ -26,40 +44,47 @@ private GetNotificationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNotificationRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, com.google.cloud.advisorynotifications.v1.GetNotificationRequest.Builder.class); + com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, + com.google.cloud.advisorynotifications.v1.GetNotificationRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object name_ = ""; /** + * + * *
    * Required. A name of the notification to retrieve.
    * Format:
    * organizations/{organization}/locations/{location}/notifications/{notification}.
    * 
* - * 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 @@ -68,31 +93,33 @@ 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. A name of the notification to retrieve.
    * Format:
    * organizations/{organization}/locations/{location}/notifications/{notification}.
    * 
* - * 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 { @@ -101,9 +128,12 @@ public java.lang.String getName() { } public static final int LANGUAGE_CODE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** + * + * *
    * ISO code for requested localization language. If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -113,6 +143,7 @@ public java.lang.String getName() {
    * 
* * string language_code = 5; + * * @return The languageCode. */ @java.lang.Override @@ -121,14 +152,15 @@ public java.lang.String getLanguageCode() { 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(); languageCode_ = s; return s; } } /** + * + * *
    * ISO code for requested localization language. If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -138,16 +170,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 5; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -156,6 +187,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -167,8 +199,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -198,17 +229,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.advisorynotifications.v1.GetNotificationRequest)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.GetNotificationRequest other = (com.google.cloud.advisorynotifications.v1.GetNotificationRequest) obj; + com.google.cloud.advisorynotifications.v1.GetNotificationRequest other = + (com.google.cloud.advisorynotifications.v1.GetNotificationRequest) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getName().equals(other.getName())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -230,129 +260,136 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest 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.advisorynotifications.v1.GetNotificationRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.advisorynotifications.v1.GetNotificationRequest 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 for fetching a notification.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.GetNotificationRequest} */ - 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.advisorynotifications.v1.GetNotificationRequest) com.google.cloud.advisorynotifications.v1.GetNotificationRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, com.google.cloud.advisorynotifications.v1.GetNotificationRequest.Builder.class); + com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, + com.google.cloud.advisorynotifications.v1.GetNotificationRequest.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.GetNotificationRequest.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -363,13 +400,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.GetNotificationRequest getDefaultInstanceForType() { + public com.google.cloud.advisorynotifications.v1.GetNotificationRequest + getDefaultInstanceForType() { return com.google.cloud.advisorynotifications.v1.GetNotificationRequest.getDefaultInstance(); } @@ -384,13 +422,17 @@ public com.google.cloud.advisorynotifications.v1.GetNotificationRequest build() @java.lang.Override public com.google.cloud.advisorynotifications.v1.GetNotificationRequest buildPartial() { - com.google.cloud.advisorynotifications.v1.GetNotificationRequest result = new com.google.cloud.advisorynotifications.v1.GetNotificationRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.advisorynotifications.v1.GetNotificationRequest result = + new com.google.cloud.advisorynotifications.v1.GetNotificationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.advisorynotifications.v1.GetNotificationRequest result) { + private void buildPartial0( + com.google.cloud.advisorynotifications.v1.GetNotificationRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.name_ = name_; @@ -404,46 +446,50 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.GetNotifica 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.advisorynotifications.v1.GetNotificationRequest) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.GetNotificationRequest)other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.GetNotificationRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.GetNotificationRequest other) { - if (other == com.google.cloud.advisorynotifications.v1.GetNotificationRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.advisorynotifications.v1.GetNotificationRequest other) { + if (other + == com.google.cloud.advisorynotifications.v1.GetNotificationRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; bitField0_ |= 0x00000001; @@ -480,22 +526,25 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 42: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 42: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -505,24 +554,29 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object name_ = ""; /** + * + * *
      * Required. A name of the notification to retrieve.
      * Format:
      * organizations/{organization}/locations/{location}/notifications/{notification}.
      * 
* - * 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; @@ -531,22 +585,25 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. A name of the notification to retrieve.
      * Format:
      * organizations/{organization}/locations/{location}/notifications/{notification}.
      * 
* - * 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 { @@ -554,32 +611,43 @@ public java.lang.String getName() { } } /** + * + * *
      * Required. A name of the notification to retrieve.
      * Format:
      * organizations/{organization}/locations/{location}/notifications/{notification}.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. A name of the notification to retrieve.
      * Format:
      * organizations/{organization}/locations/{location}/notifications/{notification}.
      * 
* - * 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() { @@ -589,19 +657,25 @@ public Builder clearName() { return this; } /** + * + * *
      * Required. A name of the notification to retrieve.
      * Format:
      * organizations/{organization}/locations/{location}/notifications/{notification}.
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -611,6 +685,8 @@ public Builder setNameBytes( private java.lang.Object languageCode_ = ""; /** + * + * *
      * ISO code for requested localization language. If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -620,13 +696,13 @@ public Builder setNameBytes(
      * 
* * string language_code = 5; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; @@ -635,6 +711,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * ISO code for requested localization language. If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -644,15 +722,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -660,6 +737,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * ISO code for requested localization language. If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -669,18 +748,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * ISO code for requested localization language. If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -690,6 +773,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -699,6 +783,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * ISO code for requested localization language. If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -708,21 +794,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000002; 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); } @@ -732,41 +820,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.GetNotificationRequest) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.GetNotificationRequest) - private static final com.google.cloud.advisorynotifications.v1.GetNotificationRequest DEFAULT_INSTANCE; + private static final com.google.cloud.advisorynotifications.v1.GetNotificationRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.GetNotificationRequest(); } - public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest getDefaultInstance() { + public static com.google.cloud.advisorynotifications.v1.GetNotificationRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetNotificationRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetNotificationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -778,9 +868,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.GetNotificationRequest getDefaultInstanceForType() { + public com.google.cloud.advisorynotifications.v1.GetNotificationRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java index 8aa46617d136..8d2d085b0b5e 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/GetNotificationRequestOrBuilder.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface GetNotificationRequestOrBuilder extends +public interface GetNotificationRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.GetNotificationRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. A name of the notification to retrieve.
    * Format:
    * organizations/{organization}/locations/{location}/notifications/{notification}.
    * 
* - * 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.String getName(); /** + * + * *
    * Required. A name of the notification to retrieve.
    * Format:
    * organizations/{organization}/locations/{location}/notifications/{notification}.
    * 
* - * 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. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * ISO code for requested localization language. If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -41,10 +68,13 @@ public interface GetNotificationRequestOrBuilder extends
    * 
* * string language_code = 5; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * ISO code for requested localization language. If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -54,8 +84,8 @@ public interface GetNotificationRequestOrBuilder extends
    * 
* * string language_code = 5; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java similarity index 69% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java index b5d1a9c793f5..f6200c0a2deb 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequest.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * Request for fetching all notifications for a given parent.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.ListNotificationsRequest} */ -public final class ListNotificationsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNotificationsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.ListNotificationsRequest) ListNotificationsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNotificationsRequest.newBuilder() to construct. private ListNotificationsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNotificationsRequest() { parent_ = ""; pageToken_ = ""; @@ -28,39 +46,46 @@ private ListNotificationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.Builder.class); + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object parent_ = ""; /** + * + * *
    * Required. The parent, which owns this collection of notifications.
    * Must be of the form "organizations/{organization}/locations/{location}".
    * 
* - * 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 @@ -69,30 +94,32 @@ 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, which owns this collection of notifications.
    * Must be of the form "organizations/{organization}/locations/{location}".
    * 
* - * 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 { @@ -103,6 +130,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_ = 0; /** + * + * *
    * The maximum number of notifications to return. The service may return
    * fewer than this value. If unspecified or equal to 0, at most 50
@@ -111,6 +140,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -119,9 +149,12 @@ public int getPageSize() { } public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private volatile java.lang.Object pageToken_ = ""; /** + * + * *
    * A page token returned from a previous request.
    * When paginating, all other parameters provided in the request
@@ -129,6 +162,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -137,14 +171,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; } } /** + * + * *
    * A page token returned from a previous request.
    * When paginating, all other parameters provided in the request
@@ -152,16 +187,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @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 { @@ -172,35 +206,49 @@ public java.lang.String getPageToken() { public static final int VIEW_FIELD_NUMBER = 4; private int view_ = 0; /** + * + * *
    * Specifies which parts of the notification resource should be returned
    * in the response.
    * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
    * Specifies which parts of the notification resource should be returned
    * in the response.
    * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; + * * @return The view. */ - @java.lang.Override public com.google.cloud.advisorynotifications.v1.NotificationView getView() { - com.google.cloud.advisorynotifications.v1.NotificationView result = com.google.cloud.advisorynotifications.v1.NotificationView.forNumber(view_); - return result == null ? com.google.cloud.advisorynotifications.v1.NotificationView.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.advisorynotifications.v1.NotificationView getView() { + com.google.cloud.advisorynotifications.v1.NotificationView result = + com.google.cloud.advisorynotifications.v1.NotificationView.forNumber(view_); + return result == null + ? com.google.cloud.advisorynotifications.v1.NotificationView.UNRECOGNIZED + : result; } public static final int LANGUAGE_CODE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") private volatile java.lang.Object languageCode_ = ""; /** + * + * *
    * ISO code for requested localization language.  If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -210,6 +258,7 @@ public java.lang.String getPageToken() {
    * 
* * string language_code = 5; + * * @return The languageCode. */ @java.lang.Override @@ -218,14 +267,15 @@ public java.lang.String getLanguageCode() { 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(); languageCode_ = s; return s; } } /** + * + * *
    * ISO code for requested localization language.  If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -235,16 +285,15 @@ public java.lang.String getLanguageCode() {
    * 
* * string language_code = 5; + * * @return The bytes for languageCode. */ @java.lang.Override - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -253,6 +302,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,8 +314,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -275,7 +324,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } - if (view_ != com.google.cloud.advisorynotifications.v1.NotificationView.NOTIFICATION_VIEW_UNSPECIFIED.getNumber()) { + if (view_ + != com.google.cloud.advisorynotifications.v1.NotificationView.NOTIFICATION_VIEW_UNSPECIFIED + .getNumber()) { output.writeEnum(4, view_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { @@ -294,15 +345,15 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } - if (view_ != com.google.cloud.advisorynotifications.v1.NotificationView.NOTIFICATION_VIEW_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, view_); + if (view_ + != com.google.cloud.advisorynotifications.v1.NotificationView.NOTIFICATION_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, view_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(languageCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, languageCode_); @@ -315,22 +366,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.advisorynotifications.v1.ListNotificationsRequest)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest other = (com.google.cloud.advisorynotifications.v1.ListNotificationsRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest other = + (com.google.cloud.advisorynotifications.v1.ListNotificationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (view_ != other.view_) return false; - if (!getLanguageCode() - .equals(other.getLanguageCode())) return false; + if (!getLanguageCode().equals(other.getLanguageCode())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -358,129 +406,138 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest 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.advisorynotifications.v1.ListNotificationsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest 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 for fetching all notifications for a given parent.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.ListNotificationsRequest} */ - 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.advisorynotifications.v1.ListNotificationsRequest) com.google.cloud.advisorynotifications.v1.ListNotificationsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.Builder.class); + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.Builder.class); } - // Construct using com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.newBuilder() - private Builder() { - - } + // Construct using + // com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.newBuilder() + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -494,14 +551,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest getDefaultInstanceForType() { - return com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.getDefaultInstance(); + public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest + getDefaultInstanceForType() { + return com.google.cloud.advisorynotifications.v1.ListNotificationsRequest + .getDefaultInstance(); } @java.lang.Override @@ -515,13 +574,17 @@ public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest build( @java.lang.Override public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest buildPartial() { - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest result = new com.google.cloud.advisorynotifications.v1.ListNotificationsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest result = + new com.google.cloud.advisorynotifications.v1.ListNotificationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartial0(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest result) { + private void buildPartial0( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { result.parent_ = parent_; @@ -544,46 +607,51 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.ListNotific 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.advisorynotifications.v1.ListNotificationsRequest) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.ListNotificationsRequest)other); + return mergeFrom( + (com.google.cloud.advisorynotifications.v1.ListNotificationsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest other) { - if (other == com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.advisorynotifications.v1.ListNotificationsRequest other) { + if (other + == com.google.cloud.advisorynotifications.v1.ListNotificationsRequest + .getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; bitField0_ |= 0x00000001; @@ -631,37 +699,43 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: { - view_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: { - languageCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + languageCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -671,23 +745,28 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object parent_ = ""; /** + * + * *
      * Required. The parent, which owns this collection of notifications.
      * Must be of the form "organizations/{organization}/locations/{location}".
      * 
* - * 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; @@ -696,21 +775,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of notifications.
      * Must be of the form "organizations/{organization}/locations/{location}".
      * 
* - * 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 { @@ -718,30 +800,41 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. The parent, which owns this collection of notifications.
      * Must be of the form "organizations/{organization}/locations/{location}".
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * Required. The parent, which owns this collection of notifications.
      * Must be of the form "organizations/{organization}/locations/{location}".
      * 
* - * 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() { @@ -751,18 +844,24 @@ public Builder clearParent() { return this; } /** + * + * *
      * Required. The parent, which owns this collection of notifications.
      * Must be of the form "organizations/{organization}/locations/{location}".
      * 
* - * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); parent_ = value; bitField0_ |= 0x00000001; @@ -770,8 +869,10 @@ public Builder setParentBytes( return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of notifications to return. The service may return
      * fewer than this value. If unspecified or equal to 0, at most 50
@@ -780,6 +881,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -787,6 +889,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of notifications to return. The service may return
      * fewer than this value. If unspecified or equal to 0, at most 50
@@ -795,17 +899,20 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The maximum number of notifications to return. The service may return
      * fewer than this value. If unspecified or equal to 0, at most 50
@@ -814,6 +921,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -825,6 +933,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -832,13 +942,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @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; @@ -847,6 +957,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -854,15 +966,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @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 { @@ -870,6 +981,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -877,18 +990,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -896,6 +1013,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -905,6 +1023,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -912,12 +1032,14 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); pageToken_ = value; bitField0_ |= 0x00000004; @@ -927,24 +1049,31 @@ public Builder setPageTokenBytes( private int view_ = 0; /** + * + * *
      * Specifies which parts of the notification resource should be returned
      * in the response.
      * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; + * * @return The enum numeric value on the wire for view. */ - @java.lang.Override public int getViewValue() { + @java.lang.Override + public int getViewValue() { return view_; } /** + * + * *
      * Specifies which parts of the notification resource should be returned
      * in the response.
      * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; + * * @param value The enum numeric value on the wire for view to set. * @return This builder for chaining. */ @@ -955,26 +1084,35 @@ public Builder setViewValue(int value) { return this; } /** + * + * *
      * Specifies which parts of the notification resource should be returned
      * in the response.
      * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; + * * @return The view. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.NotificationView getView() { - com.google.cloud.advisorynotifications.v1.NotificationView result = com.google.cloud.advisorynotifications.v1.NotificationView.forNumber(view_); - return result == null ? com.google.cloud.advisorynotifications.v1.NotificationView.UNRECOGNIZED : result; + com.google.cloud.advisorynotifications.v1.NotificationView result = + com.google.cloud.advisorynotifications.v1.NotificationView.forNumber(view_); + return result == null + ? com.google.cloud.advisorynotifications.v1.NotificationView.UNRECOGNIZED + : result; } /** + * + * *
      * Specifies which parts of the notification resource should be returned
      * in the response.
      * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; + * * @param value The view to set. * @return This builder for chaining. */ @@ -988,12 +1126,15 @@ public Builder setView(com.google.cloud.advisorynotifications.v1.NotificationVie return this; } /** + * + * *
      * Specifies which parts of the notification resource should be returned
      * in the response.
      * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; + * * @return This builder for chaining. */ public Builder clearView() { @@ -1005,6 +1146,8 @@ public Builder clearView() { private java.lang.Object languageCode_ = ""; /** + * + * *
      * ISO code for requested localization language.  If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -1014,13 +1157,13 @@ public Builder clearView() {
      * 
* * string language_code = 5; + * * @return The languageCode. */ public java.lang.String getLanguageCode() { java.lang.Object ref = languageCode_; 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(); languageCode_ = s; return s; @@ -1029,6 +1172,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * ISO code for requested localization language.  If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -1038,15 +1183,14 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5; + * * @return The bytes for languageCode. */ - public com.google.protobuf.ByteString - getLanguageCodeBytes() { + public com.google.protobuf.ByteString getLanguageCodeBytes() { java.lang.Object ref = languageCode_; 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); languageCode_ = b; return b; } else { @@ -1054,6 +1198,8 @@ public java.lang.String getLanguageCode() { } } /** + * + * *
      * ISO code for requested localization language.  If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -1063,18 +1209,22 @@ public java.lang.String getLanguageCode() {
      * 
* * string language_code = 5; + * * @param value The languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCode( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCode(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } languageCode_ = value; bitField0_ |= 0x00000010; onChanged(); return this; } /** + * + * *
      * ISO code for requested localization language.  If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -1084,6 +1234,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1093,6 +1244,8 @@ public Builder clearLanguageCode() { return this; } /** + * + * *
      * ISO code for requested localization language.  If unset, will be
      * interpereted as "en". If the requested language is valid, but not supported
@@ -1102,21 +1255,23 @@ public Builder clearLanguageCode() {
      * 
* * string language_code = 5; + * * @param value The bytes for languageCode to set. * @return This builder for chaining. */ - public Builder setLanguageCodeBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLanguageCodeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); languageCode_ = value; bitField0_ |= 0x00000010; 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); } @@ -1126,41 +1281,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.ListNotificationsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.ListNotificationsRequest) - private static final com.google.cloud.advisorynotifications.v1.ListNotificationsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.advisorynotifications.v1.ListNotificationsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.ListNotificationsRequest(); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest getDefaultInstance() { + public static com.google.cloud.advisorynotifications.v1.ListNotificationsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1172,9 +1329,8 @@ public com.google.protobuf.Parser getParserForType() { } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest getDefaultInstanceForType() { + public com.google.cloud.advisorynotifications.v1.ListNotificationsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java index 8ed2703d43ab..dc437d72a8f7 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface ListNotificationsRequestOrBuilder extends +public interface ListNotificationsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.ListNotificationsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. The parent, which owns this collection of notifications.
    * Must be of the form "organizations/{organization}/locations/{location}".
    * 
* - * 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, which owns this collection of notifications.
    * Must be of the form "organizations/{organization}/locations/{location}".
    * 
* - * 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 maximum number of notifications to return. The service may return
    * fewer than this value. If unspecified or equal to 0, at most 50
@@ -38,11 +65,14 @@ public interface ListNotificationsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token returned from a previous request.
    * When paginating, all other parameters provided in the request
@@ -50,10 +80,13 @@ public interface ListNotificationsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token returned from a previous request.
    * When paginating, all other parameters provided in the request
@@ -61,33 +94,41 @@ public interface ListNotificationsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); /** + * + * *
    * Specifies which parts of the notification resource should be returned
    * in the response.
    * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; + * * @return The enum numeric value on the wire for view. */ int getViewValue(); /** + * + * *
    * Specifies which parts of the notification resource should be returned
    * in the response.
    * 
* * .google.cloud.advisorynotifications.v1.NotificationView view = 4; + * * @return The view. */ com.google.cloud.advisorynotifications.v1.NotificationView getView(); /** + * + * *
    * ISO code for requested localization language.  If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -97,10 +138,13 @@ public interface ListNotificationsRequestOrBuilder extends
    * 
* * string language_code = 5; + * * @return The languageCode. */ java.lang.String getLanguageCode(); /** + * + * *
    * ISO code for requested localization language.  If unset, will be
    * interpereted as "en". If the requested language is valid, but not supported
@@ -110,8 +154,8 @@ public interface ListNotificationsRequestOrBuilder extends
    * 
* * string language_code = 5; + * * @return The bytes for languageCode. */ - com.google.protobuf.ByteString - getLanguageCodeBytes(); + com.google.protobuf.ByteString getLanguageCodeBytes(); } diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java similarity index 71% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java index fc58aaecd455..645fa68c9871 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponse.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * Response of ListNotifications endpoint.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.ListNotificationsResponse} */ -public final class ListNotificationsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListNotificationsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.ListNotificationsResponse) ListNotificationsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListNotificationsResponse.newBuilder() to construct. private ListNotificationsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListNotificationsResponse() { notifications_ = java.util.Collections.emptyList(); nextPageToken_ = ""; @@ -26,33 +44,37 @@ private ListNotificationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.Builder.class); + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.Builder.class); } public static final int NOTIFICATIONS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private java.util.List notifications_; /** + * + * *
    * List of notifications under a given parent.
    * 
@@ -60,10 +82,13 @@ protected java.lang.Object newInstance( * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ @java.lang.Override - public java.util.List getNotificationsList() { + public java.util.List + getNotificationsList() { return notifications_; } /** + * + * *
    * List of notifications under a given parent.
    * 
@@ -71,11 +96,13 @@ public java.util.List ge * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ @java.lang.Override - public java.util.List + public java.util.List getNotificationsOrBuilderList() { return notifications_; } /** + * + * *
    * List of notifications under a given parent.
    * 
@@ -87,6 +114,8 @@ public int getNotificationsCount() { return notifications_.size(); } /** + * + * *
    * List of notifications under a given parent.
    * 
@@ -98,6 +127,8 @@ public com.google.cloud.advisorynotifications.v1.Notification getNotifications(i return notifications_.get(index); } /** + * + * *
    * List of notifications under a given parent.
    * 
@@ -111,15 +142,19 @@ public com.google.cloud.advisorynotifications.v1.NotificationOrBuilder getNotifi } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object nextPageToken_ = ""; /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -128,30 +163,30 @@ 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; } } /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * 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 { @@ -162,11 +197,14 @@ public java.lang.String getNextPageToken() { public static final int TOTAL_SIZE_FIELD_NUMBER = 3; private int totalSize_ = 0; /** + * + * *
    * Estimation of a total number of notifications.
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -175,6 +213,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -186,8 +225,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 < notifications_.size(); i++) { output.writeMessage(1, notifications_.get(i)); } @@ -207,15 +245,13 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < notifications_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, notifications_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, notifications_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, totalSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, totalSize_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -225,19 +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.advisorynotifications.v1.ListNotificationsResponse)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse other = (com.google.cloud.advisorynotifications.v1.ListNotificationsResponse) obj; - - if (!getNotificationsList() - .equals(other.getNotificationsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (getTotalSize() - != other.getTotalSize()) return false; + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse other = + (com.google.cloud.advisorynotifications.v1.ListNotificationsResponse) obj; + + if (!getNotificationsList().equals(other.getNotificationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (getTotalSize() != other.getTotalSize()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -263,129 +297,138 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse 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.advisorynotifications.v1.ListNotificationsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse 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 of ListNotifications endpoint.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.ListNotificationsResponse} */ - 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.advisorynotifications.v1.ListNotificationsResponse) com.google.cloud.advisorynotifications.v1.ListNotificationsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.Builder.class); + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.Builder.class); } - // Construct using com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.newBuilder() - private Builder() { + // Construct using + // com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.newBuilder() + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -403,14 +446,16 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse getDefaultInstanceForType() { - return com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.getDefaultInstance(); + public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse + getDefaultInstanceForType() { + return com.google.cloud.advisorynotifications.v1.ListNotificationsResponse + .getDefaultInstance(); } @java.lang.Override @@ -424,14 +469,18 @@ public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse build @java.lang.Override public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse buildPartial() { - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result = new com.google.cloud.advisorynotifications.v1.ListNotificationsResponse(this); + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result = + new com.google.cloud.advisorynotifications.v1.ListNotificationsResponse(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result) { + private void buildPartialRepeatedFields( + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result) { if (notificationsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { notifications_ = java.util.Collections.unmodifiableList(notifications_); @@ -443,7 +492,8 @@ private void buildPartialRepeatedFields(com.google.cloud.advisorynotifications.v } } - private void buildPartial0(com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result) { + private void buildPartial0( + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000002) != 0)) { result.nextPageToken_ = nextPageToken_; @@ -457,46 +507,51 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.ListNotific 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.advisorynotifications.v1.ListNotificationsResponse) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.ListNotificationsResponse)other); + return mergeFrom( + (com.google.cloud.advisorynotifications.v1.ListNotificationsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.ListNotificationsResponse other) { - if (other == com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.advisorynotifications.v1.ListNotificationsResponse other) { + if (other + == com.google.cloud.advisorynotifications.v1.ListNotificationsResponse + .getDefaultInstance()) return this; if (notificationsBuilder_ == null) { if (!other.notifications_.isEmpty()) { if (notifications_.isEmpty()) { @@ -515,9 +570,10 @@ public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.ListNotificat notificationsBuilder_ = null; notifications_ = other.notifications_; bitField0_ = (bitField0_ & ~0x00000001); - notificationsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getNotificationsFieldBuilder() : null; + notificationsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getNotificationsFieldBuilder() + : null; } else { notificationsBuilder_.addAllMessages(other.notifications_); } @@ -557,35 +613,39 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - com.google.cloud.advisorynotifications.v1.Notification m = - input.readMessage( - com.google.cloud.advisorynotifications.v1.Notification.parser(), - extensionRegistry); - if (notificationsBuilder_ == null) { - ensureNotificationsIsMutable(); - notifications_.add(m); - } else { - notificationsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + com.google.cloud.advisorynotifications.v1.Notification m = + input.readMessage( + com.google.cloud.advisorynotifications.v1.Notification.parser(), + extensionRegistry); + if (notificationsBuilder_ == null) { + ensureNotificationsIsMutable(); + notifications_.add(m); + } else { + notificationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + totalSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -595,28 +655,38 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.util.List notifications_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureNotificationsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - notifications_ = new java.util.ArrayList(notifications_); + notifications_ = + new java.util.ArrayList( + notifications_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Notification, com.google.cloud.advisorynotifications.v1.Notification.Builder, com.google.cloud.advisorynotifications.v1.NotificationOrBuilder> notificationsBuilder_; + com.google.cloud.advisorynotifications.v1.Notification, + com.google.cloud.advisorynotifications.v1.Notification.Builder, + com.google.cloud.advisorynotifications.v1.NotificationOrBuilder> + notificationsBuilder_; /** + * + * *
      * List of notifications under a given parent.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - public java.util.List getNotificationsList() { + public java.util.List + getNotificationsList() { if (notificationsBuilder_ == null) { return java.util.Collections.unmodifiableList(notifications_); } else { @@ -624,6 +694,8 @@ public java.util.List ge } } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -638,6 +710,8 @@ public int getNotificationsCount() { } } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -652,6 +726,8 @@ public com.google.cloud.advisorynotifications.v1.Notification getNotifications(i } } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -673,6 +749,8 @@ public Builder setNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -691,6 +769,8 @@ public Builder setNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -711,6 +791,8 @@ public Builder addNotifications(com.google.cloud.advisorynotifications.v1.Notifi return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -732,6 +814,8 @@ public Builder addNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -750,6 +834,8 @@ public Builder addNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -768,6 +854,8 @@ public Builder addNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -775,11 +863,11 @@ public Builder addNotifications( * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ public Builder addAllNotifications( - java.lang.Iterable values) { + java.lang.Iterable + values) { if (notificationsBuilder_ == null) { ensureNotificationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, notifications_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, notifications_); onChanged(); } else { notificationsBuilder_.addAllMessages(values); @@ -787,6 +875,8 @@ public Builder addAllNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -804,6 +894,8 @@ public Builder clearNotifications() { return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -821,6 +913,8 @@ public Builder removeNotifications(int index) { return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -832,28 +926,33 @@ public com.google.cloud.advisorynotifications.v1.Notification.Builder getNotific return getNotificationsFieldBuilder().getBuilder(index); } /** + * + * *
      * List of notifications under a given parent.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - public com.google.cloud.advisorynotifications.v1.NotificationOrBuilder getNotificationsOrBuilder( - int index) { + public com.google.cloud.advisorynotifications.v1.NotificationOrBuilder + getNotificationsOrBuilder(int index) { if (notificationsBuilder_ == null) { - return notifications_.get(index); } else { + return notifications_.get(index); + } else { return notificationsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * List of notifications under a given parent.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - public java.util.List - getNotificationsOrBuilderList() { + public java.util.List + getNotificationsOrBuilderList() { if (notificationsBuilder_ != null) { return notificationsBuilder_.getMessageOrBuilderList(); } else { @@ -861,17 +960,22 @@ public com.google.cloud.advisorynotifications.v1.NotificationOrBuilder getNotifi } } /** + * + * *
      * List of notifications under a given parent.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - public com.google.cloud.advisorynotifications.v1.Notification.Builder addNotificationsBuilder() { - return getNotificationsFieldBuilder().addBuilder( - com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance()); + public com.google.cloud.advisorynotifications.v1.Notification.Builder + addNotificationsBuilder() { + return getNotificationsFieldBuilder() + .addBuilder(com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance()); } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -880,26 +984,35 @@ public com.google.cloud.advisorynotifications.v1.Notification.Builder addNotific */ public com.google.cloud.advisorynotifications.v1.Notification.Builder addNotificationsBuilder( int index) { - return getNotificationsFieldBuilder().addBuilder( - index, com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance()); + return getNotificationsFieldBuilder() + .addBuilder( + index, com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance()); } /** + * + * *
      * List of notifications under a given parent.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - public java.util.List - getNotificationsBuilderList() { + public java.util.List + getNotificationsBuilderList() { return getNotificationsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Notification, com.google.cloud.advisorynotifications.v1.Notification.Builder, com.google.cloud.advisorynotifications.v1.NotificationOrBuilder> + com.google.cloud.advisorynotifications.v1.Notification, + com.google.cloud.advisorynotifications.v1.Notification.Builder, + com.google.cloud.advisorynotifications.v1.NotificationOrBuilder> getNotificationsFieldBuilder() { if (notificationsBuilder_ == null) { - notificationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Notification, com.google.cloud.advisorynotifications.v1.Notification.Builder, com.google.cloud.advisorynotifications.v1.NotificationOrBuilder>( + notificationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Notification, + com.google.cloud.advisorynotifications.v1.Notification.Builder, + com.google.cloud.advisorynotifications.v1.NotificationOrBuilder>( notifications_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -911,19 +1024,21 @@ public com.google.cloud.advisorynotifications.v1.Notification.Builder addNotific private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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; @@ -932,21 +1047,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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 { @@ -954,30 +1070,37 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } nextPageToken_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { @@ -987,18 +1110,22 @@ public Builder clearNextPageToken() { return this; } /** + * + * *
      * A token, which can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * 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) { - if (value == null) { throw new NullPointerException(); } + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); nextPageToken_ = value; bitField0_ |= 0x00000002; @@ -1006,13 +1133,16 @@ public Builder setNextPageTokenBytes( return this; } - private int totalSize_ ; + private int totalSize_; /** + * + * *
      * Estimation of a total number of notifications.
      * 
* * int32 total_size = 3; + * * @return The totalSize. */ @java.lang.Override @@ -1020,27 +1150,33 @@ public int getTotalSize() { return totalSize_; } /** + * + * *
      * Estimation of a total number of notifications.
      * 
* * int32 total_size = 3; + * * @param value The totalSize to set. * @return This builder for chaining. */ public Builder setTotalSize(int value) { - + totalSize_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } /** + * + * *
      * Estimation of a total number of notifications.
      * 
* * int32 total_size = 3; + * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1049,9 +1185,9 @@ public Builder clearTotalSize() { 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); } @@ -1061,41 +1197,43 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.ListNotificationsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.ListNotificationsResponse) - private static final com.google.cloud.advisorynotifications.v1.ListNotificationsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.advisorynotifications.v1.ListNotificationsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.ListNotificationsResponse(); } - public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse getDefaultInstance() { + public static com.google.cloud.advisorynotifications.v1.ListNotificationsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListNotificationsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListNotificationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1107,9 +1245,8 @@ public com.google.protobuf.Parser getParserForType() } @java.lang.Override - public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse getDefaultInstanceForType() { + public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java similarity index 73% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java index f90c50d49e26..54ad6eb280a1 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ListNotificationsResponseOrBuilder.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface ListNotificationsResponseOrBuilder extends +public interface ListNotificationsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.ListNotificationsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * List of notifications under a given parent.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - java.util.List - getNotificationsList(); + java.util.List getNotificationsList(); /** + * + * *
    * List of notifications under a given parent.
    * 
@@ -25,6 +44,8 @@ public interface ListNotificationsResponseOrBuilder extends */ com.google.cloud.advisorynotifications.v1.Notification getNotifications(int index); /** + * + * *
    * List of notifications under a given parent.
    * 
@@ -33,15 +54,19 @@ public interface ListNotificationsResponseOrBuilder extends */ int getNotificationsCount(); /** + * + * *
    * List of notifications under a given parent.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Notification notifications = 1; */ - java.util.List + java.util.List getNotificationsOrBuilderList(); /** + * + * *
    * List of notifications under a given parent.
    * 
@@ -52,33 +77,41 @@ com.google.cloud.advisorynotifications.v1.NotificationOrBuilder getNotifications int index); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token, which can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); /** + * + * *
    * Estimation of a total number of notifications.
    * 
* * int32 total_size = 3; + * * @return The totalSize. */ int getTotalSize(); diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java similarity index 72% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java index 70e3fed12540..5eea07968feb 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocalizationState.java @@ -1,18 +1,36 @@ +/* + * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * Status of localized text.
  * 
* * Protobuf enum {@code google.cloud.advisorynotifications.v1.LocalizationState} */ -public enum LocalizationState - implements com.google.protobuf.ProtocolMessageEnum { +public enum LocalizationState implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Not used.
    * 
@@ -21,6 +39,8 @@ public enum LocalizationState */ LOCALIZATION_STATE_UNSPECIFIED(0), /** + * + * *
    * Localization is not applicable for requested language. This can happen
    * when:
@@ -34,6 +54,8 @@ public enum LocalizationState
    */
   LOCALIZATION_STATE_NOT_APPLICABLE(1),
   /**
+   *
+   *
    * 
    * Localization for requested language is in progress, and not ready yet.
    * 
@@ -42,6 +64,8 @@ public enum LocalizationState */ LOCALIZATION_STATE_PENDING(2), /** + * + * *
    * Localization for requested language is completed.
    * 
@@ -53,6 +77,8 @@ public enum LocalizationState ; /** + * + * *
    * Not used.
    * 
@@ -61,6 +87,8 @@ public enum LocalizationState */ public static final int LOCALIZATION_STATE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Localization is not applicable for requested language. This can happen
    * when:
@@ -74,6 +102,8 @@ public enum LocalizationState
    */
   public static final int LOCALIZATION_STATE_NOT_APPLICABLE_VALUE = 1;
   /**
+   *
+   *
    * 
    * Localization for requested language is in progress, and not ready yet.
    * 
@@ -82,6 +112,8 @@ public enum LocalizationState */ public static final int LOCALIZATION_STATE_PENDING_VALUE = 2; /** + * + * *
    * Localization for requested language is completed.
    * 
@@ -90,7 +122,6 @@ public enum LocalizationState */ public static final int LOCALIZATION_STATE_COMPLETED_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -115,41 +146,47 @@ public static LocalizationState valueOf(int value) { */ public static LocalizationState forNumber(int value) { switch (value) { - case 0: return LOCALIZATION_STATE_UNSPECIFIED; - case 1: return LOCALIZATION_STATE_NOT_APPLICABLE; - case 2: return LOCALIZATION_STATE_PENDING; - case 3: return LOCALIZATION_STATE_COMPLETED; - default: return null; + case 0: + return LOCALIZATION_STATE_UNSPECIFIED; + case 1: + return LOCALIZATION_STATE_NOT_APPLICABLE; + case 2: + return LOCALIZATION_STATE_PENDING; + case 3: + return LOCALIZATION_STATE_COMPLETED; + 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< - LocalizationState> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public LocalizationState findValueByNumber(int number) { - return LocalizationState.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 LocalizationState findValueByNumber(int number) { + return LocalizationState.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() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor().getEnumTypes().get(1); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor() + .getEnumTypes() + .get(1); } private static final LocalizationState[] VALUES = values(); @@ -157,8 +194,7 @@ public LocalizationState findValueByNumber(int number) { public static LocalizationState 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; @@ -174,4 +210,3 @@ private LocalizationState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.advisorynotifications.v1.LocalizationState) } - diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/LocationName.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java similarity index 72% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java index 4b5e2be7d07e..06e69a8ccb07 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Message.java @@ -1,76 +1,104 @@ +/* + * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * A message which contains notification details.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Message} */ -public final class Message extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Message extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Message) MessageOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Message.newBuilder() to construct. private Message(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Message() { attachments_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Message(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Message.class, com.google.cloud.advisorynotifications.v1.Message.Builder.class); + com.google.cloud.advisorynotifications.v1.Message.class, + com.google.cloud.advisorynotifications.v1.Message.Builder.class); } - public interface BodyOrBuilder extends + public interface BodyOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Message.Body) com.google.protobuf.MessageOrBuilder { /** + * + * *
      * The text content of the message body.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return Whether the text field is set. */ boolean hasText(); /** + * + * *
      * The text content of the message body.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return The text. */ com.google.cloud.advisorynotifications.v1.Text getText(); /** + * + * *
      * The text content of the message body.
      * 
@@ -80,57 +108,63 @@ public interface BodyOrBuilder extends com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder(); } /** + * + * *
    * A message body containing text.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Message.Body} */ - public static final class Body extends - com.google.protobuf.GeneratedMessageV3 implements + public static final class Body extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Message.Body) BodyOrBuilder { - private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Body.newBuilder() to construct. private Body(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Body() { - } + + private Body() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Body(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Message.Body.class, com.google.cloud.advisorynotifications.v1.Message.Body.Builder.class); + com.google.cloud.advisorynotifications.v1.Message.Body.class, + com.google.cloud.advisorynotifications.v1.Message.Body.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; private com.google.cloud.advisorynotifications.v1.Text text_; /** + * + * *
      * The text content of the message body.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return Whether the text field is set. */ @java.lang.Override @@ -138,18 +172,25 @@ public boolean hasText() { return text_ != null; } /** + * + * *
      * The text content of the message body.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return The text. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Text getText() { - return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; + return text_ == null + ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() + : text_; } /** + * + * *
      * The text content of the message body.
      * 
@@ -158,10 +199,13 @@ public com.google.cloud.advisorynotifications.v1.Text getText() { */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder() { - return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; + return text_ == null + ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() + : text_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -173,8 +217,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 (text_ != null) { output.writeMessage(1, getText()); } @@ -188,8 +231,7 @@ public int getSerializedSize() { size = 0; if (text_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getText()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getText()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -199,17 +241,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.advisorynotifications.v1.Message.Body)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Message.Body other = (com.google.cloud.advisorynotifications.v1.Message.Body) obj; + com.google.cloud.advisorynotifications.v1.Message.Body other = + (com.google.cloud.advisorynotifications.v1.Message.Body) obj; if (hasText() != other.hasText()) return false; if (hasText()) { - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -232,87 +274,94 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Message.Body parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Message.Body parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body 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.advisorynotifications.v1.Message.Body prototype) { + + public static Builder newBuilder( + com.google.cloud.advisorynotifications.v1.Message.Body 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 @@ -322,39 +371,41 @@ protected Builder newBuilderForType( return builder; } /** + * + * *
      * A message body containing text.
      * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Message.Body} */ - 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.advisorynotifications.v1.Message.Body) com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Message.Body.class, com.google.cloud.advisorynotifications.v1.Message.Body.Builder.class); + com.google.cloud.advisorynotifications.v1.Message.Body.class, + com.google.cloud.advisorynotifications.v1.Message.Body.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Message.Body.newBuilder() - private Builder() { + private Builder() {} - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -368,9 +419,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; } @java.lang.Override @@ -389,8 +440,11 @@ public com.google.cloud.advisorynotifications.v1.Message.Body build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Message.Body buildPartial() { - com.google.cloud.advisorynotifications.v1.Message.Body result = new com.google.cloud.advisorynotifications.v1.Message.Body(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.advisorynotifications.v1.Message.Body result = + new com.google.cloud.advisorynotifications.v1.Message.Body(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -398,9 +452,7 @@ public com.google.cloud.advisorynotifications.v1.Message.Body buildPartial() { private void buildPartial0(com.google.cloud.advisorynotifications.v1.Message.Body result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.text_ = textBuilder_ == null - ? text_ - : textBuilder_.build(); + result.text_ = textBuilder_ == null ? text_ : textBuilder_.build(); } } @@ -408,38 +460,41 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Message.Bod 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) { + 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.advisorynotifications.v1.Message.Body) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Message.Body)other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Message.Body) other); } else { super.mergeFrom(other); return this; @@ -447,7 +502,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Message.Body other) { - if (other == com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()) return this; + if (other == com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()) + return this; if (other.hasText()) { mergeText(other.getText()); } @@ -477,19 +533,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTextFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getTextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -499,38 +555,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.advisorynotifications.v1.Text text_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder> textBuilder_; + com.google.cloud.advisorynotifications.v1.Text, + com.google.cloud.advisorynotifications.v1.Text.Builder, + com.google.cloud.advisorynotifications.v1.TextOrBuilder> + textBuilder_; /** + * + * *
        * The text content of the message body.
        * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return Whether the text field is set. */ public boolean hasText() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
        * The text content of the message body.
        * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return The text. */ public com.google.cloud.advisorynotifications.v1.Text getText() { if (textBuilder_ == null) { - return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; + return text_ == null + ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() + : text_; } else { return textBuilder_.getMessage(); } } /** + * + * *
        * The text content of the message body.
        * 
@@ -551,6 +621,8 @@ public Builder setText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** + * + * *
        * The text content of the message body.
        * 
@@ -569,6 +641,8 @@ public Builder setText( return this; } /** + * + * *
        * The text content of the message body.
        * 
@@ -577,9 +651,9 @@ public Builder setText( */ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { if (textBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - text_ != null && - text_ != com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && text_ != null + && text_ != com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()) { getTextBuilder().mergeFrom(value); } else { text_ = value; @@ -592,6 +666,8 @@ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** + * + * *
        * The text content of the message body.
        * 
@@ -609,6 +685,8 @@ public Builder clearText() { return this; } /** + * + * *
        * The text content of the message body.
        * 
@@ -621,6 +699,8 @@ public com.google.cloud.advisorynotifications.v1.Text.Builder getTextBuilder() { return getTextFieldBuilder().getBuilder(); } /** + * + * *
        * The text content of the message body.
        * 
@@ -631,11 +711,14 @@ public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder( if (textBuilder_ != null) { return textBuilder_.getMessageOrBuilder(); } else { - return text_ == null ? - com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; + return text_ == null + ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() + : text_; } } /** + * + * *
        * The text content of the message body.
        * 
@@ -643,18 +726,22 @@ public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder( * .google.cloud.advisorynotifications.v1.Text text = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder> + com.google.cloud.advisorynotifications.v1.Text, + com.google.cloud.advisorynotifications.v1.Text.Builder, + com.google.cloud.advisorynotifications.v1.TextOrBuilder> getTextFieldBuilder() { if (textBuilder_ == null) { - textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder>( - getText(), - getParentForChildren(), - isClean()); + textBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Text, + com.google.cloud.advisorynotifications.v1.Text.Builder, + com.google.cloud.advisorynotifications.v1.TextOrBuilder>( + getText(), getParentForChildren(), isClean()); text_ = null; } return textBuilder_; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -667,12 +754,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Message.Body) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Message.Body) private static final com.google.cloud.advisorynotifications.v1.Message.Body DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Message.Body(); } @@ -681,27 +768,28 @@ public static com.google.cloud.advisorynotifications.v1.Message.Body getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Body parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Body parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -716,17 +804,19 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Message.Body getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } public static final int BODY_FIELD_NUMBER = 1; private com.google.cloud.advisorynotifications.v1.Message.Body body_; /** + * + * *
    * The message content.
    * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; + * * @return Whether the body field is set. */ @java.lang.Override @@ -734,18 +824,25 @@ public boolean hasBody() { return body_ != null; } /** + * + * *
    * The message content.
    * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; + * * @return The body. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Message.Body getBody() { - return body_ == null ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() : body_; + return body_ == null + ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() + : body_; } /** + * + * *
    * The message content.
    * 
@@ -754,13 +851,18 @@ public com.google.cloud.advisorynotifications.v1.Message.Body getBody() { */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder getBodyOrBuilder() { - return body_ == null ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() : body_; + return body_ == null + ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() + : body_; } public static final int ATTACHMENTS_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private java.util.List attachments_; /** + * + * *
    * The attachments to download.
    * 
@@ -772,6 +874,8 @@ public java.util.List getA return attachments_; } /** + * + * *
    * The attachments to download.
    * 
@@ -779,11 +883,13 @@ public java.util.List getA * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ @java.lang.Override - public java.util.List + public java.util.List getAttachmentsOrBuilderList() { return attachments_; } /** + * + * *
    * The attachments to download.
    * 
@@ -795,6 +901,8 @@ public int getAttachmentsCount() { return attachments_.size(); } /** + * + * *
    * The attachments to download.
    * 
@@ -806,6 +914,8 @@ public com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int i return attachments_.get(index); } /** + * + * *
    * The attachments to download.
    * 
@@ -821,11 +931,14 @@ public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachme public static final int CREATE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * The Message creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -833,11 +946,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The Message creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ @java.lang.Override @@ -845,6 +961,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The Message creation timestamp.
    * 
@@ -859,11 +977,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int LOCALIZATION_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp localizationTime_; /** + * + * *
    * Time when Message was localized
    * 
* * .google.protobuf.Timestamp localization_time = 4; + * * @return Whether the localizationTime field is set. */ @java.lang.Override @@ -871,18 +992,25 @@ public boolean hasLocalizationTime() { return localizationTime_ != null; } /** + * + * *
    * Time when Message was localized
    * 
* * .google.protobuf.Timestamp localization_time = 4; + * * @return The localizationTime. */ @java.lang.Override public com.google.protobuf.Timestamp getLocalizationTime() { - return localizationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : localizationTime_; + return localizationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : localizationTime_; } /** + * + * *
    * Time when Message was localized
    * 
@@ -891,10 +1019,13 @@ public com.google.protobuf.Timestamp getLocalizationTime() { */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getLocalizationTimeOrBuilder() { - return localizationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : localizationTime_; + return localizationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : localizationTime_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -906,8 +1037,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 (body_ != null) { output.writeMessage(1, getBody()); } @@ -930,20 +1060,16 @@ public int getSerializedSize() { size = 0; if (body_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getBody()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBody()); } for (int i = 0; i < attachments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, attachments_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, attachments_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } if (localizationTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getLocalizationTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLocalizationTime()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -953,29 +1079,26 @@ 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.advisorynotifications.v1.Message)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Message other = (com.google.cloud.advisorynotifications.v1.Message) obj; + com.google.cloud.advisorynotifications.v1.Message other = + (com.google.cloud.advisorynotifications.v1.Message) obj; if (hasBody() != other.hasBody()) return false; if (hasBody()) { - if (!getBody() - .equals(other.getBody())) return false; + if (!getBody().equals(other.getBody())) return false; } - if (!getAttachmentsList() - .equals(other.getAttachmentsList())) return false; + if (!getAttachmentsList().equals(other.getAttachmentsList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (hasLocalizationTime() != other.hasLocalizationTime()) return false; if (hasLocalizationTime()) { - if (!getLocalizationTime() - .equals(other.getLocalizationTime())) return false; + if (!getLocalizationTime().equals(other.getLocalizationTime())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -1010,129 +1133,135 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Message parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Message parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message 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.advisorynotifications.v1.Message 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 message which contains notification details.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Message} */ - 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.advisorynotifications.v1.Message) com.google.cloud.advisorynotifications.v1.MessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Message.class, com.google.cloud.advisorynotifications.v1.Message.Builder.class); + com.google.cloud.advisorynotifications.v1.Message.class, + com.google.cloud.advisorynotifications.v1.Message.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Message.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -1163,9 +1292,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; } @java.lang.Override @@ -1184,14 +1313,18 @@ public com.google.cloud.advisorynotifications.v1.Message build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Message buildPartial() { - com.google.cloud.advisorynotifications.v1.Message result = new com.google.cloud.advisorynotifications.v1.Message(this); + com.google.cloud.advisorynotifications.v1.Message result = + new com.google.cloud.advisorynotifications.v1.Message(this); buildPartialRepeatedFields(result); - if (bitField0_ != 0) { buildPartial0(result); } + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } - private void buildPartialRepeatedFields(com.google.cloud.advisorynotifications.v1.Message result) { + private void buildPartialRepeatedFields( + com.google.cloud.advisorynotifications.v1.Message result) { if (attachmentsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { attachments_ = java.util.Collections.unmodifiableList(attachments_); @@ -1206,19 +1339,14 @@ private void buildPartialRepeatedFields(com.google.cloud.advisorynotifications.v private void buildPartial0(com.google.cloud.advisorynotifications.v1.Message result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.body_ = bodyBuilder_ == null - ? body_ - : bodyBuilder_.build(); + result.body_ = bodyBuilder_ == null ? body_ : bodyBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { - result.createTime_ = createTimeBuilder_ == null - ? createTime_ - : createTimeBuilder_.build(); + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { - result.localizationTime_ = localizationTimeBuilder_ == null - ? localizationTime_ - : localizationTimeBuilder_.build(); + result.localizationTime_ = + localizationTimeBuilder_ == null ? localizationTime_ : localizationTimeBuilder_.build(); } } @@ -1226,38 +1354,39 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Message res 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.advisorynotifications.v1.Message) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Message)other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Message) other); } else { super.mergeFrom(other); return this; @@ -1265,7 +1394,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Message other) { - if (other == com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()) return this; + if (other == com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()) + return this; if (other.hasBody()) { mergeBody(other.getBody()); } @@ -1287,9 +1417,10 @@ public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Message other attachmentsBuilder_ = null; attachments_ = other.attachments_; bitField0_ = (bitField0_ & ~0x00000002); - attachmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAttachmentsFieldBuilder() : null; + attachmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAttachmentsFieldBuilder() + : null; } else { attachmentsBuilder_.addAllMessages(other.attachments_); } @@ -1327,46 +1458,46 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getBodyFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - com.google.cloud.advisorynotifications.v1.Attachment m = - input.readMessage( - com.google.cloud.advisorynotifications.v1.Attachment.parser(), - extensionRegistry); - if (attachmentsBuilder_ == null) { - ensureAttachmentsIsMutable(); - attachments_.add(m); - } else { - attachmentsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: { - input.readMessage( - getCreateTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: { - input.readMessage( - getLocalizationTimeFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getBodyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.advisorynotifications.v1.Attachment m = + input.readMessage( + com.google.cloud.advisorynotifications.v1.Attachment.parser(), + extensionRegistry); + if (attachmentsBuilder_ == null) { + ensureAttachmentsIsMutable(); + attachments_.add(m); + } else { + attachmentsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + getLocalizationTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -1376,38 +1507,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.advisorynotifications.v1.Message.Body body_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message.Body, com.google.cloud.advisorynotifications.v1.Message.Body.Builder, com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder> bodyBuilder_; + com.google.cloud.advisorynotifications.v1.Message.Body, + com.google.cloud.advisorynotifications.v1.Message.Body.Builder, + com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder> + bodyBuilder_; /** + * + * *
      * The message content.
      * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; + * * @return Whether the body field is set. */ public boolean hasBody() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The message content.
      * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; + * * @return The body. */ public com.google.cloud.advisorynotifications.v1.Message.Body getBody() { if (bodyBuilder_ == null) { - return body_ == null ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() : body_; + return body_ == null + ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() + : body_; } else { return bodyBuilder_.getMessage(); } } /** + * + * *
      * The message content.
      * 
@@ -1428,6 +1573,8 @@ public Builder setBody(com.google.cloud.advisorynotifications.v1.Message.Body va return this; } /** + * + * *
      * The message content.
      * 
@@ -1446,6 +1593,8 @@ public Builder setBody( return this; } /** + * + * *
      * The message content.
      * 
@@ -1454,9 +1603,10 @@ public Builder setBody( */ public Builder mergeBody(com.google.cloud.advisorynotifications.v1.Message.Body value) { if (bodyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - body_ != null && - body_ != com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && body_ != null + && body_ + != com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance()) { getBodyBuilder().mergeFrom(value); } else { body_ = value; @@ -1469,6 +1619,8 @@ public Builder mergeBody(com.google.cloud.advisorynotifications.v1.Message.Body return this; } /** + * + * *
      * The message content.
      * 
@@ -1486,6 +1638,8 @@ public Builder clearBody() { return this; } /** + * + * *
      * The message content.
      * 
@@ -1498,6 +1652,8 @@ public com.google.cloud.advisorynotifications.v1.Message.Body.Builder getBodyBui return getBodyFieldBuilder().getBuilder(); } /** + * + * *
      * The message content.
      * 
@@ -1508,11 +1664,14 @@ public com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder getBodyOr if (bodyBuilder_ != null) { return bodyBuilder_.getMessageOrBuilder(); } else { - return body_ == null ? - com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() : body_; + return body_ == null + ? com.google.cloud.advisorynotifications.v1.Message.Body.getDefaultInstance() + : body_; } } /** + * + * *
      * The message content.
      * 
@@ -1520,39 +1679,51 @@ public com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder getBodyOr * .google.cloud.advisorynotifications.v1.Message.Body body = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message.Body, com.google.cloud.advisorynotifications.v1.Message.Body.Builder, com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder> + com.google.cloud.advisorynotifications.v1.Message.Body, + com.google.cloud.advisorynotifications.v1.Message.Body.Builder, + com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder> getBodyFieldBuilder() { if (bodyBuilder_ == null) { - bodyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message.Body, com.google.cloud.advisorynotifications.v1.Message.Body.Builder, com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder>( - getBody(), - getParentForChildren(), - isClean()); + bodyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Message.Body, + com.google.cloud.advisorynotifications.v1.Message.Body.Builder, + com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder>( + getBody(), getParentForChildren(), isClean()); body_ = null; } return bodyBuilder_; } private java.util.List attachments_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureAttachmentsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { - attachments_ = new java.util.ArrayList(attachments_); + attachments_ = + new java.util.ArrayList( + attachments_); bitField0_ |= 0x00000002; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Attachment, com.google.cloud.advisorynotifications.v1.Attachment.Builder, com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder> attachmentsBuilder_; + com.google.cloud.advisorynotifications.v1.Attachment, + com.google.cloud.advisorynotifications.v1.Attachment.Builder, + com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder> + attachmentsBuilder_; /** + * + * *
      * The attachments to download.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - public java.util.List getAttachmentsList() { + public java.util.List + getAttachmentsList() { if (attachmentsBuilder_ == null) { return java.util.Collections.unmodifiableList(attachments_); } else { @@ -1560,6 +1731,8 @@ public java.util.List getA } } /** + * + * *
      * The attachments to download.
      * 
@@ -1574,6 +1747,8 @@ public int getAttachmentsCount() { } } /** + * + * *
      * The attachments to download.
      * 
@@ -1588,6 +1763,8 @@ public com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int i } } /** + * + * *
      * The attachments to download.
      * 
@@ -1609,6 +1786,8 @@ public Builder setAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1627,6 +1806,8 @@ public Builder setAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1647,6 +1828,8 @@ public Builder addAttachments(com.google.cloud.advisorynotifications.v1.Attachme return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1668,6 +1851,8 @@ public Builder addAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1686,6 +1871,8 @@ public Builder addAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1704,6 +1891,8 @@ public Builder addAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1714,8 +1903,7 @@ public Builder addAllAttachments( java.lang.Iterable values) { if (attachmentsBuilder_ == null) { ensureAttachmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, attachments_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachments_); onChanged(); } else { attachmentsBuilder_.addAllMessages(values); @@ -1723,6 +1911,8 @@ public Builder addAllAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1740,6 +1930,8 @@ public Builder clearAttachments() { return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1757,6 +1949,8 @@ public Builder removeAttachments(int index) { return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1768,6 +1962,8 @@ public com.google.cloud.advisorynotifications.v1.Attachment.Builder getAttachmen return getAttachmentsFieldBuilder().getBuilder(index); } /** + * + * *
      * The attachments to download.
      * 
@@ -1777,19 +1973,22 @@ public com.google.cloud.advisorynotifications.v1.Attachment.Builder getAttachmen public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachmentsOrBuilder( int index) { if (attachmentsBuilder_ == null) { - return attachments_.get(index); } else { + return attachments_.get(index); + } else { return attachmentsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The attachments to download.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - public java.util.List - getAttachmentsOrBuilderList() { + public java.util.List + getAttachmentsOrBuilderList() { if (attachmentsBuilder_ != null) { return attachmentsBuilder_.getMessageOrBuilderList(); } else { @@ -1797,6 +1996,8 @@ public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachme } } /** + * + * *
      * The attachments to download.
      * 
@@ -1804,10 +2005,12 @@ public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachme * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ public com.google.cloud.advisorynotifications.v1.Attachment.Builder addAttachmentsBuilder() { - return getAttachmentsFieldBuilder().addBuilder( - com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()); + return getAttachmentsFieldBuilder() + .addBuilder(com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()); } /** + * + * *
      * The attachments to download.
      * 
@@ -1816,30 +2019,36 @@ public com.google.cloud.advisorynotifications.v1.Attachment.Builder addAttachmen */ public com.google.cloud.advisorynotifications.v1.Attachment.Builder addAttachmentsBuilder( int index) { - return getAttachmentsFieldBuilder().addBuilder( - index, com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()); + return getAttachmentsFieldBuilder() + .addBuilder( + index, com.google.cloud.advisorynotifications.v1.Attachment.getDefaultInstance()); } /** + * + * *
      * The attachments to download.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - public java.util.List - getAttachmentsBuilderList() { + public java.util.List + getAttachmentsBuilderList() { return getAttachmentsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Attachment, com.google.cloud.advisorynotifications.v1.Attachment.Builder, com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder> + com.google.cloud.advisorynotifications.v1.Attachment, + com.google.cloud.advisorynotifications.v1.Attachment.Builder, + com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder> getAttachmentsFieldBuilder() { if (attachmentsBuilder_ == null) { - attachmentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Attachment, com.google.cloud.advisorynotifications.v1.Attachment.Builder, com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder>( - attachments_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); + attachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Attachment, + com.google.cloud.advisorynotifications.v1.Attachment.Builder, + com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder>( + attachments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); attachments_ = null; } return attachmentsBuilder_; @@ -1847,34 +2056,47 @@ public com.google.cloud.advisorynotifications.v1.Attachment.Builder addAttachmen private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * The Message creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000004) != 0); } /** + * + * *
      * The Message creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * The Message creation timestamp.
      * 
@@ -1895,14 +2117,15 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The Message creation timestamp.
      * 
* * .google.protobuf.Timestamp create_time = 3; */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1913,6 +2136,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The Message creation timestamp.
      * 
@@ -1921,9 +2146,9 @@ public Builder setCreateTime( */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000004) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1936,6 +2161,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The Message creation timestamp.
      * 
@@ -1953,6 +2180,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The Message creation timestamp.
      * 
@@ -1965,6 +2194,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The Message creation timestamp.
      * 
@@ -1975,11 +2206,14 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * The Message creation timestamp.
      * 
@@ -1987,14 +2221,17 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * .google.protobuf.Timestamp create_time = 3; */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -2002,34 +2239,47 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private com.google.protobuf.Timestamp localizationTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> localizationTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + localizationTimeBuilder_; /** + * + * *
      * Time when Message was localized
      * 
* * .google.protobuf.Timestamp localization_time = 4; + * * @return Whether the localizationTime field is set. */ public boolean hasLocalizationTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Time when Message was localized
      * 
* * .google.protobuf.Timestamp localization_time = 4; + * * @return The localizationTime. */ public com.google.protobuf.Timestamp getLocalizationTime() { if (localizationTimeBuilder_ == null) { - return localizationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : localizationTime_; + return localizationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : localizationTime_; } else { return localizationTimeBuilder_.getMessage(); } } /** + * + * *
      * Time when Message was localized
      * 
@@ -2050,14 +2300,15 @@ public Builder setLocalizationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when Message was localized
      * 
* * .google.protobuf.Timestamp localization_time = 4; */ - public Builder setLocalizationTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setLocalizationTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (localizationTimeBuilder_ == null) { localizationTime_ = builderForValue.build(); } else { @@ -2068,6 +2319,8 @@ public Builder setLocalizationTime( return this; } /** + * + * *
      * Time when Message was localized
      * 
@@ -2076,9 +2329,9 @@ public Builder setLocalizationTime( */ public Builder mergeLocalizationTime(com.google.protobuf.Timestamp value) { if (localizationTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - localizationTime_ != null && - localizationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && localizationTime_ != null + && localizationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getLocalizationTimeBuilder().mergeFrom(value); } else { localizationTime_ = value; @@ -2091,6 +2344,8 @@ public Builder mergeLocalizationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when Message was localized
      * 
@@ -2108,6 +2363,8 @@ public Builder clearLocalizationTime() { return this; } /** + * + * *
      * Time when Message was localized
      * 
@@ -2120,6 +2377,8 @@ public com.google.protobuf.Timestamp.Builder getLocalizationTimeBuilder() { return getLocalizationTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when Message was localized
      * 
@@ -2130,11 +2389,14 @@ public com.google.protobuf.TimestampOrBuilder getLocalizationTimeOrBuilder() { if (localizationTimeBuilder_ != null) { return localizationTimeBuilder_.getMessageOrBuilder(); } else { - return localizationTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : localizationTime_; + return localizationTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : localizationTime_; } } /** + * + * *
      * Time when Message was localized
      * 
@@ -2142,21 +2404,24 @@ public com.google.protobuf.TimestampOrBuilder getLocalizationTimeOrBuilder() { * .google.protobuf.Timestamp localization_time = 4; */ 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> getLocalizationTimeFieldBuilder() { if (localizationTimeBuilder_ == null) { - localizationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getLocalizationTime(), - getParentForChildren(), - isClean()); + localizationTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLocalizationTime(), getParentForChildren(), isClean()); localizationTime_ = null; } return localizationTimeBuilder_; } + @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); } @@ -2166,12 +2431,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Message) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Message) private static final com.google.cloud.advisorynotifications.v1.Message DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Message(); } @@ -2180,27 +2445,27 @@ public static com.google.cloud.advisorynotifications.v1.Message getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Message parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Message parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -2215,6 +2480,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Message getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java similarity index 79% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java index d800a4626c75..912d85cd289b 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/MessageOrBuilder.java @@ -1,31 +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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface MessageOrBuilder extends +public interface MessageOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Message) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The message content.
    * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; + * * @return Whether the body field is set. */ boolean hasBody(); /** + * + * *
    * The message content.
    * 
* * .google.cloud.advisorynotifications.v1.Message.Body body = 1; + * * @return The body. */ com.google.cloud.advisorynotifications.v1.Message.Body getBody(); /** + * + * *
    * The message content.
    * 
@@ -35,15 +59,18 @@ public interface MessageOrBuilder extends com.google.cloud.advisorynotifications.v1.Message.BodyOrBuilder getBodyOrBuilder(); /** + * + * *
    * The attachments to download.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - java.util.List - getAttachmentsList(); + java.util.List getAttachmentsList(); /** + * + * *
    * The attachments to download.
    * 
@@ -52,6 +79,8 @@ public interface MessageOrBuilder extends */ com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int index); /** + * + * *
    * The attachments to download.
    * 
@@ -60,43 +89,54 @@ public interface MessageOrBuilder extends */ int getAttachmentsCount(); /** + * + * *
    * The attachments to download.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - java.util.List + java.util.List getAttachmentsOrBuilderList(); /** + * + * *
    * The attachments to download.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Attachment attachments = 2; */ - com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachmentsOrBuilder( - int index); + com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachmentsOrBuilder(int index); /** + * + * *
    * The Message creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * The Message creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * The Message creation timestamp.
    * 
@@ -106,24 +146,32 @@ com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachmentsOrBu com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Time when Message was localized
    * 
* * .google.protobuf.Timestamp localization_time = 4; + * * @return Whether the localizationTime field is set. */ boolean hasLocalizationTime(); /** + * + * *
    * Time when Message was localized
    * 
* * .google.protobuf.Timestamp localization_time = 4; + * * @return The localizationTime. */ com.google.protobuf.Timestamp getLocalizationTime(); /** + * + * *
    * Time when Message was localized
    * 
diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java similarity index 70% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java index 41b4456627ba..640eace92de3 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Notification.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * A notification object for notifying customers about security and privacy
  * issues.
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.advisorynotifications.v1.Notification}
  */
-public final class Notification extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Notification extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Notification)
     NotificationOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Notification.newBuilder() to construct.
   private Notification(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Notification() {
     name_ = "";
     messages_ = java.util.Collections.emptyList();
@@ -28,33 +46,37 @@ private Notification() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Notification();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.advisorynotifications.v1.ServiceProto
+        .internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable
+    return com.google.cloud.advisorynotifications.v1.ServiceProto
+        .internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.advisorynotifications.v1.Notification.class, com.google.cloud.advisorynotifications.v1.Notification.Builder.class);
+            com.google.cloud.advisorynotifications.v1.Notification.class,
+            com.google.cloud.advisorynotifications.v1.Notification.Builder.class);
   }
 
   public static final int NAME_FIELD_NUMBER = 1;
+
   @SuppressWarnings("serial")
   private volatile java.lang.Object name_ = "";
   /**
+   *
+   *
    * 
    * The resource name of the notification.
    * Format:
@@ -62,6 +84,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -70,14 +93,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; } } /** + * + * *
    * The resource name of the notification.
    * Format:
@@ -85,16 +109,15 @@ public java.lang.String getName() {
    * 
* * 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 { @@ -105,11 +128,14 @@ public java.lang.String getName() { public static final int SUBJECT_FIELD_NUMBER = 2; private com.google.cloud.advisorynotifications.v1.Subject subject_; /** + * + * *
    * The subject line of the notification.
    * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; + * * @return Whether the subject field is set. */ @java.lang.Override @@ -117,18 +143,25 @@ public boolean hasSubject() { return subject_ != null; } /** + * + * *
    * The subject line of the notification.
    * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; + * * @return The subject. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Subject getSubject() { - return subject_ == null ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() + : subject_; } /** + * + * *
    * The subject line of the notification.
    * 
@@ -137,13 +170,18 @@ public com.google.cloud.advisorynotifications.v1.Subject getSubject() { */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.SubjectOrBuilder getSubjectOrBuilder() { - return subject_ == null ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() + : subject_; } public static final int MESSAGES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") private java.util.List messages_; /** + * + * *
    * A list of messages in the notification.
    * 
@@ -155,6 +193,8 @@ public java.util.List getMess return messages_; } /** + * + * *
    * A list of messages in the notification.
    * 
@@ -162,11 +202,13 @@ public java.util.List getMess * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ @java.lang.Override - public java.util.List + public java.util.List getMessagesOrBuilderList() { return messages_; } /** + * + * *
    * A list of messages in the notification.
    * 
@@ -178,6 +220,8 @@ public int getMessagesCount() { return messages_.size(); } /** + * + * *
    * A list of messages in the notification.
    * 
@@ -189,6 +233,8 @@ public com.google.cloud.advisorynotifications.v1.Message getMessages(int index) return messages_.get(index); } /** + * + * *
    * A list of messages in the notification.
    * 
@@ -204,11 +250,15 @@ public com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrB public static final int CREATE_TIME_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp createTime_; /** + * + * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ @java.lang.Override @@ -216,11 +266,15 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ @java.lang.Override @@ -228,11 +282,14 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -242,30 +299,42 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { public static final int NOTIFICATION_TYPE_FIELD_NUMBER = 12; private int notificationType_ = 0; /** + * + * *
    * Type of notification
    * 
* * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * * @return The enum numeric value on the wire for notificationType. */ - @java.lang.Override public int getNotificationTypeValue() { + @java.lang.Override + public int getNotificationTypeValue() { return notificationType_; } /** + * + * *
    * Type of notification
    * 
* * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * * @return The notificationType. */ - @java.lang.Override public com.google.cloud.advisorynotifications.v1.NotificationType getNotificationType() { - com.google.cloud.advisorynotifications.v1.NotificationType result = com.google.cloud.advisorynotifications.v1.NotificationType.forNumber(notificationType_); - return result == null ? com.google.cloud.advisorynotifications.v1.NotificationType.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.advisorynotifications.v1.NotificationType getNotificationType() { + com.google.cloud.advisorynotifications.v1.NotificationType result = + com.google.cloud.advisorynotifications.v1.NotificationType.forNumber(notificationType_); + return result == null + ? com.google.cloud.advisorynotifications.v1.NotificationType.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -277,8 +346,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -291,7 +359,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (createTime_ != null) { output.writeMessage(4, getCreateTime()); } - if (notificationType_ != com.google.cloud.advisorynotifications.v1.NotificationType.NOTIFICATION_TYPE_UNSPECIFIED.getNumber()) { + if (notificationType_ + != com.google.cloud.advisorynotifications.v1.NotificationType.NOTIFICATION_TYPE_UNSPECIFIED + .getNumber()) { output.writeEnum(12, notificationType_); } getUnknownFields().writeTo(output); @@ -307,20 +377,18 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (subject_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSubject()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSubject()); } for (int i = 0; i < messages_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, messages_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, messages_.get(i)); } if (createTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getCreateTime()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); } - if (notificationType_ != com.google.cloud.advisorynotifications.v1.NotificationType.NOTIFICATION_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(12, notificationType_); + if (notificationType_ + != com.google.cloud.advisorynotifications.v1.NotificationType.NOTIFICATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(12, notificationType_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -330,26 +398,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.advisorynotifications.v1.Notification)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Notification other = (com.google.cloud.advisorynotifications.v1.Notification) obj; + com.google.cloud.advisorynotifications.v1.Notification other = + (com.google.cloud.advisorynotifications.v1.Notification) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (hasSubject() != other.hasSubject()) return false; if (hasSubject()) { - if (!getSubject() - .equals(other.getSubject())) return false; + if (!getSubject().equals(other.getSubject())) return false; } - if (!getMessagesList() - .equals(other.getMessagesList())) return false; + if (!getMessagesList().equals(other.getMessagesList())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { - if (!getCreateTime() - .equals(other.getCreateTime())) return false; + if (!getCreateTime().equals(other.getCreateTime())) return false; } if (notificationType_ != other.notificationType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; @@ -385,96 +450,104 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Notification parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Notification parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification 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.advisorynotifications.v1.Notification prototype) { + + public static Builder newBuilder( + com.google.cloud.advisorynotifications.v1.Notification 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 notification object for notifying customers about security and privacy
    * issues.
@@ -482,33 +555,32 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.advisorynotifications.v1.Notification}
    */
-  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.advisorynotifications.v1.Notification)
       com.google.cloud.advisorynotifications.v1.NotificationOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.advisorynotifications.v1.ServiceProto
+          .internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable
+      return com.google.cloud.advisorynotifications.v1.ServiceProto
+          .internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.advisorynotifications.v1.Notification.class, com.google.cloud.advisorynotifications.v1.Notification.Builder.class);
+              com.google.cloud.advisorynotifications.v1.Notification.class,
+              com.google.cloud.advisorynotifications.v1.Notification.Builder.class);
     }
 
     // Construct using com.google.cloud.advisorynotifications.v1.Notification.newBuilder()
-    private Builder() {
-
-    }
+    private Builder() {}
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
-
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -536,9 +608,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.advisorynotifications.v1.ServiceProto
+          .internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor;
     }
 
     @java.lang.Override
@@ -557,14 +629,18 @@ public com.google.cloud.advisorynotifications.v1.Notification build() {
 
     @java.lang.Override
     public com.google.cloud.advisorynotifications.v1.Notification buildPartial() {
-      com.google.cloud.advisorynotifications.v1.Notification result = new com.google.cloud.advisorynotifications.v1.Notification(this);
+      com.google.cloud.advisorynotifications.v1.Notification result =
+          new com.google.cloud.advisorynotifications.v1.Notification(this);
       buildPartialRepeatedFields(result);
-      if (bitField0_ != 0) { buildPartial0(result); }
+      if (bitField0_ != 0) {
+        buildPartial0(result);
+      }
       onBuilt();
       return result;
     }
 
-    private void buildPartialRepeatedFields(com.google.cloud.advisorynotifications.v1.Notification result) {
+    private void buildPartialRepeatedFields(
+        com.google.cloud.advisorynotifications.v1.Notification result) {
       if (messagesBuilder_ == null) {
         if (((bitField0_ & 0x00000004) != 0)) {
           messages_ = java.util.Collections.unmodifiableList(messages_);
@@ -582,14 +658,10 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Notificatio
         result.name_ = name_;
       }
       if (((from_bitField0_ & 0x00000002) != 0)) {
-        result.subject_ = subjectBuilder_ == null
-            ? subject_
-            : subjectBuilder_.build();
+        result.subject_ = subjectBuilder_ == null ? subject_ : subjectBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000008) != 0)) {
-        result.createTime_ = createTimeBuilder_ == null
-            ? createTime_
-            : createTimeBuilder_.build();
+        result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build();
       }
       if (((from_bitField0_ & 0x00000010) != 0)) {
         result.notificationType_ = notificationType_;
@@ -600,38 +672,39 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Notificatio
     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.advisorynotifications.v1.Notification) {
-        return mergeFrom((com.google.cloud.advisorynotifications.v1.Notification)other);
+        return mergeFrom((com.google.cloud.advisorynotifications.v1.Notification) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -639,7 +712,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Notification other) {
-      if (other == com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance()) return this;
+      if (other == com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance())
+        return this;
       if (!other.getName().isEmpty()) {
         name_ = other.name_;
         bitField0_ |= 0x00000001;
@@ -666,9 +740,10 @@ public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Notification
             messagesBuilder_ = null;
             messages_ = other.messages_;
             bitField0_ = (bitField0_ & ~0x00000004);
-            messagesBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getMessagesFieldBuilder() : null;
+            messagesBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getMessagesFieldBuilder()
+                    : null;
           } else {
             messagesBuilder_.addAllMessages(other.messages_);
           }
@@ -706,49 +781,51 @@ public Builder mergeFrom(
             case 0:
               done = true;
               break;
-            case 10: {
-              name_ = input.readStringRequireUtf8();
-              bitField0_ |= 0x00000001;
-              break;
-            } // case 10
-            case 18: {
-              input.readMessage(
-                  getSubjectFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000002;
-              break;
-            } // case 18
-            case 26: {
-              com.google.cloud.advisorynotifications.v1.Message m =
-                  input.readMessage(
-                      com.google.cloud.advisorynotifications.v1.Message.parser(),
-                      extensionRegistry);
-              if (messagesBuilder_ == null) {
-                ensureMessagesIsMutable();
-                messages_.add(m);
-              } else {
-                messagesBuilder_.addMessage(m);
-              }
-              break;
-            } // case 26
-            case 34: {
-              input.readMessage(
-                  getCreateTimeFieldBuilder().getBuilder(),
-                  extensionRegistry);
-              bitField0_ |= 0x00000008;
-              break;
-            } // case 34
-            case 96: {
-              notificationType_ = input.readEnum();
-              bitField0_ |= 0x00000010;
-              break;
-            } // case 96
-            default: {
-              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
-                done = true; // was an endgroup tag
-              }
-              break;
-            } // default:
+            case 10:
+              {
+                name_ = input.readStringRequireUtf8();
+                bitField0_ |= 0x00000001;
+                break;
+              } // case 10
+            case 18:
+              {
+                input.readMessage(getSubjectFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000002;
+                break;
+              } // case 18
+            case 26:
+              {
+                com.google.cloud.advisorynotifications.v1.Message m =
+                    input.readMessage(
+                        com.google.cloud.advisorynotifications.v1.Message.parser(),
+                        extensionRegistry);
+                if (messagesBuilder_ == null) {
+                  ensureMessagesIsMutable();
+                  messages_.add(m);
+                } else {
+                  messagesBuilder_.addMessage(m);
+                }
+                break;
+              } // case 26
+            case 34:
+              {
+                input.readMessage(getCreateTimeFieldBuilder().getBuilder(), extensionRegistry);
+                bitField0_ |= 0x00000008;
+                break;
+              } // case 34
+            case 96:
+              {
+                notificationType_ = input.readEnum();
+                bitField0_ |= 0x00000010;
+                break;
+              } // case 96
+            default:
+              {
+                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
+                  done = true; // was an endgroup tag
+                }
+                break;
+              } // default:
           } // switch (tag)
         } // while (!done)
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -758,10 +835,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the notification.
      * Format:
@@ -769,13 +849,13 @@ public Builder mergeFrom(
      * 
* * 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; @@ -784,6 +864,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the notification.
      * Format:
@@ -791,15 +873,14 @@ public java.lang.String getName() {
      * 
* * 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 { @@ -807,6 +888,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the notification.
      * Format:
@@ -814,18 +897,22 @@ public java.lang.String getName() {
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The resource name of the notification.
      * Format:
@@ -833,6 +920,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -842,6 +930,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the notification.
      * Format:
@@ -849,12 +939,14 @@ public Builder clearName() {
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; @@ -864,34 +956,47 @@ public Builder setNameBytes( private com.google.cloud.advisorynotifications.v1.Subject subject_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Subject, com.google.cloud.advisorynotifications.v1.Subject.Builder, com.google.cloud.advisorynotifications.v1.SubjectOrBuilder> subjectBuilder_; + com.google.cloud.advisorynotifications.v1.Subject, + com.google.cloud.advisorynotifications.v1.Subject.Builder, + com.google.cloud.advisorynotifications.v1.SubjectOrBuilder> + subjectBuilder_; /** + * + * *
      * The subject line of the notification.
      * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; + * * @return Whether the subject field is set. */ public boolean hasSubject() { return ((bitField0_ & 0x00000002) != 0); } /** + * + * *
      * The subject line of the notification.
      * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; + * * @return The subject. */ public com.google.cloud.advisorynotifications.v1.Subject getSubject() { if (subjectBuilder_ == null) { - return subject_ == null ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() + : subject_; } else { return subjectBuilder_.getMessage(); } } /** + * + * *
      * The subject line of the notification.
      * 
@@ -912,6 +1017,8 @@ public Builder setSubject(com.google.cloud.advisorynotifications.v1.Subject valu return this; } /** + * + * *
      * The subject line of the notification.
      * 
@@ -930,6 +1037,8 @@ public Builder setSubject( return this; } /** + * + * *
      * The subject line of the notification.
      * 
@@ -938,9 +1047,9 @@ public Builder setSubject( */ public Builder mergeSubject(com.google.cloud.advisorynotifications.v1.Subject value) { if (subjectBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - subject_ != null && - subject_ != com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance()) { + if (((bitField0_ & 0x00000002) != 0) + && subject_ != null + && subject_ != com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance()) { getSubjectBuilder().mergeFrom(value); } else { subject_ = value; @@ -953,6 +1062,8 @@ public Builder mergeSubject(com.google.cloud.advisorynotifications.v1.Subject va return this; } /** + * + * *
      * The subject line of the notification.
      * 
@@ -970,6 +1081,8 @@ public Builder clearSubject() { return this; } /** + * + * *
      * The subject line of the notification.
      * 
@@ -982,6 +1095,8 @@ public com.google.cloud.advisorynotifications.v1.Subject.Builder getSubjectBuild return getSubjectFieldBuilder().getBuilder(); } /** + * + * *
      * The subject line of the notification.
      * 
@@ -992,11 +1107,14 @@ public com.google.cloud.advisorynotifications.v1.SubjectOrBuilder getSubjectOrBu if (subjectBuilder_ != null) { return subjectBuilder_.getMessageOrBuilder(); } else { - return subject_ == null ? - com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() : subject_; + return subject_ == null + ? com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance() + : subject_; } } /** + * + * *
      * The subject line of the notification.
      * 
@@ -1004,32 +1122,42 @@ public com.google.cloud.advisorynotifications.v1.SubjectOrBuilder getSubjectOrBu * .google.cloud.advisorynotifications.v1.Subject subject = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Subject, com.google.cloud.advisorynotifications.v1.Subject.Builder, com.google.cloud.advisorynotifications.v1.SubjectOrBuilder> + com.google.cloud.advisorynotifications.v1.Subject, + com.google.cloud.advisorynotifications.v1.Subject.Builder, + com.google.cloud.advisorynotifications.v1.SubjectOrBuilder> getSubjectFieldBuilder() { if (subjectBuilder_ == null) { - subjectBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Subject, com.google.cloud.advisorynotifications.v1.Subject.Builder, com.google.cloud.advisorynotifications.v1.SubjectOrBuilder>( - getSubject(), - getParentForChildren(), - isClean()); + subjectBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Subject, + com.google.cloud.advisorynotifications.v1.Subject.Builder, + com.google.cloud.advisorynotifications.v1.SubjectOrBuilder>( + getSubject(), getParentForChildren(), isClean()); subject_ = null; } return subjectBuilder_; } private java.util.List messages_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureMessagesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { - messages_ = new java.util.ArrayList(messages_); + messages_ = + new java.util.ArrayList(messages_); bitField0_ |= 0x00000004; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message, com.google.cloud.advisorynotifications.v1.Message.Builder, com.google.cloud.advisorynotifications.v1.MessageOrBuilder> messagesBuilder_; + com.google.cloud.advisorynotifications.v1.Message, + com.google.cloud.advisorynotifications.v1.Message.Builder, + com.google.cloud.advisorynotifications.v1.MessageOrBuilder> + messagesBuilder_; /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1044,6 +1172,8 @@ public java.util.List getMess } } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1058,6 +1188,8 @@ public int getMessagesCount() { } } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1072,14 +1204,15 @@ public com.google.cloud.advisorynotifications.v1.Message getMessages(int index) } } /** + * + * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public Builder setMessages( - int index, com.google.cloud.advisorynotifications.v1.Message value) { + public Builder setMessages(int index, com.google.cloud.advisorynotifications.v1.Message value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1093,6 +1226,8 @@ public Builder setMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1111,6 +1246,8 @@ public Builder setMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1131,14 +1268,15 @@ public Builder addMessages(com.google.cloud.advisorynotifications.v1.Message val return this; } /** + * + * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public Builder addMessages( - int index, com.google.cloud.advisorynotifications.v1.Message value) { + public Builder addMessages(int index, com.google.cloud.advisorynotifications.v1.Message value) { if (messagesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1152,6 +1290,8 @@ public Builder addMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1170,6 +1310,8 @@ public Builder addMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1188,6 +1330,8 @@ public Builder addMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1198,8 +1342,7 @@ public Builder addAllMessages( java.lang.Iterable values) { if (messagesBuilder_ == null) { ensureMessagesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, messages_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, messages_); onChanged(); } else { messagesBuilder_.addAllMessages(values); @@ -1207,6 +1350,8 @@ public Builder addAllMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1224,6 +1369,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1241,17 +1388,20 @@ public Builder removeMessages(int index) { return this; } /** + * + * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public com.google.cloud.advisorynotifications.v1.Message.Builder getMessagesBuilder( - int index) { + public com.google.cloud.advisorynotifications.v1.Message.Builder getMessagesBuilder(int index) { return getMessagesFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1261,19 +1411,22 @@ public com.google.cloud.advisorynotifications.v1.Message.Builder getMessagesBuil public com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrBuilder( int index) { if (messagesBuilder_ == null) { - return messages_.get(index); } else { + return messages_.get(index); + } else { return messagesBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public java.util.List - getMessagesOrBuilderList() { + public java.util.List + getMessagesOrBuilderList() { if (messagesBuilder_ != null) { return messagesBuilder_.getMessageOrBuilderList(); } else { @@ -1281,6 +1434,8 @@ public com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrB } } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1288,42 +1443,49 @@ public com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrB * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ public com.google.cloud.advisorynotifications.v1.Message.Builder addMessagesBuilder() { - return getMessagesFieldBuilder().addBuilder( - com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()); + return getMessagesFieldBuilder() + .addBuilder(com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()); } /** + * + * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public com.google.cloud.advisorynotifications.v1.Message.Builder addMessagesBuilder( - int index) { - return getMessagesFieldBuilder().addBuilder( - index, com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()); + public com.google.cloud.advisorynotifications.v1.Message.Builder addMessagesBuilder(int index) { + return getMessagesFieldBuilder() + .addBuilder( + index, com.google.cloud.advisorynotifications.v1.Message.getDefaultInstance()); } /** + * + * *
      * A list of messages in the notification.
      * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - public java.util.List - getMessagesBuilderList() { + public java.util.List + getMessagesBuilderList() { return getMessagesFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message, com.google.cloud.advisorynotifications.v1.Message.Builder, com.google.cloud.advisorynotifications.v1.MessageOrBuilder> + com.google.cloud.advisorynotifications.v1.Message, + com.google.cloud.advisorynotifications.v1.Message.Builder, + com.google.cloud.advisorynotifications.v1.MessageOrBuilder> getMessagesFieldBuilder() { if (messagesBuilder_ == null) { - messagesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Message, com.google.cloud.advisorynotifications.v1.Message.Builder, com.google.cloud.advisorynotifications.v1.MessageOrBuilder>( - messages_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Message, + com.google.cloud.advisorynotifications.v1.Message.Builder, + com.google.cloud.advisorynotifications.v1.MessageOrBuilder>( + messages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); messages_ = null; } return messagesBuilder_; @@ -1331,39 +1493,58 @@ public com.google.cloud.advisorynotifications.v1.Message.Builder addMessagesBuil private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createTimeBuilder_; + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; /** + * + * *
      * Output only. Time the notification was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ public boolean hasCreateTime() { return ((bitField0_ & 0x00000008) != 0); } /** + * + * *
      * Output only. Time the notification was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ public com.google.protobuf.Timestamp getCreateTime() { if (createTimeBuilder_ == null) { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } else { return createTimeBuilder_.getMessage(); } } /** + * + * *
      * Output only. Time the notification was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1379,14 +1560,17 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the notification was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - public Builder setCreateTime( - com.google.protobuf.Timestamp.Builder builderForValue) { + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { createTime_ = builderForValue.build(); } else { @@ -1397,17 +1581,21 @@ public Builder setCreateTime( return this; } /** + * + * *
      * Output only. Time the notification was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - createTime_ != null && - createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); } else { createTime_ = value; @@ -1420,11 +1608,15 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Output only. Time the notification was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1437,11 +1629,15 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * Output only. Time the notification was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1449,36 +1645,48 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Output only. Time the notification was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { return createTimeBuilder_.getMessageOrBuilder(); } else { - return createTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; } } /** + * + * *
      * Output only. Time the notification was created.
      * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ 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> getCreateTimeFieldBuilder() { if (createTimeBuilder_ == null) { - createTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getCreateTime(), - getParentForChildren(), - isClean()); + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); createTime_ = null; } return createTimeBuilder_; @@ -1486,22 +1694,29 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { private int notificationType_ = 0; /** + * + * *
      * Type of notification
      * 
* * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * * @return The enum numeric value on the wire for notificationType. */ - @java.lang.Override public int getNotificationTypeValue() { + @java.lang.Override + public int getNotificationTypeValue() { return notificationType_; } /** + * + * *
      * Type of notification
      * 
* * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * * @param value The enum numeric value on the wire for notificationType to set. * @return This builder for chaining. */ @@ -1512,28 +1727,38 @@ public Builder setNotificationTypeValue(int value) { return this; } /** + * + * *
      * Type of notification
      * 
* * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * * @return The notificationType. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.NotificationType getNotificationType() { - com.google.cloud.advisorynotifications.v1.NotificationType result = com.google.cloud.advisorynotifications.v1.NotificationType.forNumber(notificationType_); - return result == null ? com.google.cloud.advisorynotifications.v1.NotificationType.UNRECOGNIZED : result; + com.google.cloud.advisorynotifications.v1.NotificationType result = + com.google.cloud.advisorynotifications.v1.NotificationType.forNumber(notificationType_); + return result == null + ? com.google.cloud.advisorynotifications.v1.NotificationType.UNRECOGNIZED + : result; } /** + * + * *
      * Type of notification
      * 
* * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * * @param value The notificationType to set. * @return This builder for chaining. */ - public Builder setNotificationType(com.google.cloud.advisorynotifications.v1.NotificationType value) { + public Builder setNotificationType( + com.google.cloud.advisorynotifications.v1.NotificationType value) { if (value == null) { throw new NullPointerException(); } @@ -1543,11 +1768,14 @@ public Builder setNotificationType(com.google.cloud.advisorynotifications.v1.Not return this; } /** + * + * *
      * Type of notification
      * 
* * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * * @return This builder for chaining. */ public Builder clearNotificationType() { @@ -1556,9 +1784,9 @@ public Builder clearNotificationType() { 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); } @@ -1568,12 +1796,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Notification) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Notification) private static final com.google.cloud.advisorynotifications.v1.Notification DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Notification(); } @@ -1582,27 +1810,27 @@ public static com.google.cloud.advisorynotifications.v1.Notification getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Notification parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Notification parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1617,6 +1845,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Notification getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationName.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java similarity index 78% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java index e34ff34e8ba9..1b67ca39a72b 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationOrBuilder.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface NotificationOrBuilder extends +public interface NotificationOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Notification) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The resource name of the notification.
    * Format:
@@ -15,10 +33,13 @@ public interface NotificationOrBuilder extends
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The resource name of the notification.
    * Format:
@@ -26,30 +47,38 @@ public interface NotificationOrBuilder extends
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The subject line of the notification.
    * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; + * * @return Whether the subject field is set. */ boolean hasSubject(); /** + * + * *
    * The subject line of the notification.
    * 
* * .google.cloud.advisorynotifications.v1.Subject subject = 2; + * * @return The subject. */ com.google.cloud.advisorynotifications.v1.Subject getSubject(); /** + * + * *
    * The subject line of the notification.
    * 
@@ -59,15 +88,18 @@ public interface NotificationOrBuilder extends com.google.cloud.advisorynotifications.v1.SubjectOrBuilder getSubjectOrBuilder(); /** + * + * *
    * A list of messages in the notification.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - java.util.List - getMessagesList(); + java.util.List getMessagesList(); /** + * + * *
    * A list of messages in the notification.
    * 
@@ -76,6 +108,8 @@ public interface NotificationOrBuilder extends */ com.google.cloud.advisorynotifications.v1.Message getMessages(int index); /** + * + * *
    * A list of messages in the notification.
    * 
@@ -84,66 +118,86 @@ public interface NotificationOrBuilder extends */ int getMessagesCount(); /** + * + * *
    * A list of messages in the notification.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - java.util.List + java.util.List getMessagesOrBuilderList(); /** + * + * *
    * A list of messages in the notification.
    * 
* * repeated .google.cloud.advisorynotifications.v1.Message messages = 3; */ - com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrBuilder( - int index); + com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrBuilder(int index); /** + * + * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return Whether the createTime field is set. */ boolean hasCreateTime(); /** + * + * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * * @return The createTime. */ com.google.protobuf.Timestamp getCreateTime(); /** + * + * *
    * Output only. Time the notification was created.
    * 
* - * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); /** + * + * *
    * Type of notification
    * 
* * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * * @return The enum numeric value on the wire for notificationType. */ int getNotificationTypeValue(); /** + * + * *
    * Type of notification
    * 
* * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; + * * @return The notificationType. */ com.google.cloud.advisorynotifications.v1.NotificationType getNotificationType(); diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java similarity index 66% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java index f146060cb20e..9cd319498bcc 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java @@ -1,18 +1,36 @@ +/* + * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * Type of notification
  * 
* * Protobuf enum {@code google.cloud.advisorynotifications.v1.NotificationType} */ -public enum NotificationType - implements com.google.protobuf.ProtocolMessageEnum { +public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Default type
    * 
@@ -21,6 +39,8 @@ public enum NotificationType */ NOTIFICATION_TYPE_UNSPECIFIED(0), /** + * + * *
    * Security and privacy advisory notifications
    * 
@@ -29,6 +49,8 @@ public enum NotificationType */ NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY(1), /** + * + * *
    * Sensitive action notifications
    * 
@@ -40,6 +62,8 @@ public enum NotificationType ; /** + * + * *
    * Default type
    * 
@@ -48,6 +72,8 @@ public enum NotificationType */ public static final int NOTIFICATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Security and privacy advisory notifications
    * 
@@ -56,6 +82,8 @@ public enum NotificationType */ public static final int NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY_VALUE = 1; /** + * + * *
    * Sensitive action notifications
    * 
@@ -64,7 +92,6 @@ public enum NotificationType */ public static final int NOTIFICATION_TYPE_SENSITIVE_ACTIONS_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -89,49 +116,51 @@ public static NotificationType valueOf(int value) { */ public static NotificationType forNumber(int value) { switch (value) { - case 0: return NOTIFICATION_TYPE_UNSPECIFIED; - case 1: return NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY; - case 2: return NOTIFICATION_TYPE_SENSITIVE_ACTIONS; - default: return null; + case 0: + return NOTIFICATION_TYPE_UNSPECIFIED; + case 1: + return NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY; + case 2: + return NOTIFICATION_TYPE_SENSITIVE_ACTIONS; + 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< - NotificationType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NotificationType findValueByNumber(int number) { - return NotificationType.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 NotificationType findValueByNumber(int number) { + return NotificationType.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() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor().getEnumTypes().get(2); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor() + .getEnumTypes() + .get(2); } private static final NotificationType[] VALUES = values(); - public static NotificationType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static NotificationType 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; @@ -147,4 +176,3 @@ private NotificationType(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.advisorynotifications.v1.NotificationType) } - diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java similarity index 68% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java index 170c726ffa60..012cd257a1da 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationView.java @@ -1,18 +1,36 @@ +/* + * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * Notification view.
  * 
* * Protobuf enum {@code google.cloud.advisorynotifications.v1.NotificationView} */ -public enum NotificationView - implements com.google.protobuf.ProtocolMessageEnum { +public enum NotificationView implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Not specified, equivalent to BASIC.
    * 
@@ -21,6 +39,8 @@ public enum NotificationView */ NOTIFICATION_VIEW_UNSPECIFIED(0), /** + * + * *
    * Server responses only include title, creation time and Notification ID.
    * Note: for internal use responses also include the last update time,
@@ -31,6 +51,8 @@ public enum NotificationView
    */
   BASIC(1),
   /**
+   *
+   *
    * 
    * Include everything.
    * 
@@ -42,6 +64,8 @@ public enum NotificationView ; /** + * + * *
    * Not specified, equivalent to BASIC.
    * 
@@ -50,6 +74,8 @@ public enum NotificationView */ public static final int NOTIFICATION_VIEW_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Server responses only include title, creation time and Notification ID.
    * Note: for internal use responses also include the last update time,
@@ -60,6 +86,8 @@ public enum NotificationView
    */
   public static final int BASIC_VALUE = 1;
   /**
+   *
+   *
    * 
    * Include everything.
    * 
@@ -68,7 +96,6 @@ public enum NotificationView */ public static final int FULL_VALUE = 2; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -93,49 +120,51 @@ public static NotificationView valueOf(int value) { */ public static NotificationView forNumber(int value) { switch (value) { - case 0: return NOTIFICATION_VIEW_UNSPECIFIED; - case 1: return BASIC; - case 2: return FULL; - default: return null; + case 0: + return NOTIFICATION_VIEW_UNSPECIFIED; + case 1: + return BASIC; + case 2: + return FULL; + 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< - NotificationView> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public NotificationView findValueByNumber(int number) { - return NotificationView.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 NotificationView findValueByNumber(int number) { + return NotificationView.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() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor().getEnumTypes().get(0); + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor() + .getEnumTypes() + .get(0); } private static final NotificationView[] VALUES = values(); - public static NotificationView valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static NotificationView 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; @@ -151,4 +180,3 @@ private NotificationView(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.advisorynotifications.v1.NotificationView) } - diff --git a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java new file mode 100644 index 000000000000..5d9fb5de9cc2 --- /dev/null +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java @@ -0,0 +1,288 @@ +/* + * 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/advisorynotifications/v1/service.proto + +package com.google.cloud.advisorynotifications.v1; + +public final class ServiceProto { + private ServiceProto() {} + + 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_advisorynotifications_v1_Notification_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n3google/cloud/advisorynotifications/v1/" + + "service.proto\022%google.cloud.advisorynoti" + + "fications.v1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032\037google/protobuf/timestamp.proto" + + "\"\263\003\n\014Notification\022\014\n\004name\030\001 \001(\t\022?\n\007subje" + + "ct\030\002 \001(\0132..google.cloud.advisorynotifica" + + "tions.v1.Subject\022@\n\010messages\030\003 \003(\0132..goo" + + "gle.cloud.advisorynotifications.v1.Messa" + + "ge\0224\n\013create_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\022R\n\021notification_type\030\014 " + + "\001(\01627.google.cloud.advisorynotifications" + + ".v1.NotificationType:\207\001\352A\203\001\n1advisorynot" + + "ifications.googleapis.com/Notification\022N" + + "organizations/{organization}/locations/{" + + "location}/notifications/{notification}\"\205" + + "\001\n\004Text\022\017\n\007en_text\030\001 \001(\t\022\026\n\016localized_te" + + "xt\030\002 \001(\t\022T\n\022localization_state\030\003 \001(\01628.g" + + "oogle.cloud.advisorynotifications.v1.Loc" + + "alizationState\"D\n\007Subject\0229\n\004text\030\001 \001(\0132" + + "+.google.cloud.advisorynotifications.v1." + + "Text\"\277\002\n\007Message\022A\n\004body\030\001 \001(\01323.google." + + "cloud.advisorynotifications.v1.Message.B" + + "ody\022F\n\013attachments\030\002 \003(\01321.google.cloud." + + "advisorynotifications.v1.Attachment\022/\n\013c" + + "reate_time\030\003 \001(\0132\032.google.protobuf.Times" + + "tamp\0225\n\021localization_time\030\004 \001(\0132\032.google" + + ".protobuf.Timestamp\032A\n\004Body\0229\n\004text\030\001 \001(" + + "\0132+.google.cloud.advisorynotifications.v" + + "1.Text\"e\n\nAttachment\0229\n\003csv\030\002 \001(\0132*.goog" + + "le.cloud.advisorynotifications.v1.CsvH\000\022" + + "\024\n\014display_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n\007" + + "headers\030\001 \003(\t\022D\n\tdata_rows\030\002 \003(\01321.googl" + + "e.cloud.advisorynotifications.v1.Csv.Csv" + + "Row\032\031\n\006CsvRow\022\017\n\007entries\030\001 \003(\t\"\352\001\n\030ListN" + + "otificationsRequest\022I\n\006parent\030\001 \001(\tB9\340A\002" + + "\372A3\0221advisorynotifications.googleapis.co" + + "m/Notification\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + + "e_token\030\003 \001(\t\022E\n\004view\030\004 \001(\01627.google.clo" + + "ud.advisorynotifications.v1.Notification" + + "View\022\025\n\rlanguage_code\030\005 \001(\t\"\224\001\n\031ListNoti" + + "ficationsResponse\022J\n\rnotifications\030\001 \003(\013" + + "23.google.cloud.advisorynotifications.v1" + + ".Notification\022\027\n\017next_page_token\030\002 \001(\t\022\022" + + "\n\ntotal_size\030\003 \001(\005\"x\n\026GetNotificationReq" + + "uest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1advisorynoti" + + "fications.googleapis.com/Notification\022\025\n" + + "\rlanguage_code\030\005 \001(\t*J\n\020NotificationView" + + "\022!\n\035NOTIFICATION_VIEW_UNSPECIFIED\020\000\022\t\n\005B" + + "ASIC\020\001\022\010\n\004FULL\020\002*\240\001\n\021LocalizationState\022\"" + + "\n\036LOCALIZATION_STATE_UNSPECIFIED\020\000\022%\n!LO" + + "CALIZATION_STATE_NOT_APPLICABLE\020\001\022\036\n\032LOC" + + "ALIZATION_STATE_PENDING\020\002\022 \n\034LOCALIZATIO" + + "N_STATE_COMPLETED\020\003*\217\001\n\020NotificationType" + + "\022!\n\035NOTIFICATION_TYPE_UNSPECIFIED\020\000\022/\n+N" + + "OTIFICATION_TYPE_SECURITY_PRIVACY_ADVISO" + + "RY\020\001\022\'\n#NOTIFICATION_TYPE_SENSITIVE_ACTI" + + "ONS\020\0022\251\004\n\034AdvisoryNotificationsService\022\337" + + "\001\n\021ListNotifications\022?.google.cloud.advi" + + "sorynotifications.v1.ListNotificationsRe" + + "quest\032@.google.cloud.advisorynotificatio" + + "ns.v1.ListNotificationsResponse\"G\202\323\344\223\0028\022" + + "6/v1/{parent=organizations/*/locations/*" + + "}/notifications\332A\006parent\022\314\001\n\017GetNotifica" + + "tion\022=.google.cloud.advisorynotification" + + "s.v1.GetNotificationRequest\0323.google.clo" + + "ud.advisorynotifications.v1.Notification" + + "\"E\202\323\344\223\0028\0226/v1/{name=organizations/*/loca" + + "tions/*/notifications/*}\332A\004name\032X\312A$advi" + + "sorynotifications.googleapis.com\322A.https" + + "://www.googleapis.com/auth/cloud-platfor" + + "mB\374\002\n)com.google.cloud.advisorynotificat" + + "ions.v1B\014ServiceProtoP\001Z_cloud.google.co" + + "m/go/advisorynotifications/apiv1/advisor" + + "ynotificationspb;advisorynotificationspb" + + "\252\002%Google.Cloud.AdvisoryNotifications.V1" + + "\312\002%Google\\Cloud\\AdvisoryNotifications\\V1" + + "\352\002(Google::Cloud::AdvisoryNotifications:" + + ":V1\352Ab\n-advisorynotifications.googleapis" + + ".com/Location\0221organizations/{organizati" + + "on}/locations/{location}b\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.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor, + new java.lang.String[] { + "Name", "Subject", "Messages", "CreateTime", "NotificationType", + }); + internal_static_google_cloud_advisorynotifications_v1_Text_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Text_descriptor, + new java.lang.String[] { + "EnText", "LocalizedText", "LocalizationState", + }); + internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor, + new java.lang.String[] { + "Text", + }); + internal_static_google_cloud_advisorynotifications_v1_Message_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Message_descriptor, + new java.lang.String[] { + "Body", "Attachments", "CreateTime", "LocalizationTime", + }); + internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor = + internal_static_google_cloud_advisorynotifications_v1_Message_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor, + new java.lang.String[] { + "Text", + }); + internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor, + new java.lang.String[] { + "Csv", "DisplayName", "Data", + }); + internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor, + new java.lang.String[] { + "Headers", "DataRows", + }); + internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor = + internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor + .getNestedTypes() + .get(0); + internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor, + new java.lang.String[] { + "Entries", + }); + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "View", "LanguageCode", + }); + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor, + new java.lang.String[] { + "Notifications", "NextPageToken", "TotalSize", + }); + internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor, + new java.lang.String[] { + "Name", "LanguageCode", + }); + 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.resourceDefinition); + 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.protobuf.TimestampProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java similarity index 65% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java index e4e9a3b62f95..42f9dd356fd7 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Subject.java @@ -1,60 +1,81 @@ +/* + * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * A subject line of a notification.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Subject} */ -public final class Subject extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Subject extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Subject) SubjectOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Subject.newBuilder() to construct. private Subject(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Subject() { - } + + private Subject() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Subject(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Subject.class, com.google.cloud.advisorynotifications.v1.Subject.Builder.class); + com.google.cloud.advisorynotifications.v1.Subject.class, + com.google.cloud.advisorynotifications.v1.Subject.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; private com.google.cloud.advisorynotifications.v1.Text text_; /** + * + * *
    * The text content.
    * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return Whether the text field is set. */ @java.lang.Override @@ -62,18 +83,25 @@ public boolean hasText() { return text_ != null; } /** + * + * *
    * The text content.
    * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return The text. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.Text getText() { - return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; + return text_ == null + ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() + : text_; } /** + * + * *
    * The text content.
    * 
@@ -82,10 +110,13 @@ public com.google.cloud.advisorynotifications.v1.Text getText() { */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder() { - return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; + return text_ == null + ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() + : text_; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -97,8 +128,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 (text_ != null) { output.writeMessage(1, getText()); } @@ -112,8 +142,7 @@ public int getSerializedSize() { size = 0; if (text_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getText()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getText()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -123,17 +152,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.advisorynotifications.v1.Subject)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Subject other = (com.google.cloud.advisorynotifications.v1.Subject) obj; + com.google.cloud.advisorynotifications.v1.Subject other = + (com.google.cloud.advisorynotifications.v1.Subject) obj; if (hasText() != other.hasText()) return false; if (hasText()) { - if (!getText() - .equals(other.getText())) return false; + if (!getText().equals(other.getText())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -156,129 +185,135 @@ public int hashCode() { } public static com.google.cloud.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Subject parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Subject parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject 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.advisorynotifications.v1.Subject 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 subject line of a notification.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Subject} */ - 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.advisorynotifications.v1.Subject) com.google.cloud.advisorynotifications.v1.SubjectOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Subject.class, com.google.cloud.advisorynotifications.v1.Subject.Builder.class); + com.google.cloud.advisorynotifications.v1.Subject.class, + com.google.cloud.advisorynotifications.v1.Subject.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Subject.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -292,9 +327,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; } @java.lang.Override @@ -313,8 +348,11 @@ public com.google.cloud.advisorynotifications.v1.Subject build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Subject buildPartial() { - com.google.cloud.advisorynotifications.v1.Subject result = new com.google.cloud.advisorynotifications.v1.Subject(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.advisorynotifications.v1.Subject result = + new com.google.cloud.advisorynotifications.v1.Subject(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -322,9 +360,7 @@ public com.google.cloud.advisorynotifications.v1.Subject buildPartial() { private void buildPartial0(com.google.cloud.advisorynotifications.v1.Subject result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.text_ = textBuilder_ == null - ? text_ - : textBuilder_.build(); + result.text_ = textBuilder_ == null ? text_ : textBuilder_.build(); } } @@ -332,38 +368,39 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Subject res 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.advisorynotifications.v1.Subject) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Subject)other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Subject) other); } else { super.mergeFrom(other); return this; @@ -371,7 +408,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.advisorynotifications.v1.Subject other) { - if (other == com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance()) return this; + if (other == com.google.cloud.advisorynotifications.v1.Subject.getDefaultInstance()) + return this; if (other.hasText()) { mergeText(other.getText()); } @@ -401,19 +439,19 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - input.readMessage( - getTextFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + input.readMessage(getTextFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -423,38 +461,52 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.cloud.advisorynotifications.v1.Text text_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder> textBuilder_; + com.google.cloud.advisorynotifications.v1.Text, + com.google.cloud.advisorynotifications.v1.Text.Builder, + com.google.cloud.advisorynotifications.v1.TextOrBuilder> + textBuilder_; /** + * + * *
      * The text content.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return Whether the text field is set. */ public boolean hasText() { return ((bitField0_ & 0x00000001) != 0); } /** + * + * *
      * The text content.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return The text. */ public com.google.cloud.advisorynotifications.v1.Text getText() { if (textBuilder_ == null) { - return text_ == null ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; + return text_ == null + ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() + : text_; } else { return textBuilder_.getMessage(); } } /** + * + * *
      * The text content.
      * 
@@ -475,14 +527,15 @@ public Builder setText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** + * + * *
      * The text content.
      * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; */ - public Builder setText( - com.google.cloud.advisorynotifications.v1.Text.Builder builderForValue) { + public Builder setText(com.google.cloud.advisorynotifications.v1.Text.Builder builderForValue) { if (textBuilder_ == null) { text_ = builderForValue.build(); } else { @@ -493,6 +546,8 @@ public Builder setText( return this; } /** + * + * *
      * The text content.
      * 
@@ -501,9 +556,9 @@ public Builder setText( */ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { if (textBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) && - text_ != null && - text_ != com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()) { + if (((bitField0_ & 0x00000001) != 0) + && text_ != null + && text_ != com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance()) { getTextBuilder().mergeFrom(value); } else { text_ = value; @@ -516,6 +571,8 @@ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** + * + * *
      * The text content.
      * 
@@ -533,6 +590,8 @@ public Builder clearText() { return this; } /** + * + * *
      * The text content.
      * 
@@ -545,6 +604,8 @@ public com.google.cloud.advisorynotifications.v1.Text.Builder getTextBuilder() { return getTextFieldBuilder().getBuilder(); } /** + * + * *
      * The text content.
      * 
@@ -555,11 +616,14 @@ public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder( if (textBuilder_ != null) { return textBuilder_.getMessageOrBuilder(); } else { - return text_ == null ? - com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() : text_; + return text_ == null + ? com.google.cloud.advisorynotifications.v1.Text.getDefaultInstance() + : text_; } } /** + * + * *
      * The text content.
      * 
@@ -567,21 +631,24 @@ public com.google.cloud.advisorynotifications.v1.TextOrBuilder getTextOrBuilder( * .google.cloud.advisorynotifications.v1.Text text = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder> + com.google.cloud.advisorynotifications.v1.Text, + com.google.cloud.advisorynotifications.v1.Text.Builder, + com.google.cloud.advisorynotifications.v1.TextOrBuilder> getTextFieldBuilder() { if (textBuilder_ == null) { - textBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.advisorynotifications.v1.Text, com.google.cloud.advisorynotifications.v1.Text.Builder, com.google.cloud.advisorynotifications.v1.TextOrBuilder>( - getText(), - getParentForChildren(), - isClean()); + textBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.advisorynotifications.v1.Text, + com.google.cloud.advisorynotifications.v1.Text.Builder, + com.google.cloud.advisorynotifications.v1.TextOrBuilder>( + getText(), getParentForChildren(), isClean()); text_ = null; } return textBuilder_; } + @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); } @@ -591,12 +658,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Subject) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Subject) private static final com.google.cloud.advisorynotifications.v1.Subject DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Subject(); } @@ -605,27 +672,27 @@ public static com.google.cloud.advisorynotifications.v1.Subject getDefaultInstan return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Subject parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Subject parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -640,6 +707,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Subject getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java similarity index 58% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java index 7b21146056ad..73ca7bf88401 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/SubjectOrBuilder.java @@ -1,31 +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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface SubjectOrBuilder extends +public interface SubjectOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Subject) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The text content.
    * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return Whether the text field is set. */ boolean hasText(); /** + * + * *
    * The text content.
    * 
* * .google.cloud.advisorynotifications.v1.Text text = 1; + * * @return The text. */ com.google.cloud.advisorynotifications.v1.Text getText(); /** + * + * *
    * The text content.
    * 
diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java similarity index 68% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java index 3aec0578571a..4ab81ce751c9 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/Text.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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; /** + * + * *
  * A text object containing the English text and its localized copies.
  * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Text} */ -public final class Text extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Text extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.advisorynotifications.v1.Text) TextOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Text.newBuilder() to construct. private Text(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Text() { enText_ = ""; localizedText_ = ""; @@ -27,38 +45,43 @@ private Text() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Text(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Text.class, com.google.cloud.advisorynotifications.v1.Text.Builder.class); + com.google.cloud.advisorynotifications.v1.Text.class, + com.google.cloud.advisorynotifications.v1.Text.Builder.class); } public static final int EN_TEXT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") private volatile java.lang.Object enText_ = ""; /** + * + * *
    * The English copy.
    * 
* * string en_text = 1; + * * @return The enText. */ @java.lang.Override @@ -67,29 +90,29 @@ public java.lang.String getEnText() { 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(); enText_ = s; return s; } } /** + * + * *
    * The English copy.
    * 
* * string en_text = 1; + * * @return The bytes for enText. */ @java.lang.Override - public com.google.protobuf.ByteString - getEnTextBytes() { + public com.google.protobuf.ByteString getEnTextBytes() { java.lang.Object ref = enText_; 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); enText_ = b; return b; } else { @@ -98,14 +121,18 @@ public java.lang.String getEnText() { } public static final int LOCALIZED_TEXT_FIELD_NUMBER = 2; + @SuppressWarnings("serial") private volatile java.lang.Object localizedText_ = ""; /** + * + * *
    * The requested localized copy (if applicable).
    * 
* * string localized_text = 2; + * * @return The localizedText. */ @java.lang.Override @@ -114,29 +141,29 @@ public java.lang.String getLocalizedText() { 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(); localizedText_ = s; return s; } } /** + * + * *
    * The requested localized copy (if applicable).
    * 
* * string localized_text = 2; + * * @return The bytes for localizedText. */ @java.lang.Override - public com.google.protobuf.ByteString - getLocalizedTextBytes() { + public com.google.protobuf.ByteString getLocalizedTextBytes() { java.lang.Object ref = localizedText_; 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); localizedText_ = b; return b; } else { @@ -147,30 +174,42 @@ public java.lang.String getLocalizedText() { public static final int LOCALIZATION_STATE_FIELD_NUMBER = 3; private int localizationState_ = 0; /** + * + * *
    * Status of the localization.
    * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; + * * @return The enum numeric value on the wire for localizationState. */ - @java.lang.Override public int getLocalizationStateValue() { + @java.lang.Override + public int getLocalizationStateValue() { return localizationState_; } /** + * + * *
    * Status of the localization.
    * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; + * * @return The localizationState. */ - @java.lang.Override public com.google.cloud.advisorynotifications.v1.LocalizationState getLocalizationState() { - com.google.cloud.advisorynotifications.v1.LocalizationState result = com.google.cloud.advisorynotifications.v1.LocalizationState.forNumber(localizationState_); - return result == null ? com.google.cloud.advisorynotifications.v1.LocalizationState.UNRECOGNIZED : result; + @java.lang.Override + public com.google.cloud.advisorynotifications.v1.LocalizationState getLocalizationState() { + com.google.cloud.advisorynotifications.v1.LocalizationState result = + com.google.cloud.advisorynotifications.v1.LocalizationState.forNumber(localizationState_); + return result == null + ? com.google.cloud.advisorynotifications.v1.LocalizationState.UNRECOGNIZED + : result; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -182,15 +221,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 { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(enText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, enText_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localizedText_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localizedText_); } - if (localizationState_ != com.google.cloud.advisorynotifications.v1.LocalizationState.LOCALIZATION_STATE_UNSPECIFIED.getNumber()) { + if (localizationState_ + != com.google.cloud.advisorynotifications.v1.LocalizationState + .LOCALIZATION_STATE_UNSPECIFIED + .getNumber()) { output.writeEnum(3, localizationState_); } getUnknownFields().writeTo(output); @@ -208,9 +249,11 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(localizedText_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localizedText_); } - if (localizationState_ != com.google.cloud.advisorynotifications.v1.LocalizationState.LOCALIZATION_STATE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, localizationState_); + if (localizationState_ + != com.google.cloud.advisorynotifications.v1.LocalizationState + .LOCALIZATION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, localizationState_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -220,17 +263,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.advisorynotifications.v1.Text)) { return super.equals(obj); } - com.google.cloud.advisorynotifications.v1.Text other = (com.google.cloud.advisorynotifications.v1.Text) obj; + com.google.cloud.advisorynotifications.v1.Text other = + (com.google.cloud.advisorynotifications.v1.Text) obj; - if (!getEnText() - .equals(other.getEnText())) return false; - if (!getLocalizedText() - .equals(other.getLocalizedText())) return false; + if (!getEnText().equals(other.getEnText())) return false; + if (!getLocalizedText().equals(other.getLocalizedText())) return false; if (localizationState_ != other.localizationState_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -254,130 +296,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.advisorynotifications.v1.Text parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.advisorynotifications.v1.Text parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.advisorynotifications.v1.Text parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text 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.advisorynotifications.v1.Text 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 text object containing the English text and its localized copies.
    * 
* * Protobuf type {@code google.cloud.advisorynotifications.v1.Text} */ - 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.advisorynotifications.v1.Text) com.google.cloud.advisorynotifications.v1.TextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.advisorynotifications.v1.Text.class, com.google.cloud.advisorynotifications.v1.Text.Builder.class); + com.google.cloud.advisorynotifications.v1.Text.class, + com.google.cloud.advisorynotifications.v1.Text.Builder.class); } // Construct using com.google.cloud.advisorynotifications.v1.Text.newBuilder() - private Builder() { - - } + private Builder() {} - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - } + @java.lang.Override public Builder clear() { super.clear(); @@ -389,9 +437,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.advisorynotifications.v1.ServiceProto + .internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; } @java.lang.Override @@ -410,8 +458,11 @@ public com.google.cloud.advisorynotifications.v1.Text build() { @java.lang.Override public com.google.cloud.advisorynotifications.v1.Text buildPartial() { - com.google.cloud.advisorynotifications.v1.Text result = new com.google.cloud.advisorynotifications.v1.Text(this); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.advisorynotifications.v1.Text result = + new com.google.cloud.advisorynotifications.v1.Text(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -433,38 +484,39 @@ private void buildPartial0(com.google.cloud.advisorynotifications.v1.Text result 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.advisorynotifications.v1.Text) { - return mergeFrom((com.google.cloud.advisorynotifications.v1.Text)other); + return mergeFrom((com.google.cloud.advisorynotifications.v1.Text) other); } else { super.mergeFrom(other); return this; @@ -512,27 +564,31 @@ public Builder mergeFrom( case 0: done = true; break; - case 10: { - enText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - localizedText_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: { - localizationState_ = input.readEnum(); - bitField0_ |= 0x00000004; - break; - } // case 24 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: + case 10: + { + enText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + localizedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + localizationState_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -542,22 +598,25 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private java.lang.Object enText_ = ""; /** + * + * *
      * The English copy.
      * 
* * string en_text = 1; + * * @return The enText. */ public java.lang.String getEnText() { java.lang.Object ref = enText_; 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(); enText_ = s; return s; @@ -566,20 +625,21 @@ public java.lang.String getEnText() { } } /** + * + * *
      * The English copy.
      * 
* * string en_text = 1; + * * @return The bytes for enText. */ - public com.google.protobuf.ByteString - getEnTextBytes() { + public com.google.protobuf.ByteString getEnTextBytes() { java.lang.Object ref = enText_; 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); enText_ = b; return b; } else { @@ -587,28 +647,35 @@ public java.lang.String getEnText() { } } /** + * + * *
      * The English copy.
      * 
* * string en_text = 1; + * * @param value The enText to set. * @return This builder for chaining. */ - public Builder setEnText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEnText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } enText_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** + * + * *
      * The English copy.
      * 
* * string en_text = 1; + * * @return This builder for chaining. */ public Builder clearEnText() { @@ -618,17 +685,21 @@ public Builder clearEnText() { return this; } /** + * + * *
      * The English copy.
      * 
* * string en_text = 1; + * * @param value The bytes for enText to set. * @return This builder for chaining. */ - public Builder setEnTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setEnTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); enText_ = value; bitField0_ |= 0x00000001; @@ -638,18 +709,20 @@ public Builder setEnTextBytes( private java.lang.Object localizedText_ = ""; /** + * + * *
      * The requested localized copy (if applicable).
      * 
* * string localized_text = 2; + * * @return The localizedText. */ public java.lang.String getLocalizedText() { java.lang.Object ref = localizedText_; 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(); localizedText_ = s; return s; @@ -658,20 +731,21 @@ public java.lang.String getLocalizedText() { } } /** + * + * *
      * The requested localized copy (if applicable).
      * 
* * string localized_text = 2; + * * @return The bytes for localizedText. */ - public com.google.protobuf.ByteString - getLocalizedTextBytes() { + public com.google.protobuf.ByteString getLocalizedTextBytes() { java.lang.Object ref = localizedText_; 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); localizedText_ = b; return b; } else { @@ -679,28 +753,35 @@ public java.lang.String getLocalizedText() { } } /** + * + * *
      * The requested localized copy (if applicable).
      * 
* * string localized_text = 2; + * * @param value The localizedText to set. * @return This builder for chaining. */ - public Builder setLocalizedText( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocalizedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } localizedText_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** + * + * *
      * The requested localized copy (if applicable).
      * 
* * string localized_text = 2; + * * @return This builder for chaining. */ public Builder clearLocalizedText() { @@ -710,17 +791,21 @@ public Builder clearLocalizedText() { return this; } /** + * + * *
      * The requested localized copy (if applicable).
      * 
* * string localized_text = 2; + * * @param value The bytes for localizedText to set. * @return This builder for chaining. */ - public Builder setLocalizedTextBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } + public Builder setLocalizedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } checkByteStringIsUtf8(value); localizedText_ = value; bitField0_ |= 0x00000002; @@ -730,22 +815,29 @@ public Builder setLocalizedTextBytes( private int localizationState_ = 0; /** + * + * *
      * Status of the localization.
      * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; + * * @return The enum numeric value on the wire for localizationState. */ - @java.lang.Override public int getLocalizationStateValue() { + @java.lang.Override + public int getLocalizationStateValue() { return localizationState_; } /** + * + * *
      * Status of the localization.
      * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; + * * @param value The enum numeric value on the wire for localizationState to set. * @return This builder for chaining. */ @@ -756,28 +848,38 @@ public Builder setLocalizationStateValue(int value) { return this; } /** + * + * *
      * Status of the localization.
      * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; + * * @return The localizationState. */ @java.lang.Override public com.google.cloud.advisorynotifications.v1.LocalizationState getLocalizationState() { - com.google.cloud.advisorynotifications.v1.LocalizationState result = com.google.cloud.advisorynotifications.v1.LocalizationState.forNumber(localizationState_); - return result == null ? com.google.cloud.advisorynotifications.v1.LocalizationState.UNRECOGNIZED : result; + com.google.cloud.advisorynotifications.v1.LocalizationState result = + com.google.cloud.advisorynotifications.v1.LocalizationState.forNumber(localizationState_); + return result == null + ? com.google.cloud.advisorynotifications.v1.LocalizationState.UNRECOGNIZED + : result; } /** + * + * *
      * Status of the localization.
      * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; + * * @param value The localizationState to set. * @return This builder for chaining. */ - public Builder setLocalizationState(com.google.cloud.advisorynotifications.v1.LocalizationState value) { + public Builder setLocalizationState( + com.google.cloud.advisorynotifications.v1.LocalizationState value) { if (value == null) { throw new NullPointerException(); } @@ -787,11 +889,14 @@ public Builder setLocalizationState(com.google.cloud.advisorynotifications.v1.Lo return this; } /** + * + * *
      * Status of the localization.
      * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; + * * @return This builder for chaining. */ public Builder clearLocalizationState() { @@ -800,9 +905,9 @@ public Builder clearLocalizationState() { 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); } @@ -812,12 +917,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.advisorynotifications.v1.Text) } // @@protoc_insertion_point(class_scope:google.cloud.advisorynotifications.v1.Text) private static final com.google.cloud.advisorynotifications.v1.Text DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.advisorynotifications.v1.Text(); } @@ -826,27 +931,27 @@ public static com.google.cloud.advisorynotifications.v1.Text getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Text parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Text parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -861,6 +966,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.advisorynotifications.v1.Text getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java similarity index 65% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java index 21521323f550..9eac0050b017 100644 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/TextOrBuilder.java @@ -1,67 +1,99 @@ +/* + * 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/advisorynotifications/v1/service.proto package com.google.cloud.advisorynotifications.v1; -public interface TextOrBuilder extends +public interface TextOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.advisorynotifications.v1.Text) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The English copy.
    * 
* * string en_text = 1; + * * @return The enText. */ java.lang.String getEnText(); /** + * + * *
    * The English copy.
    * 
* * string en_text = 1; + * * @return The bytes for enText. */ - com.google.protobuf.ByteString - getEnTextBytes(); + com.google.protobuf.ByteString getEnTextBytes(); /** + * + * *
    * The requested localized copy (if applicable).
    * 
* * string localized_text = 2; + * * @return The localizedText. */ java.lang.String getLocalizedText(); /** + * + * *
    * The requested localized copy (if applicable).
    * 
* * string localized_text = 2; + * * @return The bytes for localizedText. */ - com.google.protobuf.ByteString - getLocalizedTextBytes(); + com.google.protobuf.ByteString getLocalizedTextBytes(); /** + * + * *
    * Status of the localization.
    * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; + * * @return The enum numeric value on the wire for localizationState. */ int getLocalizationStateValue(); /** + * + * *
    * Status of the localization.
    * 
* * .google.cloud.advisorynotifications.v1.LocalizationState localization_state = 3; + * * @return The localizationState. */ com.google.cloud.advisorynotifications.v1.LocalizationState getLocalizationState(); diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto rename to java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/proto/google/cloud/advisorynotifications/v1/service.proto diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetEndpoint.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetEndpoint.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/AsyncGetNotification.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/AsyncGetNotification.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/AsyncGetNotification.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/AsyncGetNotification.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotification.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotification.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotification.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotification.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationNotificationname.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationNotificationname.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationNotificationname.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationNotificationname.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationString.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationString.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationString.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/getnotification/SyncGetNotificationString.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotifications.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotifications.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotifications.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotifications.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotificationsPaged.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotificationsPaged.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotificationsPaged.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/AsyncListNotificationsPaged.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotifications.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotifications.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotifications.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotifications.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsLocationname.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsLocationname.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsLocationname.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsLocationname.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsString.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsString.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsString.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservice/listnotifications/SyncListNotificationsString.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservicesettings/getnotification/SyncGetNotification.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservicesettings/getnotification/SyncGetNotification.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservicesettings/getnotification/SyncGetNotification.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/advisorynotificationsservicesettings/getnotification/SyncGetNotification.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/stub/advisorynotificationsservicestubsettings/getnotification/SyncGetNotification.java b/java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/stub/advisorynotificationsservicestubsettings/getnotification/SyncGetNotification.java similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/stub/advisorynotificationsservicestubsettings/getnotification/SyncGetNotification.java rename to java-advisorynotifications/samples/snippets/generated/com/google/cloud/advisorynotifications/v1/stub/advisorynotificationsservicestubsettings/getnotification/SyncGetNotification.java diff --git a/owl-bot-staging/java-advisorynotifications/v1/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java b/owl-bot-staging/java-advisorynotifications/v1/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java deleted file mode 100644 index f55e0447e9cc..000000000000 --- a/owl-bot-staging/java-advisorynotifications/v1/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java +++ /dev/null @@ -1,409 +0,0 @@ -package com.google.cloud.advisorynotifications.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
- * Service to manage Security and Privacy Notifications.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/cloud/advisorynotifications/v1/service.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AdvisoryNotificationsServiceGrpc { - - private AdvisoryNotificationsServiceGrpc() {} - - public static final String SERVICE_NAME = "google.cloud.advisorynotifications.v1.AdvisoryNotificationsService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListNotificationsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListNotifications", - requestType = com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.class, - responseType = com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListNotificationsMethod() { - io.grpc.MethodDescriptor getListNotificationsMethod; - if ((getListNotificationsMethod = AdvisoryNotificationsServiceGrpc.getListNotificationsMethod) == null) { - synchronized (AdvisoryNotificationsServiceGrpc.class) { - if ((getListNotificationsMethod = AdvisoryNotificationsServiceGrpc.getListNotificationsMethod) == null) { - AdvisoryNotificationsServiceGrpc.getListNotificationsMethod = getListNotificationsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListNotifications")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse.getDefaultInstance())) - .setSchemaDescriptor(new AdvisoryNotificationsServiceMethodDescriptorSupplier("ListNotifications")) - .build(); - } - } - } - return getListNotificationsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetNotificationMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetNotification", - requestType = com.google.cloud.advisorynotifications.v1.GetNotificationRequest.class, - responseType = com.google.cloud.advisorynotifications.v1.Notification.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetNotificationMethod() { - io.grpc.MethodDescriptor getGetNotificationMethod; - if ((getGetNotificationMethod = AdvisoryNotificationsServiceGrpc.getGetNotificationMethod) == null) { - synchronized (AdvisoryNotificationsServiceGrpc.class) { - if ((getGetNotificationMethod = AdvisoryNotificationsServiceGrpc.getGetNotificationMethod) == null) { - AdvisoryNotificationsServiceGrpc.getGetNotificationMethod = getGetNotificationMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNotification")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.advisorynotifications.v1.Notification.getDefaultInstance())) - .setSchemaDescriptor(new AdvisoryNotificationsServiceMethodDescriptorSupplier("GetNotification")) - .build(); - } - } - } - return getGetNotificationMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static AdvisoryNotificationsServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdvisoryNotificationsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceStub(channel, callOptions); - } - }; - return AdvisoryNotificationsServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AdvisoryNotificationsServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdvisoryNotificationsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceBlockingStub(channel, callOptions); - } - }; - return AdvisoryNotificationsServiceBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static AdvisoryNotificationsServiceFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AdvisoryNotificationsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceFutureStub(channel, callOptions); - } - }; - return AdvisoryNotificationsServiceFutureStub.newStub(factory, channel); - } - - /** - *
-   * Service to manage Security and Privacy Notifications.
-   * 
- */ - public interface AsyncService { - - /** - *
-     * Lists notifications under a given parent.
-     * 
- */ - default void listNotifications(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListNotificationsMethod(), responseObserver); - } - - /** - *
-     * Gets a notification.
-     * 
- */ - default void getNotification(com.google.cloud.advisorynotifications.v1.GetNotificationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNotificationMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service AdvisoryNotificationsService. - *
-   * Service to manage Security and Privacy Notifications.
-   * 
- */ - public static abstract class AdvisoryNotificationsServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return AdvisoryNotificationsServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service AdvisoryNotificationsService. - *
-   * Service to manage Security and Privacy Notifications.
-   * 
- */ - public static final class AdvisoryNotificationsServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AdvisoryNotificationsServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdvisoryNotificationsServiceStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceStub(channel, callOptions); - } - - /** - *
-     * Lists notifications under a given parent.
-     * 
- */ - public void listNotifications(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListNotificationsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
-     * Gets a notification.
-     * 
- */ - public void getNotification(com.google.cloud.advisorynotifications.v1.GetNotificationRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetNotificationMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service AdvisoryNotificationsService. - *
-   * Service to manage Security and Privacy Notifications.
-   * 
- */ - public static final class AdvisoryNotificationsServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AdvisoryNotificationsServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdvisoryNotificationsServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceBlockingStub(channel, callOptions); - } - - /** - *
-     * Lists notifications under a given parent.
-     * 
- */ - public com.google.cloud.advisorynotifications.v1.ListNotificationsResponse listNotifications(com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListNotificationsMethod(), getCallOptions(), request); - } - - /** - *
-     * Gets a notification.
-     * 
- */ - public com.google.cloud.advisorynotifications.v1.Notification getNotification(com.google.cloud.advisorynotifications.v1.GetNotificationRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetNotificationMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service AdvisoryNotificationsService. - *
-   * Service to manage Security and Privacy Notifications.
-   * 
- */ - public static final class AdvisoryNotificationsServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AdvisoryNotificationsServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AdvisoryNotificationsServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AdvisoryNotificationsServiceFutureStub(channel, callOptions); - } - - /** - *
-     * Lists notifications under a given parent.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture listNotifications( - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListNotificationsMethod(), getCallOptions()), request); - } - - /** - *
-     * Gets a notification.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture getNotification( - com.google.cloud.advisorynotifications.v1.GetNotificationRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetNotificationMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_NOTIFICATIONS = 0; - private static final int METHODID_GET_NOTIFICATION = 1; - - 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 AsyncService serviceImpl; - private final int methodId; - - MethodHandlers(AsyncService 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_LIST_NOTIFICATIONS: - serviceImpl.listNotifications((com.google.cloud.advisorynotifications.v1.ListNotificationsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_NOTIFICATION: - serviceImpl.getNotification((com.google.cloud.advisorynotifications.v1.GetNotificationRequest) 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(); - } - } - } - - public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListNotificationsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.advisorynotifications.v1.ListNotificationsRequest, - com.google.cloud.advisorynotifications.v1.ListNotificationsResponse>( - service, METHODID_LIST_NOTIFICATIONS))) - .addMethod( - getGetNotificationMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.advisorynotifications.v1.GetNotificationRequest, - com.google.cloud.advisorynotifications.v1.Notification>( - service, METHODID_GET_NOTIFICATION))) - .build(); - } - - private static abstract class AdvisoryNotificationsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AdvisoryNotificationsServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.advisorynotifications.v1.ServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AdvisoryNotificationsService"); - } - } - - private static final class AdvisoryNotificationsServiceFileDescriptorSupplier - extends AdvisoryNotificationsServiceBaseDescriptorSupplier { - AdvisoryNotificationsServiceFileDescriptorSupplier() {} - } - - private static final class AdvisoryNotificationsServiceMethodDescriptorSupplier - extends AdvisoryNotificationsServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AdvisoryNotificationsServiceMethodDescriptorSupplier(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 (AdvisoryNotificationsServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AdvisoryNotificationsServiceFileDescriptorSupplier()) - .addMethod(getListNotificationsMethod()) - .addMethod(getGetNotificationMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java b/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java deleted file mode 100644 index b598bdc22e84..000000000000 --- a/owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java +++ /dev/null @@ -1,259 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/advisorynotifications/v1/service.proto - -package com.google.cloud.advisorynotifications.v1; - -public final class ServiceProto { - private ServiceProto() {} - 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_advisorynotifications_v1_Notification_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Text_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Message_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n3google/cloud/advisorynotifications/v1/" + - "service.proto\022%google.cloud.advisorynoti" + - "fications.v1\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032\037google/protobuf/timestamp.proto" + - "\"\263\003\n\014Notification\022\014\n\004name\030\001 \001(\t\022?\n\007subje" + - "ct\030\002 \001(\0132..google.cloud.advisorynotifica" + - "tions.v1.Subject\022@\n\010messages\030\003 \003(\0132..goo" + - "gle.cloud.advisorynotifications.v1.Messa" + - "ge\0224\n\013create_time\030\004 \001(\0132\032.google.protobu" + - "f.TimestampB\003\340A\003\022R\n\021notification_type\030\014 " + - "\001(\01627.google.cloud.advisorynotifications" + - ".v1.NotificationType:\207\001\352A\203\001\n1advisorynot" + - "ifications.googleapis.com/Notification\022N" + - "organizations/{organization}/locations/{" + - "location}/notifications/{notification}\"\205" + - "\001\n\004Text\022\017\n\007en_text\030\001 \001(\t\022\026\n\016localized_te" + - "xt\030\002 \001(\t\022T\n\022localization_state\030\003 \001(\01628.g" + - "oogle.cloud.advisorynotifications.v1.Loc" + - "alizationState\"D\n\007Subject\0229\n\004text\030\001 \001(\0132" + - "+.google.cloud.advisorynotifications.v1." + - "Text\"\277\002\n\007Message\022A\n\004body\030\001 \001(\01323.google." + - "cloud.advisorynotifications.v1.Message.B" + - "ody\022F\n\013attachments\030\002 \003(\01321.google.cloud." + - "advisorynotifications.v1.Attachment\022/\n\013c" + - "reate_time\030\003 \001(\0132\032.google.protobuf.Times" + - "tamp\0225\n\021localization_time\030\004 \001(\0132\032.google" + - ".protobuf.Timestamp\032A\n\004Body\0229\n\004text\030\001 \001(" + - "\0132+.google.cloud.advisorynotifications.v" + - "1.Text\"e\n\nAttachment\0229\n\003csv\030\002 \001(\0132*.goog" + - "le.cloud.advisorynotifications.v1.CsvH\000\022" + - "\024\n\014display_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n\007" + - "headers\030\001 \003(\t\022D\n\tdata_rows\030\002 \003(\01321.googl" + - "e.cloud.advisorynotifications.v1.Csv.Csv" + - "Row\032\031\n\006CsvRow\022\017\n\007entries\030\001 \003(\t\"\352\001\n\030ListN" + - "otificationsRequest\022I\n\006parent\030\001 \001(\tB9\340A\002" + - "\372A3\0221advisorynotifications.googleapis.co" + - "m/Notification\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npag" + - "e_token\030\003 \001(\t\022E\n\004view\030\004 \001(\01627.google.clo" + - "ud.advisorynotifications.v1.Notification" + - "View\022\025\n\rlanguage_code\030\005 \001(\t\"\224\001\n\031ListNoti" + - "ficationsResponse\022J\n\rnotifications\030\001 \003(\013" + - "23.google.cloud.advisorynotifications.v1" + - ".Notification\022\027\n\017next_page_token\030\002 \001(\t\022\022" + - "\n\ntotal_size\030\003 \001(\005\"x\n\026GetNotificationReq" + - "uest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1advisorynoti" + - "fications.googleapis.com/Notification\022\025\n" + - "\rlanguage_code\030\005 \001(\t*J\n\020NotificationView" + - "\022!\n\035NOTIFICATION_VIEW_UNSPECIFIED\020\000\022\t\n\005B" + - "ASIC\020\001\022\010\n\004FULL\020\002*\240\001\n\021LocalizationState\022\"" + - "\n\036LOCALIZATION_STATE_UNSPECIFIED\020\000\022%\n!LO" + - "CALIZATION_STATE_NOT_APPLICABLE\020\001\022\036\n\032LOC" + - "ALIZATION_STATE_PENDING\020\002\022 \n\034LOCALIZATIO" + - "N_STATE_COMPLETED\020\003*\217\001\n\020NotificationType" + - "\022!\n\035NOTIFICATION_TYPE_UNSPECIFIED\020\000\022/\n+N" + - "OTIFICATION_TYPE_SECURITY_PRIVACY_ADVISO" + - "RY\020\001\022\'\n#NOTIFICATION_TYPE_SENSITIVE_ACTI" + - "ONS\020\0022\251\004\n\034AdvisoryNotificationsService\022\337" + - "\001\n\021ListNotifications\022?.google.cloud.advi" + - "sorynotifications.v1.ListNotificationsRe" + - "quest\032@.google.cloud.advisorynotificatio" + - "ns.v1.ListNotificationsResponse\"G\202\323\344\223\0028\022" + - "6/v1/{parent=organizations/*/locations/*" + - "}/notifications\332A\006parent\022\314\001\n\017GetNotifica" + - "tion\022=.google.cloud.advisorynotification" + - "s.v1.GetNotificationRequest\0323.google.clo" + - "ud.advisorynotifications.v1.Notification" + - "\"E\202\323\344\223\0028\0226/v1/{name=organizations/*/loca" + - "tions/*/notifications/*}\332A\004name\032X\312A$advi" + - "sorynotifications.googleapis.com\322A.https" + - "://www.googleapis.com/auth/cloud-platfor" + - "mB\374\002\n)com.google.cloud.advisorynotificat" + - "ions.v1B\014ServiceProtoP\001Z_cloud.google.co" + - "m/go/advisorynotifications/apiv1/advisor" + - "ynotificationspb;advisorynotificationspb" + - "\252\002%Google.Cloud.AdvisoryNotifications.V1" + - "\312\002%Google\\Cloud\\AdvisoryNotifications\\V1" + - "\352\002(Google::Cloud::AdvisoryNotifications:" + - ":V1\352Ab\n-advisorynotifications.googleapis" + - ".com/Location\0221organizations/{organizati" + - "on}/locations/{location}b\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.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_advisorynotifications_v1_Notification_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Notification_descriptor, - new java.lang.String[] { "Name", "Subject", "Messages", "CreateTime", "NotificationType", }); - internal_static_google_cloud_advisorynotifications_v1_Text_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_advisorynotifications_v1_Text_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Text_descriptor, - new java.lang.String[] { "EnText", "LocalizedText", "LocalizationState", }); - internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_advisorynotifications_v1_Subject_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Subject_descriptor, - new java.lang.String[] { "Text", }); - internal_static_google_cloud_advisorynotifications_v1_Message_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_advisorynotifications_v1_Message_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Message_descriptor, - new java.lang.String[] { "Body", "Attachments", "CreateTime", "LocalizationTime", }); - internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor = - internal_static_google_cloud_advisorynotifications_v1_Message_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_advisorynotifications_v1_Message_Body_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Message_Body_descriptor, - new java.lang.String[] { "Text", }); - internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_advisorynotifications_v1_Attachment_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Attachment_descriptor, - new java.lang.String[] { "Csv", "DisplayName", "Data", }); - internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_advisorynotifications_v1_Csv_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor, - new java.lang.String[] { "Headers", "DataRows", }); - internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor = - internal_static_google_cloud_advisorynotifications_v1_Csv_descriptor.getNestedTypes().get(0); - internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_Csv_CsvRow_descriptor, - new java.lang.String[] { "Entries", }); - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "View", "LanguageCode", }); - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_ListNotificationsResponse_descriptor, - new java.lang.String[] { "Notifications", "NextPageToken", "TotalSize", }); - internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_advisorynotifications_v1_GetNotificationRequest_descriptor, - new java.lang.String[] { "Name", "LanguageCode", }); - 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.resourceDefinition); - 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.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -}