From befdf4d24ce6ddc458ffbcdf38aef957e88abdd9 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 31 Jul 2023 19:02:10 +0000 Subject: [PATCH 1/2] feat: adding notification types to advisorynotifications.googleapis.com libraries adding NOTIFICATION_TYPE_SECURITY_MSA and NOTIFICATION_TYPE_THREAT_HORIZONS values to NotificationType enum of advisorynotifications.googleapis.com Cloud Client library PiperOrigin-RevId: 552514004 Source-Link: https://github.com/googleapis/googleapis/commit/9ae0377ab01a95279cd65116849207bab9de44ce Source-Link: https://github.com/googleapis/googleapis-gen/commit/ca2d7184904e934c03cfc3e49caece34f2e86006 Copy-Tag: eyJwIjoiamF2YS1hZHZpc29yeW5vdGlmaWNhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6ImNhMmQ3MTg0OTA0ZTkzNGMwM2NmYzNlNDljYWVjZTM0ZjJlODYwMDYifQ== --- .../v1/AdvisoryNotificationsServiceGrpc.java | 516 --------- .../v1/ServiceProto.java | 288 ----- .../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 .../reflect-config.json | 0 ...otificationsServiceClientHttpJsonTest.java | 0 ...dvisoryNotificationsServiceClientTest.java | 0 .../v1/MockAdvisoryNotificationsService.java | 0 .../MockAdvisoryNotificationsServiceImpl.java | 0 .../v1/AdvisoryNotificationsServiceGrpc.java | 409 +++++++ .../advisorynotifications/v1/Attachment.java | 450 +++----- .../v1/AttachmentOrBuilder.java | 35 +- .../cloud/advisorynotifications/v1/Csv.java | 850 ++++++-------- .../v1/CsvOrBuilder.java | 54 +- .../v1/GetNotificationRequest.java | 445 +++----- .../v1/GetNotificationRequestOrBuilder.java | 44 +- .../v1/ListNotificationsRequest.java | 628 ++++------ .../v1/ListNotificationsRequestOrBuilder.java | 62 +- .../v1/ListNotificationsResponse.java | 547 ++++----- .../ListNotificationsResponseOrBuilder.java | 45 +- .../v1/LocalizationState.java | 91 +- .../v1/LocationName.java | 0 .../advisorynotifications/v1/Message.java | 1017 ++++++----------- .../v1/MessageOrBuilder.java | 60 +- .../v1/Notification.java | 776 +++++-------- .../v1/NotificationName.java | 0 .../v1/NotificationOrBuilder.java | 76 +- .../v1/NotificationType.java | 120 +- .../v1/NotificationView.java | 86 +- .../v1/ServiceProto.java | 262 +++++ .../advisorynotifications/v1/Subject.java | 347 +++--- .../v1/SubjectOrBuilder.java | 26 +- .../cloud/advisorynotifications/v1/Text.java | 455 +++----- .../v1/TextOrBuilder.java | 42 +- .../advisorynotifications/v1/service.proto | 8 + .../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 57 files changed, 2965 insertions(+), 4776 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/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientHttpJsonTest.java (100%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/google-cloud-advisorynotifications/src/test/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceClientTest.java (100%) 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 (70%) 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 (78%) rename {java-advisorynotifications => owl-bot-staging/java-advisorynotifications/v1}/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java (64%) 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 (97%) 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 4372b349f28b..000000000000 --- a/java-advisorynotifications/grpc-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/AdvisoryNotificationsServiceGrpc.java +++ /dev/null @@ -1,516 +0,0 @@ -/* - * 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. - * 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/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 65931efb486d..000000000000 --- a/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java +++ /dev/null @@ -1,288 +0,0 @@ -/* - * 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. - * 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" - + "\"\264\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\0225\n\013create_time\030\004 \001(\0132\032.google.protobu" - + "f.TimestampB\004\342A\001\003\022R\n\021notification_type\030\014" - + " \001(\01627.google.cloud.advisorynotification" - + "s.v1.NotificationType:\207\001\352A\203\001\n1advisoryno" - + "tifications.googleapis.com/Notification\022" - + "Norganizations/{organization}/locations/" - + "{location}/notifications/{notification}\"" - + "\205\001\n\004Text\022\017\n\007en_text\030\001 \001(\t\022\026\n\016localized_t" - + "ext\030\002 \001(\t\022T\n\022localization_state\030\003 \001(\01628." - + "google.cloud.advisorynotifications.v1.Lo" - + "calizationState\"D\n\007Subject\0229\n\004text\030\001 \001(\013" - + "2+.google.cloud.advisorynotifications.v1" - + ".Text\"\277\002\n\007Message\022A\n\004body\030\001 \001(\01323.google" - + ".cloud.advisorynotifications.v1.Message." - + "Body\022F\n\013attachments\030\002 \003(\01321.google.cloud" - + ".advisorynotifications.v1.Attachment\022/\n\013" - + "create_time\030\003 \001(\0132\032.google.protobuf.Time" - + "stamp\0225\n\021localization_time\030\004 \001(\0132\032.googl" - + "e.protobuf.Timestamp\032A\n\004Body\0229\n\004text\030\001 \001" - + "(\0132+.google.cloud.advisorynotifications." - + "v1.Text\"e\n\nAttachment\0229\n\003csv\030\002 \001(\0132*.goo" - + "gle.cloud.advisorynotifications.v1.CsvH\000" - + "\022\024\n\014display_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n" - + "\007headers\030\001 \003(\t\022D\n\tdata_rows\030\002 \003(\01321.goog" - + "le.cloud.advisorynotifications.v1.Csv.Cs" - + "vRow\032\031\n\006CsvRow\022\017\n\007entries\030\001 \003(\t\"\353\001\n\030List" - + "NotificationsRequest\022J\n\006parent\030\001 \001(\tB:\342A" - + "\001\002\372A3\0221advisorynotifications.googleapis." - + "com/Notification\022\021\n\tpage_size\030\002 \001(\005\022\022\n\np" - + "age_token\030\003 \001(\t\022E\n\004view\030\004 \001(\01627.google.c" - + "loud.advisorynotifications.v1.Notificati" - + "onView\022\025\n\rlanguage_code\030\005 \001(\t\"\224\001\n\031ListNo" - + "tificationsResponse\022J\n\rnotifications\030\001 \003" - + "(\01323.google.cloud.advisorynotifications." - + "v1.Notification\022\027\n\017next_page_token\030\002 \001(\t" - + "\022\022\n\ntotal_size\030\003 \001(\005\"y\n\026GetNotificationR" - + "equest\022H\n\004name\030\001 \001(\tB:\342A\001\002\372A3\n1advisoryn" - + "otifications.googleapis.com/Notification" - + "\022\025\n\rlanguage_code\030\005 \001(\t*J\n\020NotificationV" - + "iew\022!\n\035NOTIFICATION_VIEW_UNSPECIFIED\020\000\022\t" - + "\n\005BASIC\020\001\022\010\n\004FULL\020\002*\240\001\n\021LocalizationStat" - + "e\022\"\n\036LOCALIZATION_STATE_UNSPECIFIED\020\000\022%\n" - + "!LOCALIZATION_STATE_NOT_APPLICABLE\020\001\022\036\n\032" - + "LOCALIZATION_STATE_PENDING\020\002\022 \n\034LOCALIZA" - + "TION_STATE_COMPLETED\020\003*\217\001\n\020NotificationT" - + "ype\022!\n\035NOTIFICATION_TYPE_UNSPECIFIED\020\000\022/" - + "\n+NOTIFICATION_TYPE_SECURITY_PRIVACY_ADV" - + "ISORY\020\001\022\'\n#NOTIFICATION_TYPE_SENSITIVE_A" - + "CTIONS\020\0022\251\004\n\034AdvisoryNotificationsServic" - + "e\022\337\001\n\021ListNotifications\022?.google.cloud.a" - + "dvisorynotifications.v1.ListNotification" - + "sRequest\032@.google.cloud.advisorynotifica" - + "tions.v1.ListNotificationsResponse\"G\332A\006p" - + "arent\202\323\344\223\0028\0226/v1/{parent=organizations/*" - + "/locations/*}/notifications\022\314\001\n\017GetNotif" - + "ication\022=.google.cloud.advisorynotificat" - + "ions.v1.GetNotificationRequest\0323.google." - + "cloud.advisorynotifications.v1.Notificat" - + "ion\"E\332A\004name\202\323\344\223\0028\0226/v1/{name=organizati" - + "ons/*/locations/*/notifications/*}\032X\312A$a" - + "dvisorynotifications.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-plat" - + "formB\374\002\n)com.google.cloud.advisorynotifi" - + "cations.v1B\014ServiceProtoP\001Z_cloud.google" - + ".com/go/advisorynotifications/apiv1/advi" - + "sorynotificationspb;advisorynotification" - + "spb\252\002%Google.Cloud.AdvisoryNotifications" - + ".V1\312\002%Google\\Cloud\\AdvisoryNotifications" - + "\\V1\352\002(Google::Cloud::AdvisoryNotificatio" - + "ns::V1\352Ab\n-advisorynotifications.googlea" - + "pis.com/Location\0221organizations/{organiz" - + "ation}/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/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 176b8a455ecf..d51d73175462 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 524a601ece03..ef8de9f89852 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/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json b/owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json similarity index 100% rename from java-advisorynotifications/google-cloud-advisorynotifications/src/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json rename to owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json 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 100% 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 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 100% 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 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 067afbc4acf3..3c3688e8934d 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,80 +1,57 @@ -/* - * 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. - * 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(); } - 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; - @SuppressWarnings("serial") 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; } @@ -90,34 +67,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 @@ -125,26 +97,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.
    * 
@@ -154,24 +121,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 @@ -180,29 +143,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 { @@ -211,7 +174,6 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -223,7 +185,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_); } @@ -243,9 +206,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; @@ -255,19 +217,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: @@ -299,135 +262,131 @@ 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(); @@ -442,9 +401,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 @@ -463,11 +422,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; @@ -483,7 +439,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(); } } @@ -492,39 +449,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; @@ -532,23 +488,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(); @@ -576,25 +529,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) { @@ -604,12 +556,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() { @@ -622,19 +574,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 @@ -642,14 +588,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 @@ -667,8 +610,6 @@ public com.google.cloud.advisorynotifications.v1.Csv getCsv() { } } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -689,15 +630,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(); @@ -708,8 +648,6 @@ public Builder setCsv(com.google.cloud.advisorynotifications.v1.Csv.Builder buil return this; } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -718,13 +656,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; } @@ -740,8 +675,6 @@ public Builder mergeCsv(com.google.cloud.advisorynotifications.v1.Csv value) { return this; } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -765,8 +698,6 @@ public Builder clearCsv() { return this; } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -777,8 +708,6 @@ public com.google.cloud.advisorynotifications.v1.Csv.Builder getCsvBuilder() { return getCsvFieldBuilder().getBuilder(); } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -797,8 +726,6 @@ public com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder() } } /** - * - * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -806,19 +733,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()); @@ -831,20 +753,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; @@ -853,21 +773,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 { @@ -875,35 +794,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() { @@ -913,30 +825,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); } @@ -946,12 +854,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(); } @@ -960,27 +868,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; @@ -995,4 +903,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 8f8de6d70f1b..d75e66fc1a73 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 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. - * 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(); 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 9145afc243bd..8fafc479c0a6 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 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. - * 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,191 +11,167 @@
  *
  * 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.emptyList();
+    headers_ =
+        com.google.protobuf.LazyStringArrayList.emptyList();
     dataRows_ = 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 Csv();
   }
 
-  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.emptyList(); + entries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new CsvRow(); } - 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.LazyStringArrayList entries_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
      * 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. */ @@ -220,24 +179,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; @@ -249,7 +205,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)); } @@ -278,15 +235,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; } @@ -308,94 +265,89 @@ 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 @@ -405,53 +357,52 @@ 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(); bitField0_ = 0; - entries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + entries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); 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_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 @@ -470,11 +421,8 @@ 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); - if (bitField0_ != 0) { - buildPartial0(result); - } + com.google.cloud.advisorynotifications.v1.Csv.CsvRow result = new com.google.cloud.advisorynotifications.v1.Csv.CsvRow(this); + if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } @@ -491,41 +439,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; @@ -533,8 +478,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_; @@ -571,20 +515,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) { @@ -594,12 +536,10 @@ public Builder mergeFrom( } // finally return this; } - private int bitField0_; private com.google.protobuf.LazyStringArrayList entries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureEntriesIsMutable() { if (!entries_.isModifiable()) { entries_ = new com.google.protobuf.LazyStringArrayList(entries_); @@ -607,46 +547,38 @@ private void ensureEntriesIsMutable() { 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() { entries_.makeImmutable(); 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. */ @@ -654,39 +586,33 @@ 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); bitField0_ |= 0x00000001; @@ -694,22 +620,18 @@ public Builder setEntries(int index, java.lang.String value) { 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); bitField0_ |= 0x00000001; @@ -717,61 +639,53 @@ public Builder addEntries(java.lang.String value) { 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_); bitField0_ |= 0x00000001; 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() { - entries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + entries_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; 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 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); @@ -779,7 +693,6 @@ public Builder addEntriesBytes(com.google.protobuf.ByteString value) { onChanged(); return this; } - @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -792,12 +705,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(); } @@ -806,28 +719,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; @@ -842,50 +754,42 @@ 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.LazyStringArrayList headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** - * - * *
    * 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. */ @@ -893,28 +797,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.
@@ -927,8 +826,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.
@@ -937,13 +834,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.
@@ -956,8 +851,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.
@@ -970,8 +863,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.
@@ -986,7 +877,6 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRows
   }
 
   private byte memoizedIsInitialized = -1;
-
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -998,7 +888,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));
     }
@@ -1023,7 +914,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;
@@ -1033,16 +925,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;
   }
@@ -1067,104 +960,99 @@ 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.
@@ -1172,37 +1060,39 @@ 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();
       bitField0_ = 0;
-      headers_ = com.google.protobuf.LazyStringArrayList.emptyList();
+      headers_ =
+          com.google.protobuf.LazyStringArrayList.emptyList();
       if (dataRowsBuilder_ == null) {
         dataRows_ = java.util.Collections.emptyList();
       } else {
@@ -1214,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
@@ -1235,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;
     }
@@ -1269,39 +1156,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;
@@ -1338,10 +1224,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_);
           }
@@ -1373,34 +1258,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) {
@@ -1410,12 +1292,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList headers_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
-
     private void ensureHeadersIsMutable() {
       if (!headers_.isModifiable()) {
         headers_ = new com.google.protobuf.LazyStringArrayList(headers_);
@@ -1423,43 +1303,35 @@ private void ensureHeadersIsMutable() {
       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() { headers_.makeImmutable(); 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. */ @@ -1467,37 +1339,31 @@ 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); bitField0_ |= 0x00000001; @@ -1505,21 +1371,17 @@ public Builder setHeaders(int index, java.lang.String value) { 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); bitField0_ |= 0x00000001; @@ -1527,58 +1389,50 @@ public Builder addHeaders(java.lang.String value) { 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_); bitField0_ |= 0x00000001; 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() { - headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; + headers_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); 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); @@ -1588,26 +1442,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.
@@ -1623,8 +1469,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.
@@ -1640,8 +1484,6 @@ public int getDataRowsCount() {
       }
     }
     /**
-     *
-     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1657,8 +1499,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.
@@ -1681,8 +1521,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.
@@ -1702,8 +1540,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.
@@ -1725,8 +1561,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.
@@ -1749,8 +1583,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.
@@ -1770,8 +1602,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.
@@ -1791,8 +1621,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.
@@ -1804,7 +1632,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);
@@ -1812,8 +1641,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.
@@ -1832,8 +1659,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.
@@ -1852,8 +1677,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.
@@ -1866,8 +1689,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.
@@ -1878,14 +1699,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.
@@ -1893,8 +1711,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 {
@@ -1902,8 +1720,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.
@@ -1912,12 +1728,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.
@@ -1927,13 +1741,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.
@@ -1941,30 +1752,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);
     }
 
@@ -1974,12 +1782,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();
   }
@@ -1988,27 +1796,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;
@@ -2023,4 +1831,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 dad9cd8fd4e0..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 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.
- * 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 305682903286..712551852f27 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 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.
- * 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,42 +26,35 @@ private GetNotificationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new GetNotificationRequest(); } - 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 @@ -88,33 +63,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 { @@ -123,12 +96,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
@@ -138,7 +108,6 @@ public com.google.protobuf.ByteString getNameBytes() {
    * 
* * string language_code = 5; - * * @return The languageCode. */ @java.lang.Override @@ -147,15 +116,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
@@ -165,15 +133,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 { @@ -182,7 +151,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -194,7 +162,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_); } @@ -224,16 +193,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; } @@ -255,136 +225,131 @@ 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(); @@ -395,14 +360,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(); } @@ -417,17 +381,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_; @@ -441,50 +401,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; @@ -521,25 +477,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) { @@ -549,29 +502,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; @@ -580,25 +528,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 { @@ -606,43 +551,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() { @@ -652,25 +586,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; @@ -680,8 +608,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
@@ -691,13 +617,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; @@ -706,8 +632,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
@@ -717,14 +641,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 { @@ -732,8 +657,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
@@ -743,22 +666,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
@@ -768,7 +687,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 5; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -778,8 +696,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
@@ -789,23 +705,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); } @@ -815,43 +729,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; @@ -863,8 +775,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 2a57837810db..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 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. - * 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 77f5e2967c6a..e2c36dd026fe 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 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. - * 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,41 +28,34 @@ private ListNotificationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationsRequest(); } - 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 @@ -89,32 +64,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 { @@ -125,8 +98,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
@@ -135,7 +106,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -144,12 +114,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
@@ -157,7 +124,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -166,15 +132,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
@@ -182,15 +147,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 { @@ -201,49 +167,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
@@ -253,7 +205,6 @@ public com.google.cloud.advisorynotifications.v1.NotificationView getView() {
    * 
* * string language_code = 5; - * * @return The languageCode. */ @java.lang.Override @@ -262,15 +213,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
@@ -280,15 +230,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 { @@ -297,7 +248,6 @@ public com.google.protobuf.ByteString getLanguageCodeBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -309,7 +259,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_); } @@ -319,9 +270,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_)) { @@ -340,15 +289,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_); @@ -361,19 +310,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; } @@ -401,138 +353,131 @@ 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(); @@ -546,16 +491,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 @@ -569,17 +512,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_; @@ -602,51 +541,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; @@ -694,43 +628,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) { @@ -740,28 +668,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; @@ -770,24 +693,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 { @@ -795,41 +715,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() { @@ -839,24 +748,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; @@ -864,10 +767,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
@@ -876,7 +777,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -884,8 +784,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
@@ -894,7 +792,6 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -906,8 +803,6 @@ public Builder setPageSize(int value) { 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
@@ -916,7 +811,6 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -928,8 +822,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
@@ -937,13 +829,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; @@ -952,8 +844,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -961,14 +851,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 { @@ -976,8 +867,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -985,22 +874,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
@@ -1008,7 +893,6 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -1018,8 +902,6 @@ public Builder clearPageToken() { return this; } /** - * - * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -1027,14 +909,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; @@ -1044,31 +924,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. */ @@ -1079,35 +952,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. */ @@ -1121,15 +985,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() { @@ -1141,8 +1002,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
@@ -1152,13 +1011,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; @@ -1167,8 +1026,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
@@ -1178,14 +1035,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 { @@ -1193,8 +1051,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
@@ -1204,22 +1060,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
@@ -1229,7 +1081,6 @@ public Builder setLanguageCode(java.lang.String value) {
      * 
* * string language_code = 5; - * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1239,8 +1090,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
@@ -1250,23 +1099,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); } @@ -1276,43 +1123,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; @@ -1324,8 +1169,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 dab647663324..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 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. - * 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 300b569e2234..c98f55f60604 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 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. - * 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,32 +26,28 @@ private ListNotificationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListNotificationsResponse(); } - 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.
    * 
@@ -77,13 +55,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.
    * 
@@ -91,13 +66,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.
    * 
@@ -109,8 +82,6 @@ public int getNotificationsCount() { return notifications_.size(); } /** - * - * *
    * List of notifications under a given parent.
    * 
@@ -122,8 +93,6 @@ public com.google.cloud.advisorynotifications.v1.Notification getNotifications(i return notifications_.get(index); } /** - * - * *
    * List of notifications under a given parent.
    * 
@@ -137,19 +106,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 @@ -158,30 +123,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 { @@ -192,14 +157,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 @@ -208,7 +170,6 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,7 +181,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)); } @@ -240,13 +202,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; @@ -256,17 +220,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; } @@ -292,138 +258,131 @@ 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(); @@ -441,16 +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_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 @@ -464,18 +421,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_); @@ -487,8 +440,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_; @@ -502,51 +454,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()) { @@ -565,10 +512,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_); } @@ -608,39 +554,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) { @@ -650,38 +592,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 { @@ -689,8 +621,6 @@ private void ensureNotificationsIsMutable() { } } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -705,8 +635,6 @@ public int getNotificationsCount() { } } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -721,8 +649,6 @@ public com.google.cloud.advisorynotifications.v1.Notification getNotifications(i } } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -744,8 +670,6 @@ public Builder setNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -764,8 +688,6 @@ public Builder setNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -786,8 +708,6 @@ public Builder addNotifications(com.google.cloud.advisorynotifications.v1.Notifi return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -809,8 +729,6 @@ public Builder addNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -829,8 +747,6 @@ public Builder addNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -849,8 +765,6 @@ public Builder addNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -858,11 +772,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); @@ -870,8 +784,6 @@ public Builder addAllNotifications( return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -889,8 +801,6 @@ public Builder clearNotifications() { return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -908,8 +818,6 @@ public Builder removeNotifications(int index) { return this; } /** - * - * *
      * List of notifications under a given parent.
      * 
@@ -921,33 +829,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 { @@ -955,22 +858,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.
      * 
@@ -979,35 +877,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(), @@ -1019,21 +908,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; @@ -1042,22 +929,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 { @@ -1065,37 +951,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() { @@ -1105,22 +984,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; @@ -1128,16 +1003,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 @@ -1145,14 +1017,11 @@ 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. */ @@ -1164,14 +1033,11 @@ public Builder setTotalSize(int value) { return this; } /** - * - * *
      * Estimation of a total number of notifications.
      * 
* * int32 total_size = 3; - * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1180,9 +1046,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); } @@ -1192,43 +1058,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; @@ -1240,8 +1104,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 b619acde8fc4..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 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. - * 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 f8c4ca475019..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 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. - * 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 2032a58f85d1..b5e39cf7cf3e 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,99 +1,71 @@ -/* - * 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. - * 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(); } - 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.
      * 
@@ -103,58 +75,52 @@ 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(); } - 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 @@ -162,25 +128,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.
      * 
@@ -189,13 +148,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; @@ -207,7 +163,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()); } @@ -221,7 +178,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; @@ -231,17 +189,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; @@ -264,94 +222,89 @@ 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 @@ -361,41 +314,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(); @@ -409,9 +360,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 @@ -430,11 +381,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; } @@ -442,7 +390,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(); } } @@ -450,41 +400,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; @@ -492,8 +439,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()); } @@ -523,19 +469,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) { @@ -545,52 +491,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.
        * 
@@ -611,8 +543,6 @@ public Builder setText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** - * - * *
        * The text content of the message body.
        * 
@@ -631,8 +561,6 @@ public Builder setText( return this; } /** - * - * *
        * The text content of the message body.
        * 
@@ -641,9 +569,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; @@ -656,8 +584,6 @@ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** - * - * *
        * The text content of the message body.
        * 
@@ -675,8 +601,6 @@ public Builder clearText() { return this; } /** - * - * *
        * The text content of the message body.
        * 
@@ -689,8 +613,6 @@ public com.google.cloud.advisorynotifications.v1.Text.Builder getTextBuilder() { return getTextFieldBuilder().getBuilder(); } /** - * - * *
        * The text content of the message body.
        * 
@@ -701,14 +623,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.
        * 
@@ -716,22 +635,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) { @@ -744,12 +659,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(); } @@ -758,28 +673,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; @@ -794,19 +708,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 @@ -814,25 +726,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.
    * 
@@ -841,18 +746,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.
    * 
@@ -864,8 +764,6 @@ public java.util.List getA return attachments_; } /** - * - * *
    * The attachments to download.
    * 
@@ -873,13 +771,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.
    * 
@@ -891,8 +787,6 @@ public int getAttachmentsCount() { return attachments_.size(); } /** - * - * *
    * The attachments to download.
    * 
@@ -904,8 +798,6 @@ public com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int i return attachments_.get(index); } /** - * - * *
    * The attachments to download.
    * 
@@ -921,14 +813,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 @@ -936,14 +825,11 @@ public boolean hasCreateTime() { return createTime_ != null; } /** - * - * *
    * The Message creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 3; - * * @return The createTime. */ @java.lang.Override @@ -951,8 +837,6 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** - * - * *
    * The Message creation timestamp.
    * 
@@ -967,14 +851,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 @@ -982,25 +863,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
    * 
@@ -1009,13 +883,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; @@ -1027,7 +898,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()); } @@ -1050,16 +922,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; @@ -1069,26 +945,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; @@ -1123,135 +1002,131 @@ 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(); @@ -1282,9 +1157,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 @@ -1303,18 +1178,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_); @@ -1329,14 +1200,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(); } } @@ -1344,39 +1220,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; @@ -1384,8 +1259,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()); } @@ -1407,10 +1281,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_); } @@ -1448,46 +1321,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) { @@ -1497,52 +1370,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.
      * 
@@ -1563,8 +1422,6 @@ public Builder setBody(com.google.cloud.advisorynotifications.v1.Message.Body va return this; } /** - * - * *
      * The message content.
      * 
@@ -1583,8 +1440,6 @@ public Builder setBody( return this; } /** - * - * *
      * The message content.
      * 
@@ -1593,10 +1448,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; @@ -1609,8 +1463,6 @@ public Builder mergeBody(com.google.cloud.advisorynotifications.v1.Message.Body return this; } /** - * - * *
      * The message content.
      * 
@@ -1628,8 +1480,6 @@ public Builder clearBody() { return this; } /** - * - * *
      * The message content.
      * 
@@ -1642,8 +1492,6 @@ public com.google.cloud.advisorynotifications.v1.Message.Body.Builder getBodyBui return getBodyFieldBuilder().getBuilder(); } /** - * - * *
      * The message content.
      * 
@@ -1654,14 +1502,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.
      * 
@@ -1669,51 +1514,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 { @@ -1721,8 +1554,6 @@ private void ensureAttachmentsIsMutable() { } } /** - * - * *
      * The attachments to download.
      * 
@@ -1737,8 +1568,6 @@ public int getAttachmentsCount() { } } /** - * - * *
      * The attachments to download.
      * 
@@ -1753,8 +1582,6 @@ public com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int i } } /** - * - * *
      * The attachments to download.
      * 
@@ -1776,8 +1603,6 @@ public Builder setAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1796,8 +1621,6 @@ public Builder setAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1818,8 +1641,6 @@ public Builder addAttachments(com.google.cloud.advisorynotifications.v1.Attachme return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1841,8 +1662,6 @@ public Builder addAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1861,8 +1680,6 @@ public Builder addAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1881,8 +1698,6 @@ public Builder addAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1893,7 +1708,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); @@ -1901,8 +1717,6 @@ public Builder addAllAttachments( return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1920,8 +1734,6 @@ public Builder clearAttachments() { return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1939,8 +1751,6 @@ public Builder removeAttachments(int index) { return this; } /** - * - * *
      * The attachments to download.
      * 
@@ -1952,8 +1762,6 @@ public com.google.cloud.advisorynotifications.v1.Attachment.Builder getAttachmen return getAttachmentsFieldBuilder().getBuilder(index); } /** - * - * *
      * The attachments to download.
      * 
@@ -1963,22 +1771,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 { @@ -1986,8 +1791,6 @@ public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachme } } /** - * - * *
      * The attachments to download.
      * 
@@ -1995,12 +1798,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.
      * 
@@ -2009,36 +1810,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_; @@ -2046,47 +1841,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.
      * 
@@ -2107,15 +1889,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 { @@ -2126,8 +1907,6 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal return this; } /** - * - * *
      * The Message creation timestamp.
      * 
@@ -2136,9 +1915,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; @@ -2151,8 +1930,6 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * The Message creation timestamp.
      * 
@@ -2170,8 +1947,6 @@ public Builder clearCreateTime() { return this; } /** - * - * *
      * The Message creation timestamp.
      * 
@@ -2184,8 +1959,6 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** - * - * *
      * The Message creation timestamp.
      * 
@@ -2196,14 +1969,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.
      * 
@@ -2211,17 +1981,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_; @@ -2229,47 +1996,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
      * 
@@ -2290,15 +2044,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 { @@ -2309,8 +2062,6 @@ public Builder setLocalizationTime(com.google.protobuf.Timestamp.Builder builder return this; } /** - * - * *
      * Time when Message was localized
      * 
@@ -2319,9 +2070,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; @@ -2334,8 +2085,6 @@ public Builder mergeLocalizationTime(com.google.protobuf.Timestamp value) { return this; } /** - * - * *
      * Time when Message was localized
      * 
@@ -2353,8 +2102,6 @@ public Builder clearLocalizationTime() { return this; } /** - * - * *
      * Time when Message was localized
      * 
@@ -2367,8 +2114,6 @@ public com.google.protobuf.Timestamp.Builder getLocalizationTimeBuilder() { return getLocalizationTimeFieldBuilder().getBuilder(); } /** - * - * *
      * Time when Message was localized
      * 
@@ -2379,14 +2124,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
      * 
@@ -2394,24 +2136,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); } @@ -2421,12 +2160,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(); } @@ -2435,27 +2174,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; @@ -2470,4 +2209,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 feac2feb06d2..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 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. - * 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 70% 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 7e6e6b67744f..14e32fae4ca2 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 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. - * 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,16 +11,15 @@
  *
  * 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();
@@ -46,32 +28,28 @@ private Notification() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Notification();
   }
 
-  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:
@@ -79,7 +57,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -88,15 +65,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:
@@ -104,15 +80,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 { @@ -123,14 +100,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 @@ -138,25 +112,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.
    * 
@@ -165,18 +132,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.
    * 
@@ -188,8 +150,6 @@ public java.util.List getMess return messages_; } /** - * - * *
    * A list of messages in the notification.
    * 
@@ -197,13 +157,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.
    * 
@@ -215,8 +173,6 @@ public int getMessagesCount() { return messages_.size(); } /** - * - * *
    * A list of messages in the notification.
    * 
@@ -228,8 +184,6 @@ public com.google.cloud.advisorynotifications.v1.Message getMessages(int index) return messages_.get(index); } /** - * - * *
    * A list of messages in the notification.
    * 
@@ -245,15 +199,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 @@ -261,15 +211,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 @@ -277,14 +223,11 @@ 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() { @@ -294,42 +237,30 @@ 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; @@ -341,7 +272,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_); } @@ -354,9 +286,7 @@ 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()) { + if (notificationType_ != com.google.cloud.advisorynotifications.v1.NotificationType.NOTIFICATION_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(12, notificationType_); } getUnknownFields().writeTo(output); @@ -372,18 +302,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_); + 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; @@ -393,23 +325,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.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; @@ -445,104 +380,98 @@ 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.
@@ -550,32 +479,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();
@@ -603,9 +533,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
@@ -624,18 +554,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_);
@@ -653,10 +579,14 @@ 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_;
@@ -667,39 +597,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;
@@ -707,8 +636,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;
@@ -735,10 +663,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_);
           }
@@ -776,51 +703,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
-            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) {
@@ -830,13 +755,10 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
-
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
-     *
-     *
      * 
      * The resource name of the notification.
      * Format:
@@ -844,13 +766,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; @@ -859,8 +781,6 @@ public java.lang.String getName() { } } /** - * - * *
      * The resource name of the notification.
      * Format:
@@ -868,14 +788,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 { @@ -883,8 +804,6 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The resource name of the notification.
      * Format:
@@ -892,22 +811,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:
@@ -915,7 +830,6 @@ public Builder setName(java.lang.String value) {
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { @@ -925,8 +839,6 @@ public Builder clearName() { return this; } /** - * - * *
      * The resource name of the notification.
      * Format:
@@ -934,14 +846,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; @@ -951,47 +861,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.
      * 
@@ -1012,8 +909,6 @@ public Builder setSubject(com.google.cloud.advisorynotifications.v1.Subject valu return this; } /** - * - * *
      * The subject line of the notification.
      * 
@@ -1032,8 +927,6 @@ public Builder setSubject( return this; } /** - * - * *
      * The subject line of the notification.
      * 
@@ -1042,9 +935,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; @@ -1057,8 +950,6 @@ public Builder mergeSubject(com.google.cloud.advisorynotifications.v1.Subject va return this; } /** - * - * *
      * The subject line of the notification.
      * 
@@ -1076,8 +967,6 @@ public Builder clearSubject() { return this; } /** - * - * *
      * The subject line of the notification.
      * 
@@ -1090,8 +979,6 @@ public com.google.cloud.advisorynotifications.v1.Subject.Builder getSubjectBuild return getSubjectFieldBuilder().getBuilder(); } /** - * - * *
      * The subject line of the notification.
      * 
@@ -1102,14 +989,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.
      * 
@@ -1117,42 +1001,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.
      * 
@@ -1167,8 +1041,6 @@ public java.util.List getMess } } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1183,8 +1055,6 @@ public int getMessagesCount() { } } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1199,15 +1069,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(); @@ -1221,8 +1090,6 @@ public Builder setMessages(int index, com.google.cloud.advisorynotifications.v1. return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1241,8 +1108,6 @@ public Builder setMessages( return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1263,15 +1128,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(); @@ -1285,8 +1149,6 @@ public Builder addMessages(int index, com.google.cloud.advisorynotifications.v1. return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1305,8 +1167,6 @@ public Builder addMessages( return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1325,8 +1185,6 @@ public Builder addMessages( return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1337,7 +1195,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); @@ -1345,8 +1204,6 @@ public Builder addAllMessages( return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1364,8 +1221,6 @@ public Builder clearMessages() { return this; } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1383,20 +1238,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.
      * 
@@ -1406,22 +1258,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 { @@ -1429,8 +1278,6 @@ public com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrB } } /** - * - * *
      * A list of messages in the notification.
      * 
@@ -1438,49 +1285,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_; @@ -1488,58 +1328,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) { @@ -1555,17 +1376,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 { @@ -1576,21 +1394,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; @@ -1603,15 +1417,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); @@ -1624,15 +1434,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; @@ -1640,48 +1446,36 @@ 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_; @@ -1689,29 +1483,22 @@ 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. */ @@ -1722,38 +1509,28 @@ 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(); } @@ -1763,14 +1540,11 @@ public Builder setNotificationType( return this; } /** - * - * *
      * Type of notification
      * 
* * .google.cloud.advisorynotifications.v1.NotificationType notification_type = 12; - * * @return This builder for chaining. */ public Builder clearNotificationType() { @@ -1779,9 +1553,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); } @@ -1791,12 +1565,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(); } @@ -1805,27 +1579,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; @@ -1840,4 +1614,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 78% 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 d74d74ba630d..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 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. - * 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,86 +84,66 @@ 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/java-advisorynotifications/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 similarity index 64% rename from java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java rename to owl-bot-staging/java-advisorynotifications/v1/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/NotificationType.java index 7f0d0d2e8bb8..6f47170b927b 100644 --- a/java-advisorynotifications/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 @@ -1,36 +1,18 @@ -/* - * 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. - * 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
    * 
@@ -39,8 +21,6 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum */ NOTIFICATION_TYPE_UNSPECIFIED(0), /** - * - * *
    * Security and privacy advisory notifications
    * 
@@ -49,8 +29,6 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum */ NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY(1), /** - * - * *
    * Sensitive action notifications
    * 
@@ -58,12 +36,26 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum * NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; */ NOTIFICATION_TYPE_SENSITIVE_ACTIONS(2), + /** + *
+   * General security MSA
+   * 
+ * + * NOTIFICATION_TYPE_SECURITY_MSA = 3; + */ + NOTIFICATION_TYPE_SECURITY_MSA(3), + /** + *
+   * Threat horizons MSA
+   * 
+ * + * NOTIFICATION_TYPE_THREAT_HORIZONS = 4; + */ + NOTIFICATION_TYPE_THREAT_HORIZONS(4), UNRECOGNIZED(-1), ; /** - * - * *
    * Default type
    * 
@@ -72,8 +64,6 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum */ public static final int NOTIFICATION_TYPE_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Security and privacy advisory notifications
    * 
@@ -82,8 +72,6 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum */ public static final int NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY_VALUE = 1; /** - * - * *
    * Sensitive action notifications
    * 
@@ -91,6 +79,23 @@ public enum NotificationType implements com.google.protobuf.ProtocolMessageEnum * NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; */ public static final int NOTIFICATION_TYPE_SENSITIVE_ACTIONS_VALUE = 2; + /** + *
+   * General security MSA
+   * 
+ * + * NOTIFICATION_TYPE_SECURITY_MSA = 3; + */ + public static final int NOTIFICATION_TYPE_SECURITY_MSA_VALUE = 3; + /** + *
+   * Threat horizons MSA
+   * 
+ * + * NOTIFICATION_TYPE_THREAT_HORIZONS = 4; + */ + public static final int NOTIFICATION_TYPE_THREAT_HORIZONS_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { @@ -116,51 +121,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; + case 3: return NOTIFICATION_TYPE_SECURITY_MSA; + case 4: return NOTIFICATION_TYPE_THREAT_HORIZONS; + 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 NotificationType findValueByNumber(int number) { - return NotificationType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + 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() { + 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; @@ -176,3 +181,4 @@ private NotificationType(int 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 e5478cf15703..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 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. - * 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..b2f4c5f79d45 --- /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,262 @@ +// 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" + + "\"\321\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\0225\n\013create_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\004\342A\001\003\022R\n\021notification_type\030\014" + + " \001(\01627.google.cloud.advisorynotification" + + "s.v1.NotificationType:\244\001\352A\240\001\n1advisoryno" + + "tifications.googleapis.com/Notification\022" + + "Norganizations/{organization}/locations/" + + "{location}/notifications/{notification}*" + + "\rnotifications2\014notification\"\205\001\n\004Text\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.google.clou" + + "d.advisorynotifications.v1.LocalizationS" + + "tate\"D\n\007Subject\0229\n\004text\030\001 \001(\0132+.google.c" + + "loud.advisorynotifications.v1.Text\"\277\002\n\007M" + + "essage\022A\n\004body\030\001 \001(\01323.google.cloud.advi" + + "sorynotifications.v1.Message.Body\022F\n\013att" + + "achments\030\002 \003(\01321.google.cloud.advisoryno" + + "tifications.v1.Attachment\022/\n\013create_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\0225\n\021lo" + + "calization_time\030\004 \001(\0132\032.google.protobuf." + + "Timestamp\032A\n\004Body\0229\n\004text\030\001 \001(\0132+.google" + + ".cloud.advisorynotifications.v1.Text\"e\n\n" + + "Attachment\0229\n\003csv\030\002 \001(\0132*.google.cloud.a" + + "dvisorynotifications.v1.CsvH\000\022\024\n\014display" + + "_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n\007headers\030\001 " + + "\003(\t\022D\n\tdata_rows\030\002 \003(\01321.google.cloud.ad" + + "visorynotifications.v1.Csv.CsvRow\032\031\n\006Csv" + + "Row\022\017\n\007entries\030\001 \003(\t\"\353\001\n\030ListNotificatio" + + "nsRequest\022J\n\006parent\030\001 \001(\tB:\342A\001\002\372A3\0221advi" + + "sorynotifications.googleapis.com/Notific" + + "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\022E\n\004view\030\004 \001(\01627.google.cloud.adviso" + + "rynotifications.v1.NotificationView\022\025\n\rl" + + "anguage_code\030\005 \001(\t\"\224\001\n\031ListNotifications" + + "Response\022J\n\rnotifications\030\001 \003(\01323.google" + + ".cloud.advisorynotifications.v1.Notifica" + + "tion\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_s" + + "ize\030\003 \001(\005\"y\n\026GetNotificationRequest\022H\n\004n" + + "ame\030\001 \001(\tB:\342A\001\002\372A3\n1advisorynotification" + + "s.googleapis.com/Notification\022\025\n\rlanguag" + + "e_code\030\005 \001(\t*J\n\020NotificationView\022!\n\035NOTI" + + "FICATION_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010" + + "\n\004FULL\020\002*\240\001\n\021LocalizationState\022\"\n\036LOCALI" + + "ZATION_STATE_UNSPECIFIED\020\000\022%\n!LOCALIZATI" + + "ON_STATE_NOT_APPLICABLE\020\001\022\036\n\032LOCALIZATIO" + + "N_STATE_PENDING\020\002\022 \n\034LOCALIZATION_STATE_" + + "COMPLETED\020\003*\332\001\n\020NotificationType\022!\n\035NOTI" + + "FICATION_TYPE_UNSPECIFIED\020\000\022/\n+NOTIFICAT" + + "ION_TYPE_SECURITY_PRIVACY_ADVISORY\020\001\022\'\n#" + + "NOTIFICATION_TYPE_SENSITIVE_ACTIONS\020\002\022\"\n" + + "\036NOTIFICATION_TYPE_SECURITY_MSA\020\003\022%\n!NOT" + + "IFICATION_TYPE_THREAT_HORIZONS\020\0042\251\004\n\034Adv" + + "isoryNotificationsService\022\337\001\n\021ListNotifi" + + "cations\022?.google.cloud.advisorynotificat" + + "ions.v1.ListNotificationsRequest\032@.googl" + + "e.cloud.advisorynotifications.v1.ListNot" + + "ificationsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1" + + "/{parent=organizations/*/locations/*}/no" + + "tifications\022\314\001\n\017GetNotification\022=.google" + + ".cloud.advisorynotifications.v1.GetNotif" + + "icationRequest\0323.google.cloud.advisoryno" + + "tifications.v1.Notification\"E\332A\004name\202\323\344\223" + + "\0028\0226/v1/{name=organizations/*/locations/" + + "*/notifications/*}\032X\312A$advisorynotificat" + + "ions.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\374\002\n)com.goo" + + "gle.cloud.advisorynotifications.v1B\014Serv" + + "iceProtoP\001Z_cloud.google.com/go/advisory" + + "notifications/apiv1/advisorynotification" + + "spb;advisorynotificationspb\252\002%Google.Clo" + + "ud.AdvisoryNotifications.V1\312\002%Google\\Clo" + + "ud\\AdvisoryNotifications\\V1\352\002(Google::Cl" + + "oud::AdvisoryNotifications::V1\352Ab\n-advis" + + "orynotifications.googleapis.com/Location" + + "\0221organizations/{organization}/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 9dabf16d6f03..a9d23fec5191 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,76 +1,55 @@ -/* - * 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. - * 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(); } - 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 @@ -78,25 +57,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.
    * 
@@ -105,13 +77,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; @@ -123,7 +92,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()); } @@ -137,7 +107,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; @@ -147,17 +118,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; @@ -180,135 +151,131 @@ 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(); @@ -322,9 +289,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 @@ -343,11 +310,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; } @@ -355,7 +319,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(); } } @@ -363,39 +329,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; @@ -403,8 +368,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()); } @@ -434,19 +398,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) { @@ -456,52 +420,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.
      * 
@@ -522,15 +472,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 { @@ -541,8 +490,6 @@ public Builder setText(com.google.cloud.advisorynotifications.v1.Text.Builder bu return this; } /** - * - * *
      * The text content.
      * 
@@ -551,9 +498,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; @@ -566,8 +513,6 @@ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** - * - * *
      * The text content.
      * 
@@ -585,8 +530,6 @@ public Builder clearText() { return this; } /** - * - * *
      * The text content.
      * 
@@ -599,8 +542,6 @@ public com.google.cloud.advisorynotifications.v1.Text.Builder getTextBuilder() { return getTextFieldBuilder().getBuilder(); } /** - * - * *
      * The text content.
      * 
@@ -611,14 +552,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.
      * 
@@ -626,24 +564,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); } @@ -653,12 +588,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(); } @@ -667,27 +602,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; @@ -702,4 +637,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 42a912ff7d88..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 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. - * 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 7d9c4c3f41df..d18e840eac97 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 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. - * 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,38 +27,33 @@ private Text() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Text(); } - 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 @@ -85,29 +62,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 { @@ -116,18 +93,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 @@ -136,29 +109,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 { @@ -169,42 +142,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; @@ -216,17 +177,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); @@ -244,11 +203,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; @@ -258,16 +215,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; @@ -291,136 +249,132 @@ 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(); @@ -432,9 +386,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 @@ -453,11 +407,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; } @@ -479,39 +430,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; @@ -559,31 +509,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) { @@ -593,25 +539,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; @@ -620,21 +563,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 { @@ -642,35 +584,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() { @@ -680,21 +615,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; @@ -704,20 +635,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; @@ -726,21 +655,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 { @@ -748,35 +676,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() { @@ -786,21 +707,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; @@ -810,29 +727,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. */ @@ -843,38 +753,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(); } @@ -884,14 +784,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() { @@ -900,9 +797,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); } @@ -912,12 +809,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(); } @@ -926,27 +823,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; @@ -961,4 +858,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 1c00a8d9b8fa..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 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. - * 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 97% 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 6c9bc375b3fd..4c1e195cc0ab 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 @@ -102,6 +102,12 @@ enum NotificationType { // Sensitive action notifications NOTIFICATION_TYPE_SENSITIVE_ACTIONS = 2; + + // General security MSA + NOTIFICATION_TYPE_SECURITY_MSA = 3; + + // Threat horizons MSA + NOTIFICATION_TYPE_THREAT_HORIZONS = 4; } // A notification object for notifying customers about security and privacy @@ -110,6 +116,8 @@ message Notification { option (google.api.resource) = { type: "advisorynotifications.googleapis.com/Notification" pattern: "organizations/{organization}/locations/{location}/notifications/{notification}" + plural: "notifications" + singular: "notification" }; // The resource name of the notification. 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 bf10a1c88b9af2db59093d994ed38cf1de579606 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 31 Jul 2023 19:06:33 +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 | 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 .../reflect-config.json | 0 ...otificationsServiceClientHttpJsonTest.java | 0 ...dvisoryNotificationsServiceClientTest.java | 0 .../v1/MockAdvisoryNotificationsService.java | 0 .../MockAdvisoryNotificationsServiceImpl.java | 0 .../v1/AdvisoryNotificationsServiceGrpc.java | 516 +++++++++ .../advisorynotifications/v1/Attachment.java | 450 +++++--- .../v1/AttachmentOrBuilder.java | 35 +- .../cloud/advisorynotifications/v1/Csv.java | 850 ++++++++------ .../v1/CsvOrBuilder.java | 54 +- .../v1/GetNotificationRequest.java | 445 +++++--- .../v1/GetNotificationRequestOrBuilder.java | 44 +- .../v1/ListNotificationsRequest.java | 628 ++++++---- .../v1/ListNotificationsRequestOrBuilder.java | 62 +- .../v1/ListNotificationsResponse.java | 547 +++++---- .../ListNotificationsResponseOrBuilder.java | 45 +- .../v1/LocalizationState.java | 91 +- .../v1/LocationName.java | 0 .../advisorynotifications/v1/Message.java | 1017 +++++++++++------ .../v1/MessageOrBuilder.java | 60 +- .../v1/Notification.java | 776 ++++++++----- .../v1/NotificationName.java | 0 .../v1/NotificationOrBuilder.java | 76 +- .../v1/NotificationType.java | 100 +- .../v1/NotificationView.java | 86 +- .../v1/ServiceProto.java | 291 +++++ .../advisorynotifications/v1/Subject.java | 347 +++--- .../v1/SubjectOrBuilder.java | 26 +- .../cloud/advisorynotifications/v1/Text.java | 455 +++++--- .../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 | 262 ----- 58 files changed, 4793 insertions(+), 2927 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/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json (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 (68%) 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 019599c73f2b..d29666c38a65 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.19.0 + 26.20.0 pom import @@ -201,7 +201,7 @@ 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://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.10.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.11.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 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 d51d73175462..176b8a455ecf 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 ef8de9f89852..524a601ece03 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/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json b/java-advisorynotifications/google-cloud-advisorynotifications/src/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json similarity index 100% rename from owl-bot-staging/java-advisorynotifications/v1/google-cloud-advisorynotifications/src/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json rename to java-advisorynotifications/google-cloud-advisorynotifications/src/main/resources/META-INF/native-image/com.google.cloud.advisorynotifications.v1/reflect-config.json 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..4372b349f28b --- /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 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. + * 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/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 3c3688e8934d..067afbc4acf3 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,57 +1,80 @@ +/* + * 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. + * 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(); } - 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; + @SuppressWarnings("serial") 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; } @@ -67,29 +90,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 @@ -97,21 +125,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.
    * 
@@ -121,20 +154,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 @@ -143,29 +180,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 { @@ -174,6 +211,7 @@ public java.lang.String getDisplayName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -185,8 +223,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_); } @@ -206,8 +243,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; @@ -217,20 +255,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: @@ -262,131 +299,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(); @@ -401,9 +442,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 @@ -422,8 +463,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; @@ -439,8 +483,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(); } } @@ -449,38 +492,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; @@ -488,20 +532,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(); @@ -529,24 +576,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) { @@ -556,12 +604,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() { @@ -574,13 +622,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 @@ -588,11 +642,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 @@ -610,6 +667,8 @@ public com.google.cloud.advisorynotifications.v1.Csv getCsv() { } } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -630,14 +689,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(); @@ -648,6 +708,8 @@ public Builder setCsv( return this; } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -656,10 +718,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; } @@ -675,6 +740,8 @@ public Builder mergeCsv(com.google.cloud.advisorynotifications.v1.Csv value) { return this; } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -698,6 +765,8 @@ public Builder clearCsv() { return this; } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -708,6 +777,8 @@ public com.google.cloud.advisorynotifications.v1.Csv.Builder getCsvBuilder() { return getCsvFieldBuilder().getBuilder(); } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -726,6 +797,8 @@ public com.google.cloud.advisorynotifications.v1.CsvOrBuilder getCsvOrBuilder() } } /** + * + * *
      * A CSV file attachment. Max size is 10 MB.
      * 
@@ -733,14 +806,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()); @@ -753,18 +831,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; @@ -773,20 +853,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 { @@ -794,28 +875,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() { @@ -825,26 +913,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); } @@ -854,12 +946,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(); } @@ -868,27 +960,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; @@ -903,6 +995,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 d75e66fc1a73..8f8de6d70f1b 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 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. + * 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(); 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 8fafc479c0a6..9145afc243bd 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 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. + * 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,167 +28,191 @@
  *
  * 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.emptyList();
+    headers_ = com.google.protobuf.LazyStringArrayList.emptyList();
     dataRows_ = 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 Csv();
   }
 
-  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.emptyList(); + entries_ = com.google.protobuf.LazyStringArrayList.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new CsvRow(); } - 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.LazyStringArrayList entries_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
      * 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. */ @@ -179,21 +220,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; @@ -205,8 +249,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)); } @@ -235,15 +278,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; } @@ -265,89 +308,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 @@ -357,52 +405,53 @@ 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(); bitField0_ = 0; - entries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + entries_ = com.google.protobuf.LazyStringArrayList.emptyList(); 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_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 @@ -421,8 +470,11 @@ 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); - if (bitField0_ != 0) { buildPartial0(result); } + com.google.cloud.advisorynotifications.v1.Csv.CsvRow result = + new com.google.cloud.advisorynotifications.v1.Csv.CsvRow(this); + if (bitField0_ != 0) { + buildPartial0(result); + } onBuilt(); return result; } @@ -439,38 +491,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; @@ -478,7 +533,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_; @@ -515,18 +571,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) { @@ -536,10 +594,12 @@ public Builder mergeFrom( } // finally return this; } + private int bitField0_; private com.google.protobuf.LazyStringArrayList entries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureEntriesIsMutable() { if (!entries_.isModifiable()) { entries_ = new com.google.protobuf.LazyStringArrayList(entries_); @@ -547,38 +607,46 @@ private void ensureEntriesIsMutable() { 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() { entries_.makeImmutable(); 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. */ @@ -586,33 +654,39 @@ 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); bitField0_ |= 0x00000001; @@ -620,18 +694,22 @@ public Builder setEntries( 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); bitField0_ |= 0x00000001; @@ -639,53 +717,61 @@ public Builder addEntries( 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_); bitField0_ |= 0x00000001; 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() { - entries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + entries_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; 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 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); @@ -693,6 +779,7 @@ public Builder addEntriesBytes( onChanged(); return this; } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -705,12 +792,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(); } @@ -719,27 +806,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; @@ -754,42 +842,50 @@ 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.LazyStringArrayList headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** + * + * *
    * 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. */ @@ -797,23 +893,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.
@@ -826,6 +927,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.
@@ -834,11 +937,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.
@@ -851,6 +956,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.
@@ -863,6 +970,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.
@@ -877,6 +986,7 @@ public com.google.cloud.advisorynotifications.v1.Csv.CsvRowOrBuilder getDataRows
   }
 
   private byte memoizedIsInitialized = -1;
+
   @java.lang.Override
   public final boolean isInitialized() {
     byte isInitialized = memoizedIsInitialized;
@@ -888,8 +998,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));
     }
@@ -914,8 +1023,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;
@@ -925,17 +1033,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;
   }
@@ -960,99 +1067,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,39 +1172,37 @@ 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();
       bitField0_ = 0;
-      headers_ =
-          com.google.protobuf.LazyStringArrayList.emptyList();
+      headers_ = com.google.protobuf.LazyStringArrayList.emptyList();
       if (dataRowsBuilder_ == null) {
         dataRows_ = java.util.Collections.emptyList();
       } else {
@@ -1104,9 +1214,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 +1235,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;
     }
@@ -1156,38 +1269,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;
@@ -1224,9 +1338,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_);
           }
@@ -1258,31 +1373,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) {
@@ -1292,10 +1410,12 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private com.google.protobuf.LazyStringArrayList headers_ =
         com.google.protobuf.LazyStringArrayList.emptyList();
+
     private void ensureHeadersIsMutable() {
       if (!headers_.isModifiable()) {
         headers_ = new com.google.protobuf.LazyStringArrayList(headers_);
@@ -1303,35 +1423,43 @@ private void ensureHeadersIsMutable() {
       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() { headers_.makeImmutable(); 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. */ @@ -1339,31 +1467,37 @@ 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); bitField0_ |= 0x00000001; @@ -1371,17 +1505,21 @@ public Builder setHeaders( 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); bitField0_ |= 0x00000001; @@ -1389,50 +1527,58 @@ public Builder addHeaders( 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_); bitField0_ |= 0x00000001; 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() { - headers_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; + headers_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; onChanged(); 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); @@ -1442,18 +1588,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.
@@ -1469,6 +1623,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.
@@ -1484,6 +1640,8 @@ public int getDataRowsCount() {
       }
     }
     /**
+     *
+     *
      * 
      * The list of data rows in a CSV file, as string arrays rather than as a
      * single comma-separated string.
@@ -1499,6 +1657,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.
@@ -1521,6 +1681,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.
@@ -1540,6 +1702,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.
@@ -1561,6 +1725,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.
@@ -1583,6 +1749,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.
@@ -1602,6 +1770,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.
@@ -1621,6 +1791,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.
@@ -1632,8 +1804,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);
@@ -1641,6 +1812,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.
@@ -1659,6 +1832,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.
@@ -1677,6 +1852,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.
@@ -1689,6 +1866,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.
@@ -1699,11 +1878,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.
@@ -1711,8 +1893,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 {
@@ -1720,6 +1902,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.
@@ -1728,10 +1912,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.
@@ -1741,10 +1927,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.
@@ -1752,27 +1941,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);
     }
 
@@ -1782,12 +1974,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();
   }
@@ -1796,27 +1988,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;
@@ -1831,6 +2023,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..dad9cd8fd4e0 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 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.
+ * 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 712551852f27..305682903286 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 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.
+ * 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,35 +44,42 @@ private GetNotificationRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new GetNotificationRequest(); } - 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 @@ -63,31 +88,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 { @@ -96,9 +123,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
@@ -108,6 +138,7 @@ public java.lang.String getName() {
    * 
* * string language_code = 5; + * * @return The languageCode. */ @java.lang.Override @@ -116,14 +147,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
@@ -133,16 +165,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 { @@ -151,6 +182,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -162,8 +194,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_); } @@ -193,17 +224,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; } @@ -225,131 +255,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(); @@ -360,13 +395,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(); } @@ -381,13 +417,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_; @@ -401,46 +441,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; @@ -477,22 +521,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) { @@ -502,24 +549,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; @@ -528,22 +580,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 { @@ -551,32 +606,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() { @@ -586,19 +652,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; @@ -608,6 +680,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
@@ -617,13 +691,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; @@ -632,6 +706,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
@@ -641,15 +717,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 { @@ -657,6 +732,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
@@ -666,18 +743,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
@@ -687,6 +768,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -696,6 +778,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
@@ -705,21 +789,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); } @@ -729,41 +815,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; @@ -775,9 +863,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..2a57837810db 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 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. + * 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 e2c36dd026fe..77f5e2967c6a 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 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. + * 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,34 +46,41 @@ private ListNotificationsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationsRequest(); } - 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 @@ -64,30 +89,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 { @@ -98,6 +125,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
@@ -106,6 +135,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -114,9 +144,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
@@ -124,6 +157,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -132,14 +166,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
@@ -147,16 +182,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 { @@ -167,35 +201,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
@@ -205,6 +253,7 @@ public java.lang.String getPageToken() {
    * 
* * string language_code = 5; + * * @return The languageCode. */ @java.lang.Override @@ -213,14 +262,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
@@ -230,16 +280,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 { @@ -248,6 +297,7 @@ public java.lang.String getLanguageCode() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,8 +309,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_); } @@ -270,7 +319,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_)) { @@ -289,15 +340,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_); @@ -310,22 +361,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; } @@ -353,131 +401,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(); @@ -491,14 +546,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 @@ -512,13 +569,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_; @@ -541,46 +602,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; @@ -628,37 +694,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) { @@ -668,23 +740,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; @@ -693,21 +770,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 { @@ -715,30 +795,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() { @@ -748,18 +839,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; @@ -767,8 +864,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
@@ -777,6 +876,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -784,6 +884,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
@@ -792,6 +894,7 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ @@ -803,6 +906,8 @@ public Builder setPageSize(int value) { 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
@@ -811,6 +916,7 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { @@ -822,6 +928,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
@@ -829,13 +937,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; @@ -844,6 +952,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -851,15 +961,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 { @@ -867,6 +976,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -874,18 +985,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
@@ -893,6 +1008,7 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { @@ -902,6 +1018,8 @@ public Builder clearPageToken() { return this; } /** + * + * *
      * A page token returned from a previous request.
      * When paginating, all other parameters provided in the request
@@ -909,12 +1027,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; @@ -924,24 +1044,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. */ @@ -952,26 +1079,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. */ @@ -985,12 +1121,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() { @@ -1002,6 +1141,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
@@ -1011,13 +1152,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; @@ -1026,6 +1167,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
@@ -1035,15 +1178,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 { @@ -1051,6 +1193,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
@@ -1060,18 +1204,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
@@ -1081,6 +1229,7 @@ public Builder setLanguageCode(
      * 
* * string language_code = 5; + * * @return This builder for chaining. */ public Builder clearLanguageCode() { @@ -1090,6 +1239,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
@@ -1099,21 +1250,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); } @@ -1123,41 +1276,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; @@ -1169,9 +1324,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..dab647663324 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 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. + * 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 c98f55f60604..300b569e2234 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 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. + * 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,28 +44,32 @@ private ListNotificationsResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListNotificationsResponse(); } - 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.
    * 
@@ -55,10 +77,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.
    * 
@@ -66,11 +91,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.
    * 
@@ -82,6 +109,8 @@ public int getNotificationsCount() { return notifications_.size(); } /** + * + * *
    * List of notifications under a given parent.
    * 
@@ -93,6 +122,8 @@ public com.google.cloud.advisorynotifications.v1.Notification getNotifications(i return notifications_.get(index); } /** + * + * *
    * List of notifications under a given parent.
    * 
@@ -106,15 +137,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 @@ -123,30 +158,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 { @@ -157,11 +192,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 @@ -170,6 +208,7 @@ public int getTotalSize() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -181,8 +220,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)); } @@ -202,15 +240,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; @@ -220,19 +256,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; } @@ -258,131 +292,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(); @@ -400,14 +441,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 @@ -421,14 +464,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_); @@ -440,7 +487,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_; @@ -454,46 +502,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()) { @@ -512,9 +565,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_); } @@ -554,35 +608,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) { @@ -592,28 +650,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 { @@ -621,6 +689,8 @@ public java.util.List ge } } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -635,6 +705,8 @@ public int getNotificationsCount() { } } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -649,6 +721,8 @@ public com.google.cloud.advisorynotifications.v1.Notification getNotifications(i } } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -670,6 +744,8 @@ public Builder setNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -688,6 +764,8 @@ public Builder setNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -708,6 +786,8 @@ public Builder addNotifications(com.google.cloud.advisorynotifications.v1.Notifi return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -729,6 +809,8 @@ public Builder addNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -747,6 +829,8 @@ public Builder addNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -765,6 +849,8 @@ public Builder addNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -772,11 +858,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); @@ -784,6 +870,8 @@ public Builder addAllNotifications( return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -801,6 +889,8 @@ public Builder clearNotifications() { return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -818,6 +908,8 @@ public Builder removeNotifications(int index) { return this; } /** + * + * *
      * List of notifications under a given parent.
      * 
@@ -829,28 +921,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 { @@ -858,17 +955,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.
      * 
@@ -877,26 +979,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(), @@ -908,19 +1019,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; @@ -929,21 +1042,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 { @@ -951,30 +1065,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() { @@ -984,18 +1105,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; @@ -1003,13 +1128,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 @@ -1017,11 +1145,14 @@ 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. */ @@ -1033,11 +1164,14 @@ public Builder setTotalSize(int value) { return this; } /** + * + * *
      * Estimation of a total number of notifications.
      * 
* * int32 total_size = 3; + * * @return This builder for chaining. */ public Builder clearTotalSize() { @@ -1046,9 +1180,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); } @@ -1058,41 +1192,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; @@ -1104,9 +1240,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..b619acde8fc4 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 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. + * 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..f8c4ca475019 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 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. + * 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 b5e39cf7cf3e..2032a58f85d1 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,71 +1,99 @@ +/* + * 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. + * 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(); } - 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.
      * 
@@ -75,52 +103,58 @@ 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(); } - 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 @@ -128,18 +162,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.
      * 
@@ -148,10 +189,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; @@ -163,8 +207,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()); } @@ -178,8 +221,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; @@ -189,17 +231,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; @@ -222,89 +264,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 @@ -314,39 +361,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(); @@ -360,9 +409,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 @@ -381,8 +430,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; } @@ -390,9 +442,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(); } } @@ -400,38 +450,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; @@ -439,7 +492,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()); } @@ -469,19 +523,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) { @@ -491,38 +545,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.
        * 
@@ -543,6 +611,8 @@ public Builder setText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** + * + * *
        * The text content of the message body.
        * 
@@ -561,6 +631,8 @@ public Builder setText( return this; } /** + * + * *
        * The text content of the message body.
        * 
@@ -569,9 +641,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; @@ -584,6 +656,8 @@ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** + * + * *
        * The text content of the message body.
        * 
@@ -601,6 +675,8 @@ public Builder clearText() { return this; } /** + * + * *
        * The text content of the message body.
        * 
@@ -613,6 +689,8 @@ public com.google.cloud.advisorynotifications.v1.Text.Builder getTextBuilder() { return getTextFieldBuilder().getBuilder(); } /** + * + * *
        * The text content of the message body.
        * 
@@ -623,11 +701,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.
        * 
@@ -635,18 +716,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) { @@ -659,12 +744,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(); } @@ -673,27 +758,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; @@ -708,17 +794,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 @@ -726,18 +814,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.
    * 
@@ -746,13 +841,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.
    * 
@@ -764,6 +864,8 @@ public java.util.List getA return attachments_; } /** + * + * *
    * The attachments to download.
    * 
@@ -771,11 +873,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.
    * 
@@ -787,6 +891,8 @@ public int getAttachmentsCount() { return attachments_.size(); } /** + * + * *
    * The attachments to download.
    * 
@@ -798,6 +904,8 @@ public com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int i return attachments_.get(index); } /** + * + * *
    * The attachments to download.
    * 
@@ -813,11 +921,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 @@ -825,11 +936,14 @@ public boolean hasCreateTime() { return createTime_ != null; } /** + * + * *
    * The Message creation timestamp.
    * 
* * .google.protobuf.Timestamp create_time = 3; + * * @return The createTime. */ @java.lang.Override @@ -837,6 +951,8 @@ public com.google.protobuf.Timestamp getCreateTime() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } /** + * + * *
    * The Message creation timestamp.
    * 
@@ -851,11 +967,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 @@ -863,18 +982,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
    * 
@@ -883,10 +1009,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; @@ -898,8 +1027,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()); } @@ -922,20 +1050,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; @@ -945,29 +1069,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; @@ -1002,131 +1123,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(); @@ -1157,9 +1282,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 @@ -1178,14 +1303,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_); @@ -1200,19 +1329,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(); } } @@ -1220,38 +1344,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; @@ -1259,7 +1384,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()); } @@ -1281,9 +1407,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_); } @@ -1321,46 +1448,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) { @@ -1370,38 +1497,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.
      * 
@@ -1422,6 +1563,8 @@ public Builder setBody(com.google.cloud.advisorynotifications.v1.Message.Body va return this; } /** + * + * *
      * The message content.
      * 
@@ -1440,6 +1583,8 @@ public Builder setBody( return this; } /** + * + * *
      * The message content.
      * 
@@ -1448,9 +1593,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; @@ -1463,6 +1609,8 @@ public Builder mergeBody(com.google.cloud.advisorynotifications.v1.Message.Body return this; } /** + * + * *
      * The message content.
      * 
@@ -1480,6 +1628,8 @@ public Builder clearBody() { return this; } /** + * + * *
      * The message content.
      * 
@@ -1492,6 +1642,8 @@ public com.google.cloud.advisorynotifications.v1.Message.Body.Builder getBodyBui return getBodyFieldBuilder().getBuilder(); } /** + * + * *
      * The message content.
      * 
@@ -1502,11 +1654,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.
      * 
@@ -1514,39 +1669,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 { @@ -1554,6 +1721,8 @@ public java.util.List getA } } /** + * + * *
      * The attachments to download.
      * 
@@ -1568,6 +1737,8 @@ public int getAttachmentsCount() { } } /** + * + * *
      * The attachments to download.
      * 
@@ -1582,6 +1753,8 @@ public com.google.cloud.advisorynotifications.v1.Attachment getAttachments(int i } } /** + * + * *
      * The attachments to download.
      * 
@@ -1603,6 +1776,8 @@ public Builder setAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1621,6 +1796,8 @@ public Builder setAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1641,6 +1818,8 @@ public Builder addAttachments(com.google.cloud.advisorynotifications.v1.Attachme return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1662,6 +1841,8 @@ public Builder addAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1680,6 +1861,8 @@ public Builder addAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1698,6 +1881,8 @@ public Builder addAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1708,8 +1893,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); @@ -1717,6 +1901,8 @@ public Builder addAllAttachments( return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1734,6 +1920,8 @@ public Builder clearAttachments() { return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1751,6 +1939,8 @@ public Builder removeAttachments(int index) { return this; } /** + * + * *
      * The attachments to download.
      * 
@@ -1762,6 +1952,8 @@ public com.google.cloud.advisorynotifications.v1.Attachment.Builder getAttachmen return getAttachmentsFieldBuilder().getBuilder(index); } /** + * + * *
      * The attachments to download.
      * 
@@ -1771,19 +1963,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 { @@ -1791,6 +1986,8 @@ public com.google.cloud.advisorynotifications.v1.AttachmentOrBuilder getAttachme } } /** + * + * *
      * The attachments to download.
      * 
@@ -1798,10 +1995,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.
      * 
@@ -1810,30 +2009,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_; @@ -1841,34 +2046,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.
      * 
@@ -1889,14 +2107,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 { @@ -1907,6 +2126,8 @@ public Builder setCreateTime( return this; } /** + * + * *
      * The Message creation timestamp.
      * 
@@ -1915,9 +2136,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; @@ -1930,6 +2151,8 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * The Message creation timestamp.
      * 
@@ -1947,6 +2170,8 @@ public Builder clearCreateTime() { return this; } /** + * + * *
      * The Message creation timestamp.
      * 
@@ -1959,6 +2184,8 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { return getCreateTimeFieldBuilder().getBuilder(); } /** + * + * *
      * The Message creation timestamp.
      * 
@@ -1969,11 +2196,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.
      * 
@@ -1981,14 +2211,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_; @@ -1996,34 +2229,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
      * 
@@ -2044,14 +2290,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 { @@ -2062,6 +2309,8 @@ public Builder setLocalizationTime( return this; } /** + * + * *
      * Time when Message was localized
      * 
@@ -2070,9 +2319,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; @@ -2085,6 +2334,8 @@ public Builder mergeLocalizationTime(com.google.protobuf.Timestamp value) { return this; } /** + * + * *
      * Time when Message was localized
      * 
@@ -2102,6 +2353,8 @@ public Builder clearLocalizationTime() { return this; } /** + * + * *
      * Time when Message was localized
      * 
@@ -2114,6 +2367,8 @@ public com.google.protobuf.Timestamp.Builder getLocalizationTimeBuilder() { return getLocalizationTimeFieldBuilder().getBuilder(); } /** + * + * *
      * Time when Message was localized
      * 
@@ -2124,11 +2379,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
      * 
@@ -2136,21 +2394,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); } @@ -2160,12 +2421,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(); } @@ -2174,27 +2435,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; @@ -2209,6 +2470,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..feac2feb06d2 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 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. + * 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 14e32fae4ca2..7e6e6b67744f 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 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. + * 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,28 +46,32 @@ private Notification() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Notification();
   }
 
-  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:
@@ -57,6 +79,7 @@ protected java.lang.Object newInstance(
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -65,14 +88,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:
@@ -80,16 +104,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 { @@ -100,11 +123,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 @@ -112,18 +138,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.
    * 
@@ -132,13 +165,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.
    * 
@@ -150,6 +188,8 @@ public java.util.List getMess return messages_; } /** + * + * *
    * A list of messages in the notification.
    * 
@@ -157,11 +197,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.
    * 
@@ -173,6 +215,8 @@ public int getMessagesCount() { return messages_.size(); } /** + * + * *
    * A list of messages in the notification.
    * 
@@ -184,6 +228,8 @@ public com.google.cloud.advisorynotifications.v1.Message getMessages(int index) return messages_.get(index); } /** + * + * *
    * A list of messages in the notification.
    * 
@@ -199,11 +245,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 @@ -211,11 +261,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 @@ -223,11 +277,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() { @@ -237,30 +294,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; @@ -272,8 +341,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_); } @@ -286,7 +354,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); @@ -302,20 +372,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; @@ -325,26 +393,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; @@ -380,98 +445,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.
@@ -479,33 +550,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();
@@ -533,9 +603,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
@@ -554,14 +624,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_);
@@ -579,14 +653,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_;
@@ -597,38 +667,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;
@@ -636,7 +707,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;
@@ -663,9 +735,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_);
           }
@@ -703,49 +776,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) {
@@ -755,10 +830,13 @@ public Builder mergeFrom(
       } // finally
       return this;
     }
+
     private int bitField0_;
 
     private java.lang.Object name_ = "";
     /**
+     *
+     *
      * 
      * The resource name of the notification.
      * Format:
@@ -766,13 +844,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; @@ -781,6 +859,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the notification.
      * Format:
@@ -788,15 +868,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 { @@ -804,6 +883,8 @@ public java.lang.String getName() { } } /** + * + * *
      * The resource name of the notification.
      * Format:
@@ -811,18 +892,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:
@@ -830,6 +915,7 @@ public Builder setName(
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { @@ -839,6 +925,8 @@ public Builder clearName() { return this; } /** + * + * *
      * The resource name of the notification.
      * Format:
@@ -846,12 +934,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; @@ -861,34 +951,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.
      * 
@@ -909,6 +1012,8 @@ public Builder setSubject(com.google.cloud.advisorynotifications.v1.Subject valu return this; } /** + * + * *
      * The subject line of the notification.
      * 
@@ -927,6 +1032,8 @@ public Builder setSubject( return this; } /** + * + * *
      * The subject line of the notification.
      * 
@@ -935,9 +1042,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; @@ -950,6 +1057,8 @@ public Builder mergeSubject(com.google.cloud.advisorynotifications.v1.Subject va return this; } /** + * + * *
      * The subject line of the notification.
      * 
@@ -967,6 +1076,8 @@ public Builder clearSubject() { return this; } /** + * + * *
      * The subject line of the notification.
      * 
@@ -979,6 +1090,8 @@ public com.google.cloud.advisorynotifications.v1.Subject.Builder getSubjectBuild return getSubjectFieldBuilder().getBuilder(); } /** + * + * *
      * The subject line of the notification.
      * 
@@ -989,11 +1102,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.
      * 
@@ -1001,32 +1117,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.
      * 
@@ -1041,6 +1167,8 @@ public java.util.List getMess } } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1055,6 +1183,8 @@ public int getMessagesCount() { } } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1069,14 +1199,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(); @@ -1090,6 +1221,8 @@ public Builder setMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1108,6 +1241,8 @@ public Builder setMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1128,14 +1263,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(); @@ -1149,6 +1285,8 @@ public Builder addMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1167,6 +1305,8 @@ public Builder addMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1185,6 +1325,8 @@ public Builder addMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1195,8 +1337,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); @@ -1204,6 +1345,8 @@ public Builder addAllMessages( return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1221,6 +1364,8 @@ public Builder clearMessages() { return this; } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1238,17 +1383,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.
      * 
@@ -1258,19 +1406,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 { @@ -1278,6 +1429,8 @@ public com.google.cloud.advisorynotifications.v1.MessageOrBuilder getMessagesOrB } } /** + * + * *
      * A list of messages in the notification.
      * 
@@ -1285,42 +1438,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_; @@ -1328,39 +1488,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) { @@ -1376,14 +1555,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 { @@ -1394,17 +1576,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; @@ -1417,11 +1603,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); @@ -1434,11 +1624,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; @@ -1446,36 +1640,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_; @@ -1483,22 +1689,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. */ @@ -1509,28 +1722,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(); } @@ -1540,11 +1763,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() { @@ -1553,9 +1779,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); } @@ -1565,12 +1791,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(); } @@ -1579,27 +1805,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; @@ -1614,6 +1840,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..d74d74ba630d 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 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. + * 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 68% 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 6f47170b927b..57d432399282 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 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. + * 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
    * 
@@ -37,6 +59,8 @@ public enum NotificationType */ NOTIFICATION_TYPE_SENSITIVE_ACTIONS(2), /** + * + * *
    * General security MSA
    * 
@@ -45,6 +69,8 @@ public enum NotificationType */ NOTIFICATION_TYPE_SECURITY_MSA(3), /** + * + * *
    * Threat horizons MSA
    * 
@@ -56,6 +82,8 @@ public enum NotificationType ; /** + * + * *
    * Default type
    * 
@@ -64,6 +92,8 @@ public enum NotificationType */ public static final int NOTIFICATION_TYPE_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Security and privacy advisory notifications
    * 
@@ -72,6 +102,8 @@ public enum NotificationType */ public static final int NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY_VALUE = 1; /** + * + * *
    * Sensitive action notifications
    * 
@@ -80,6 +112,8 @@ public enum NotificationType */ public static final int NOTIFICATION_TYPE_SENSITIVE_ACTIONS_VALUE = 2; /** + * + * *
    * General security MSA
    * 
@@ -88,6 +122,8 @@ public enum NotificationType */ public static final int NOTIFICATION_TYPE_SECURITY_MSA_VALUE = 3; /** + * + * *
    * Threat horizons MSA
    * 
@@ -96,7 +132,6 @@ public enum NotificationType */ public static final int NOTIFICATION_TYPE_THREAT_HORIZONS_VALUE = 4; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -121,51 +156,55 @@ 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; - case 3: return NOTIFICATION_TYPE_SECURITY_MSA; - case 4: return NOTIFICATION_TYPE_THREAT_HORIZONS; - default: return null; + case 0: + return NOTIFICATION_TYPE_UNSPECIFIED; + case 1: + return NOTIFICATION_TYPE_SECURITY_PRIVACY_ADVISORY; + case 2: + return NOTIFICATION_TYPE_SENSITIVE_ACTIONS; + case 3: + return NOTIFICATION_TYPE_SECURITY_MSA; + case 4: + return NOTIFICATION_TYPE_THREAT_HORIZONS; + 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; @@ -181,4 +220,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..e5478cf15703 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 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. + * 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..6591c51e350c --- /dev/null +++ b/java-advisorynotifications/proto-google-cloud-advisorynotifications-v1/src/main/java/com/google/cloud/advisorynotifications/v1/ServiceProto.java @@ -0,0 +1,291 @@ +/* + * 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. + * 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" + + "\"\321\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\0225\n\013create_time\030\004 \001(\0132\032.google.protobu" + + "f.TimestampB\004\342A\001\003\022R\n\021notification_type\030\014" + + " \001(\01627.google.cloud.advisorynotification" + + "s.v1.NotificationType:\244\001\352A\240\001\n1advisoryno" + + "tifications.googleapis.com/Notification\022" + + "Norganizations/{organization}/locations/" + + "{location}/notifications/{notification}*" + + "\rnotifications2\014notification\"\205\001\n\004Text\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.google.clou" + + "d.advisorynotifications.v1.LocalizationS" + + "tate\"D\n\007Subject\0229\n\004text\030\001 \001(\0132+.google.c" + + "loud.advisorynotifications.v1.Text\"\277\002\n\007M" + + "essage\022A\n\004body\030\001 \001(\01323.google.cloud.advi" + + "sorynotifications.v1.Message.Body\022F\n\013att" + + "achments\030\002 \003(\01321.google.cloud.advisoryno" + + "tifications.v1.Attachment\022/\n\013create_time" + + "\030\003 \001(\0132\032.google.protobuf.Timestamp\0225\n\021lo" + + "calization_time\030\004 \001(\0132\032.google.protobuf." + + "Timestamp\032A\n\004Body\0229\n\004text\030\001 \001(\0132+.google" + + ".cloud.advisorynotifications.v1.Text\"e\n\n" + + "Attachment\0229\n\003csv\030\002 \001(\0132*.google.cloud.a" + + "dvisorynotifications.v1.CsvH\000\022\024\n\014display" + + "_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n\007headers\030\001 " + + "\003(\t\022D\n\tdata_rows\030\002 \003(\01321.google.cloud.ad" + + "visorynotifications.v1.Csv.CsvRow\032\031\n\006Csv" + + "Row\022\017\n\007entries\030\001 \003(\t\"\353\001\n\030ListNotificatio" + + "nsRequest\022J\n\006parent\030\001 \001(\tB:\342A\001\002\372A3\0221advi" + + "sorynotifications.googleapis.com/Notific" + + "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + + " \001(\t\022E\n\004view\030\004 \001(\01627.google.cloud.adviso" + + "rynotifications.v1.NotificationView\022\025\n\rl" + + "anguage_code\030\005 \001(\t\"\224\001\n\031ListNotifications" + + "Response\022J\n\rnotifications\030\001 \003(\01323.google" + + ".cloud.advisorynotifications.v1.Notifica" + + "tion\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_s" + + "ize\030\003 \001(\005\"y\n\026GetNotificationRequest\022H\n\004n" + + "ame\030\001 \001(\tB:\342A\001\002\372A3\n1advisorynotification" + + "s.googleapis.com/Notification\022\025\n\rlanguag" + + "e_code\030\005 \001(\t*J\n\020NotificationView\022!\n\035NOTI" + + "FICATION_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010" + + "\n\004FULL\020\002*\240\001\n\021LocalizationState\022\"\n\036LOCALI" + + "ZATION_STATE_UNSPECIFIED\020\000\022%\n!LOCALIZATI" + + "ON_STATE_NOT_APPLICABLE\020\001\022\036\n\032LOCALIZATIO" + + "N_STATE_PENDING\020\002\022 \n\034LOCALIZATION_STATE_" + + "COMPLETED\020\003*\332\001\n\020NotificationType\022!\n\035NOTI" + + "FICATION_TYPE_UNSPECIFIED\020\000\022/\n+NOTIFICAT" + + "ION_TYPE_SECURITY_PRIVACY_ADVISORY\020\001\022\'\n#" + + "NOTIFICATION_TYPE_SENSITIVE_ACTIONS\020\002\022\"\n" + + "\036NOTIFICATION_TYPE_SECURITY_MSA\020\003\022%\n!NOT" + + "IFICATION_TYPE_THREAT_HORIZONS\020\0042\251\004\n\034Adv" + + "isoryNotificationsService\022\337\001\n\021ListNotifi" + + "cations\022?.google.cloud.advisorynotificat" + + "ions.v1.ListNotificationsRequest\032@.googl" + + "e.cloud.advisorynotifications.v1.ListNot" + + "ificationsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1" + + "/{parent=organizations/*/locations/*}/no" + + "tifications\022\314\001\n\017GetNotification\022=.google" + + ".cloud.advisorynotifications.v1.GetNotif" + + "icationRequest\0323.google.cloud.advisoryno" + + "tifications.v1.Notification\"E\332A\004name\202\323\344\223" + + "\0028\0226/v1/{name=organizations/*/locations/" + + "*/notifications/*}\032X\312A$advisorynotificat" + + "ions.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\374\002\n)com.goo" + + "gle.cloud.advisorynotifications.v1B\014Serv" + + "iceProtoP\001Z_cloud.google.com/go/advisory" + + "notifications/apiv1/advisorynotification" + + "spb;advisorynotificationspb\252\002%Google.Clo" + + "ud.AdvisoryNotifications.V1\312\002%Google\\Clo" + + "ud\\AdvisoryNotifications\\V1\352\002(Google::Cl" + + "oud::AdvisoryNotifications::V1\352Ab\n-advis" + + "orynotifications.googleapis.com/Location" + + "\0221organizations/{organization}/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 a9d23fec5191..9dabf16d6f03 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,55 +1,76 @@ +/* + * 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. + * 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(); } - 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 @@ -57,18 +78,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.
    * 
@@ -77,10 +105,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; @@ -92,8 +123,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()); } @@ -107,8 +137,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; @@ -118,17 +147,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; @@ -151,131 +180,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(); @@ -289,9 +322,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 @@ -310,8 +343,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; } @@ -319,9 +355,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(); } } @@ -329,38 +363,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; @@ -368,7 +403,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()); } @@ -398,19 +434,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) { @@ -420,38 +456,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.
      * 
@@ -472,14 +522,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 { @@ -490,6 +541,8 @@ public Builder setText( return this; } /** + * + * *
      * The text content.
      * 
@@ -498,9 +551,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; @@ -513,6 +566,8 @@ public Builder mergeText(com.google.cloud.advisorynotifications.v1.Text value) { return this; } /** + * + * *
      * The text content.
      * 
@@ -530,6 +585,8 @@ public Builder clearText() { return this; } /** + * + * *
      * The text content.
      * 
@@ -542,6 +599,8 @@ public com.google.cloud.advisorynotifications.v1.Text.Builder getTextBuilder() { return getTextFieldBuilder().getBuilder(); } /** + * + * *
      * The text content.
      * 
@@ -552,11 +611,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.
      * 
@@ -564,21 +626,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); } @@ -588,12 +653,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(); } @@ -602,27 +667,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; @@ -637,6 +702,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..42a912ff7d88 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 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. + * 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 d18e840eac97..7d9c4c3f41df 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 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. + * 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,33 +45,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(); } - 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 @@ -62,29 +85,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 { @@ -93,14 +116,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 @@ -109,29 +136,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 { @@ -142,30 +169,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; @@ -177,15 +216,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); @@ -203,9 +244,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; @@ -215,17 +258,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; @@ -249,132 +291,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(); @@ -386,9 +432,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 @@ -407,8 +453,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; } @@ -430,38 +479,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; @@ -509,27 +559,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) { @@ -539,22 +593,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; @@ -563,20 +620,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 { @@ -584,28 +642,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() { @@ -615,17 +680,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; @@ -635,18 +704,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; @@ -655,20 +726,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 { @@ -676,28 +748,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() { @@ -707,17 +786,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; @@ -727,22 +810,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. */ @@ -753,28 +843,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(); } @@ -784,11 +884,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() { @@ -797,9 +900,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); } @@ -809,12 +912,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(); } @@ -823,27 +926,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; @@ -858,6 +961,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..1c00a8d9b8fa 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 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. + * 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 b2f4c5f79d45..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,262 +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" + - "\"\321\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\0225\n\013create_time\030\004 \001(\0132\032.google.protobu" + - "f.TimestampB\004\342A\001\003\022R\n\021notification_type\030\014" + - " \001(\01627.google.cloud.advisorynotification" + - "s.v1.NotificationType:\244\001\352A\240\001\n1advisoryno" + - "tifications.googleapis.com/Notification\022" + - "Norganizations/{organization}/locations/" + - "{location}/notifications/{notification}*" + - "\rnotifications2\014notification\"\205\001\n\004Text\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.google.clou" + - "d.advisorynotifications.v1.LocalizationS" + - "tate\"D\n\007Subject\0229\n\004text\030\001 \001(\0132+.google.c" + - "loud.advisorynotifications.v1.Text\"\277\002\n\007M" + - "essage\022A\n\004body\030\001 \001(\01323.google.cloud.advi" + - "sorynotifications.v1.Message.Body\022F\n\013att" + - "achments\030\002 \003(\01321.google.cloud.advisoryno" + - "tifications.v1.Attachment\022/\n\013create_time" + - "\030\003 \001(\0132\032.google.protobuf.Timestamp\0225\n\021lo" + - "calization_time\030\004 \001(\0132\032.google.protobuf." + - "Timestamp\032A\n\004Body\0229\n\004text\030\001 \001(\0132+.google" + - ".cloud.advisorynotifications.v1.Text\"e\n\n" + - "Attachment\0229\n\003csv\030\002 \001(\0132*.google.cloud.a" + - "dvisorynotifications.v1.CsvH\000\022\024\n\014display" + - "_name\030\001 \001(\tB\006\n\004data\"w\n\003Csv\022\017\n\007headers\030\001 " + - "\003(\t\022D\n\tdata_rows\030\002 \003(\01321.google.cloud.ad" + - "visorynotifications.v1.Csv.CsvRow\032\031\n\006Csv" + - "Row\022\017\n\007entries\030\001 \003(\t\"\353\001\n\030ListNotificatio" + - "nsRequest\022J\n\006parent\030\001 \001(\tB:\342A\001\002\372A3\0221advi" + - "sorynotifications.googleapis.com/Notific" + - "ation\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" + - " \001(\t\022E\n\004view\030\004 \001(\01627.google.cloud.adviso" + - "rynotifications.v1.NotificationView\022\025\n\rl" + - "anguage_code\030\005 \001(\t\"\224\001\n\031ListNotifications" + - "Response\022J\n\rnotifications\030\001 \003(\01323.google" + - ".cloud.advisorynotifications.v1.Notifica" + - "tion\022\027\n\017next_page_token\030\002 \001(\t\022\022\n\ntotal_s" + - "ize\030\003 \001(\005\"y\n\026GetNotificationRequest\022H\n\004n" + - "ame\030\001 \001(\tB:\342A\001\002\372A3\n1advisorynotification" + - "s.googleapis.com/Notification\022\025\n\rlanguag" + - "e_code\030\005 \001(\t*J\n\020NotificationView\022!\n\035NOTI" + - "FICATION_VIEW_UNSPECIFIED\020\000\022\t\n\005BASIC\020\001\022\010" + - "\n\004FULL\020\002*\240\001\n\021LocalizationState\022\"\n\036LOCALI" + - "ZATION_STATE_UNSPECIFIED\020\000\022%\n!LOCALIZATI" + - "ON_STATE_NOT_APPLICABLE\020\001\022\036\n\032LOCALIZATIO" + - "N_STATE_PENDING\020\002\022 \n\034LOCALIZATION_STATE_" + - "COMPLETED\020\003*\332\001\n\020NotificationType\022!\n\035NOTI" + - "FICATION_TYPE_UNSPECIFIED\020\000\022/\n+NOTIFICAT" + - "ION_TYPE_SECURITY_PRIVACY_ADVISORY\020\001\022\'\n#" + - "NOTIFICATION_TYPE_SENSITIVE_ACTIONS\020\002\022\"\n" + - "\036NOTIFICATION_TYPE_SECURITY_MSA\020\003\022%\n!NOT" + - "IFICATION_TYPE_THREAT_HORIZONS\020\0042\251\004\n\034Adv" + - "isoryNotificationsService\022\337\001\n\021ListNotifi" + - "cations\022?.google.cloud.advisorynotificat" + - "ions.v1.ListNotificationsRequest\032@.googl" + - "e.cloud.advisorynotifications.v1.ListNot" + - "ificationsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1" + - "/{parent=organizations/*/locations/*}/no" + - "tifications\022\314\001\n\017GetNotification\022=.google" + - ".cloud.advisorynotifications.v1.GetNotif" + - "icationRequest\0323.google.cloud.advisoryno" + - "tifications.v1.Notification\"E\332A\004name\202\323\344\223" + - "\0028\0226/v1/{name=organizations/*/locations/" + - "*/notifications/*}\032X\312A$advisorynotificat" + - "ions.googleapis.com\322A.https://www.google" + - "apis.com/auth/cloud-platformB\374\002\n)com.goo" + - "gle.cloud.advisorynotifications.v1B\014Serv" + - "iceProtoP\001Z_cloud.google.com/go/advisory" + - "notifications/apiv1/advisorynotification" + - "spb;advisorynotificationspb\252\002%Google.Clo" + - "ud.AdvisoryNotifications.V1\312\002%Google\\Clo" + - "ud\\AdvisoryNotifications\\V1\352\002(Google::Cl" + - "oud::AdvisoryNotifications::V1\352Ab\n-advis" + - "orynotifications.googleapis.com/Location" + - "\0221organizations/{organization}/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) -}