From a157a6e84625104ca3d40943df311f7ebfaa9bd3 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:35:34 +0000 Subject: [PATCH 1/4] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../publishing/v1/PublisherClient.java | 20 +- .../publishing/v1/PublisherSettings.java | 30 +- .../publishing/v1/gapic_metadata.json | 0 .../eventarc/publishing/v1/package-info.java | 0 .../v1/stub/GrpcPublisherCallableFactory.java | 0 .../publishing/v1/stub/GrpcPublisherStub.java | 1 + .../HttpJsonPublisherCallableFactory.java | 105 ++++ .../v1/stub/HttpJsonPublisherStub.java | 264 ++++++++ .../publishing/v1/stub/PublisherStub.java | 0 .../v1/stub/PublisherStubSettings.java | 58 +- .../eventarc/publishing/v1/MockPublisher.java | 0 .../publishing/v1/MockPublisherImpl.java | 0 .../v1/PublisherClientHttpJsonTest.java | 176 ++++++ .../publishing/v1/PublisherClientTest.java | 0 .../eventarc/publishing/v1/PublisherGrpc.java | 360 ++++------- ...PublishChannelConnectionEventsRequest.java | 570 +++++++----------- ...annelConnectionEventsRequestOrBuilder.java | 46 +- ...ublishChannelConnectionEventsResponse.java | 344 +++++------ ...nnelConnectionEventsResponseOrBuilder.java | 9 + .../publishing/v1/PublishEventsRequest.java | 476 ++++++--------- .../v1/PublishEventsRequestOrBuilder.java | 46 +- .../publishing/v1/PublishEventsResponse.java | 246 ++++---- .../v1/PublishEventsResponseOrBuilder.java | 9 + .../publishing/v1/PublisherProto.java | 124 ++++ .../eventarc/publishing/v1/publisher.proto | 0 ...nnelConnectionEventsResponseOrBuilder.java | 24 - .../v1/PublishEventsResponseOrBuilder.java | 24 - .../publishing/v1/PublisherProto.java | 138 ----- 28 files changed, 1598 insertions(+), 1472 deletions(-) rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java (92%) rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java (86%) rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/gapic_metadata.json (100%) rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/package-info.java (100%) rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherCallableFactory.java (100%) rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java (99%) create mode 100644 owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherStub.java rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStub.java (100%) rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java (83%) rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisher.java (100%) rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisherImpl.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientHttpJsonTest.java rename {google-cloud-eventarc-publishing => owl-bot-staging/v1/google-cloud-eventarc-publishing}/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientTest.java (100%) rename {grpc-google-cloud-eventarc-publishing-v1 => owl-bot-staging/v1/grpc-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java (52%) rename {proto-google-cloud-eventarc-publishing-v1 => owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java (66%) rename {proto-google-cloud-eventarc-publishing-v1 => owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java (65%) rename {proto-google-cloud-eventarc-publishing-v1 => owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java (52%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java rename {proto-google-cloud-eventarc-publishing-v1 => owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java (72%) rename {proto-google-cloud-eventarc-publishing-v1 => owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java (64%) rename {proto-google-cloud-eventarc-publishing-v1 => owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java (66%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java create mode 100644 owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java rename {proto-google-cloud-eventarc-publishing-v1 => owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1}/src/main/proto/google/cloud/eventarc/publishing/v1/publisher.proto (100%) delete mode 100644 proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java delete mode 100644 proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java delete mode 100644 proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java diff --git a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java similarity index 92% rename from google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java index aa6f53a..9cf4438 100644 --- a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java +++ b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java @@ -72,13 +72,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* @@ -113,6 +113,20 @@ * PublisherClient publisherClient = PublisherClient.create(publisherSettings); * } * + *

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") diff --git a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java similarity index 86% rename from google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java index 8a78619..4fcaa5a 100644 --- a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java +++ b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java @@ -21,9 +21,11 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.eventarc.publishing.v1.stub.PublisherStubSettings; @@ -38,10 +40,10 @@ *

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

* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -104,11 +106,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return PublisherStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return PublisherStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return PublisherStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return PublisherStubSettings.defaultTransportChannelProvider(); } @@ -118,11 +127,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return PublisherStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -160,6 +175,11 @@ private static Builder createDefault() { return new Builder(PublisherStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(PublisherStubSettings.newHttpJsonBuilder()); + } + public PublisherStubSettings.Builder getStubSettingsBuilder() { return ((PublisherStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/gapic_metadata.json similarity index 100% rename from google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/gapic_metadata.json diff --git a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/package-info.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/package-info.java similarity index 100% rename from google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/package-info.java diff --git a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherCallableFactory.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherCallableFactory.java similarity index 100% rename from google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherCallableFactory.java rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherCallableFactory.java diff --git a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java similarity index 99% rename from google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java index 09f6c09..79e463a 100644 --- a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java +++ b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java @@ -31,6 +31,7 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; +import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherCallableFactory.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherCallableFactory.java new file mode 100644 index 0000000..f9c715c --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.eventarc.publishing.v1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the Publisher service API. + * + *

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

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonPublisherStub extends PublisherStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + PublishChannelConnectionEventsRequest, PublishChannelConnectionEventsResponse> + publishChannelConnectionEventsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.eventarc.publishing.v1.Publisher/PublishChannelConnectionEvents") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{channelConnection=projects/*/locations/*/channelConnections/*}:publishEvents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "channelConnection", request.getChannelConnection()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody( + "*", request.toBuilder().clearChannelConnection().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + PublishChannelConnectionEventsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + publishEventsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.eventarc.publishing.v1.Publisher/PublishEvents") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{channel=projects/*/locations/*/channels/*}:publishEvents", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "channel", request.getChannel()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearChannel().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(PublishEventsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable< + PublishChannelConnectionEventsRequest, PublishChannelConnectionEventsResponse> + publishChannelConnectionEventsCallable; + private final UnaryCallable publishEventsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonPublisherStub create(PublisherStubSettings settings) + throws IOException { + return new HttpJsonPublisherStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonPublisherStub create(ClientContext clientContext) throws IOException { + return new HttpJsonPublisherStub( + PublisherStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonPublisherStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonPublisherStub( + PublisherStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonPublisherStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonPublisherStub(PublisherStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonPublisherCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonPublisherStub, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected HttpJsonPublisherStub( + PublisherStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings< + PublishChannelConnectionEventsRequest, PublishChannelConnectionEventsResponse> + publishChannelConnectionEventsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(publishChannelConnectionEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + publishEventsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(publishEventsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.publishChannelConnectionEventsCallable = + callableFactory.createUnaryCallable( + publishChannelConnectionEventsTransportSettings, + settings.publishChannelConnectionEventsSettings(), + clientContext); + this.publishEventsCallable = + callableFactory.createUnaryCallable( + publishEventsTransportSettings, settings.publishEventsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(publishChannelConnectionEventsMethodDescriptor); + methodDescriptors.add(publishEventsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable< + PublishChannelConnectionEventsRequest, PublishChannelConnectionEventsResponse> + publishChannelConnectionEventsCallable() { + return publishChannelConnectionEventsCallable; + } + + @Override + public UnaryCallable publishEventsCallable() { + return publishEventsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStub.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStub.java similarity index 100% rename from google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStub.java rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStub.java diff --git a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java similarity index 83% rename from google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java index 2346ff6..dc8fa75 100644 --- a/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java @@ -24,6 +24,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -51,10 +54,10 @@ *

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

* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -108,6 +111,11 @@ public PublisherStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcPublisherStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonPublisherStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -140,29 +148,54 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) .setTransportToken( GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(PublisherStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return PublisherStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -260,6 +293,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .publishChannelConnectionEventsSettings() diff --git a/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisher.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisher.java similarity index 100% rename from google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisher.java rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisher.java diff --git a/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisherImpl.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisherImpl.java similarity index 100% rename from google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisherImpl.java rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisherImpl.java diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientHttpJsonTest.java new file mode 100644 index 0000000..0ee9768 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientHttpJsonTest.java @@ -0,0 +1,176 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.eventarc.publishing.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.eventarc.publishing.v1.stub.HttpJsonPublisherStub; +import com.google.protobuf.Any; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class PublisherClientHttpJsonTest { + private static MockHttpService mockService; + private static PublisherClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonPublisherStub.getMethodDescriptors(), PublisherSettings.getDefaultEndpoint()); + PublisherSettings settings = + PublisherSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + PublisherSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = PublisherClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void publishChannelConnectionEventsTest() throws Exception { + PublishChannelConnectionEventsResponse expectedResponse = + PublishChannelConnectionEventsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + PublishChannelConnectionEventsRequest request = + PublishChannelConnectionEventsRequest.newBuilder() + .setChannelConnection( + "projects/project-748/locations/location-748/channelConnections/channelConnection-748") + .addAllEvents(new ArrayList()) + .build(); + + PublishChannelConnectionEventsResponse actualResponse = + client.publishChannelConnectionEvents(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void publishChannelConnectionEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PublishChannelConnectionEventsRequest request = + PublishChannelConnectionEventsRequest.newBuilder() + .setChannelConnection( + "projects/project-748/locations/location-748/channelConnections/channelConnection-748") + .addAllEvents(new ArrayList()) + .build(); + client.publishChannelConnectionEvents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void publishEventsTest() throws Exception { + PublishEventsResponse expectedResponse = PublishEventsResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + PublishEventsRequest request = + PublishEventsRequest.newBuilder() + .setChannel("projects/project-2616/locations/location-2616/channels/channel-2616") + .addAllEvents(new ArrayList()) + .build(); + + PublishEventsResponse actualResponse = client.publishEvents(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void publishEventsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + PublishEventsRequest request = + PublishEventsRequest.newBuilder() + .setChannel("projects/project-2616/locations/location-2616/channels/channel-2616") + .addAllEvents(new ArrayList()) + .build(); + client.publishEvents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientTest.java b/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientTest.java similarity index 100% rename from google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientTest.java rename to owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientTest.java diff --git a/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java similarity index 52% rename from grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java index a3fa42f..1874438 100644 --- a/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java @@ -1,25 +1,8 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ package com.google.cloud.eventarc.publishing.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Eventarc processes events generated by an event provider and delivers them to
  * a subscriber.
@@ -51,151 +34,113 @@ private PublisherGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.eventarc.publishing.v1.Publisher";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest,
-          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>
-      getPublishChannelConnectionEventsMethod;
+  private static volatile io.grpc.MethodDescriptor getPublishChannelConnectionEventsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PublishChannelConnectionEvents",
-      requestType =
-          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class,
-      responseType =
-          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class,
+      requestType = com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class,
+      responseType = com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest,
-          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>
-      getPublishChannelConnectionEventsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest,
-            com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>
-        getPublishChannelConnectionEventsMethod;
-    if ((getPublishChannelConnectionEventsMethod =
-            PublisherGrpc.getPublishChannelConnectionEventsMethod)
-        == null) {
+  public static io.grpc.MethodDescriptor getPublishChannelConnectionEventsMethod() {
+    io.grpc.MethodDescriptor getPublishChannelConnectionEventsMethod;
+    if ((getPublishChannelConnectionEventsMethod = PublisherGrpc.getPublishChannelConnectionEventsMethod) == null) {
       synchronized (PublisherGrpc.class) {
-        if ((getPublishChannelConnectionEventsMethod =
-                PublisherGrpc.getPublishChannelConnectionEventsMethod)
-            == null) {
-          PublisherGrpc.getPublishChannelConnectionEventsMethod =
-              getPublishChannelConnectionEventsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(
-                          generateFullMethodName(SERVICE_NAME, "PublishChannelConnectionEvents"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.eventarc.publishing.v1
-                                  .PublishChannelConnectionEventsRequest.getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.eventarc.publishing.v1
-                                  .PublishChannelConnectionEventsResponse.getDefaultInstance()))
-                      .setSchemaDescriptor(
-                          new PublisherMethodDescriptorSupplier("PublishChannelConnectionEvents"))
-                      .build();
+        if ((getPublishChannelConnectionEventsMethod = PublisherGrpc.getPublishChannelConnectionEventsMethod) == null) {
+          PublisherGrpc.getPublishChannelConnectionEventsMethod = getPublishChannelConnectionEventsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PublishChannelConnectionEvents"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("PublishChannelConnectionEvents"))
+              .build();
         }
       }
     }
     return getPublishChannelConnectionEventsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.eventarc.publishing.v1.PublishEventsRequest,
-          com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>
-      getPublishEventsMethod;
+  private static volatile io.grpc.MethodDescriptor getPublishEventsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PublishEvents",
       requestType = com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.class,
       responseType = com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.eventarc.publishing.v1.PublishEventsRequest,
-          com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>
-      getPublishEventsMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.eventarc.publishing.v1.PublishEventsRequest,
-            com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>
-        getPublishEventsMethod;
+  public static io.grpc.MethodDescriptor getPublishEventsMethod() {
+    io.grpc.MethodDescriptor getPublishEventsMethod;
     if ((getPublishEventsMethod = PublisherGrpc.getPublishEventsMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getPublishEventsMethod = PublisherGrpc.getPublishEventsMethod) == null) {
-          PublisherGrpc.getPublishEventsMethod =
-              getPublishEventsMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PublishEvents"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.eventarc.publishing.v1.PublishEventsRequest
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.eventarc.publishing.v1.PublishEventsResponse
-                                  .getDefaultInstance()))
-                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("PublishEvents"))
-                      .build();
+          PublisherGrpc.getPublishEventsMethod = getPublishEventsMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PublishEvents"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.getDefaultInstance()))
+              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("PublishEvents"))
+              .build();
         }
       }
     }
     return getPublishEventsMethod;
   }
 
-  /** Creates a new async stub that supports all call types for the service */
+  /**
+   * Creates a new async stub that supports all call types for the service
+   */
   public static PublisherStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherStub(channel, callOptions);
+        }
+      };
     return PublisherStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PublisherBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static PublisherBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherBlockingStub(channel, callOptions);
+        }
+      };
     return PublisherBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static PublisherFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static PublisherFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public PublisherFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new PublisherFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public PublisherFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new PublisherFutureStub(channel, callOptions);
+        }
+      };
     return PublisherFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Eventarc processes events generated by an event provider and delivers them to
    * a subscriber.
@@ -216,64 +161,49 @@ public PublisherFutureStub newStub(
    * Publisher allows an event provider to publish events to Eventarc.
    * 
*/ - public abstract static class PublisherImplBase implements io.grpc.BindableService { + public static abstract class PublisherImplBase implements io.grpc.BindableService { /** - * - * *
      * Publish events to a ChannelConnection in a partner's project.
      * 
*/ - public void publishChannelConnectionEvents( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPublishChannelConnectionEventsMethod(), responseObserver); + public void publishChannelConnectionEvents(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPublishChannelConnectionEventsMethod(), responseObserver); } /** - * - * *
      * Publish events to a subscriber's channel.
      * 
*/ - public void publishEvents( - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getPublishEventsMethod(), responseObserver); + public void publishEvents(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPublishEventsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getPublishChannelConnectionEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest, - com.google.cloud.eventarc.publishing.v1 - .PublishChannelConnectionEventsResponse>( - this, METHODID_PUBLISH_CHANNEL_CONNECTION_EVENTS))) + getPublishChannelConnectionEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest, + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>( + this, METHODID_PUBLISH_CHANNEL_CONNECTION_EVENTS))) .addMethod( - getPublishEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest, - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>( - this, METHODID_PUBLISH_EVENTS))) + getPublishEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest, + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>( + this, METHODID_PUBLISH_EVENTS))) .build(); } } /** - * - * *
    * Eventarc processes events generated by an event provider and delivers them to
    * a subscriber.
@@ -295,54 +225,41 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * 
*/ public static final class PublisherStub extends io.grpc.stub.AbstractAsyncStub { - private PublisherStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PublisherStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected PublisherStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PublisherStub(channel, callOptions); } /** - * - * *
      * Publish events to a ChannelConnection in a partner's project.
      * 
*/ - public void publishChannelConnectionEvents( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request, - io.grpc.stub.StreamObserver< - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse> - responseObserver) { + public void publishChannelConnectionEvents(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPublishChannelConnectionEventsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPublishChannelConnectionEventsMethod(), getCallOptions()), request, responseObserver); } /** - * - * *
      * Publish events to a subscriber's channel.
      * 
*/ - public void publishEvents( - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void publishEvents(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPublishEventsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getPublishEventsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Eventarc processes events generated by an event provider and delivers them to
    * a subscriber.
@@ -363,9 +280,9 @@ public void publishEvents(
    * Publisher allows an event provider to publish events to Eventarc.
    * 
*/ - public static final class PublisherBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PublisherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private PublisherBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -376,36 +293,27 @@ protected PublisherBlockingStub build( } /** - * - * *
      * Publish events to a ChannelConnection in a partner's project.
      * 
*/ - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - publishChannelConnectionEvents( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request) { + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse publishChannelConnectionEvents(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPublishChannelConnectionEventsMethod(), getCallOptions(), request); } /** - * - * *
      * Publish events to a subscriber's channel.
      * 
*/ - public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse publishEvents( - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request) { + public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse publishEvents(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPublishEventsMethod(), getCallOptions(), request); } } /** - * - * *
    * Eventarc processes events generated by an event provider and delivers them to
    * a subscriber.
@@ -426,43 +334,36 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse publishEven
    * Publisher allows an event provider to publish events to Eventarc.
    * 
*/ - public static final class PublisherFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PublisherFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherFutureStub extends io.grpc.stub.AbstractFutureStub { + private PublisherFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected PublisherFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PublisherFutureStub(channel, callOptions); } /** - * - * *
      * Publish events to a ChannelConnection in a partner's project.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse> - publishChannelConnectionEvents( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request) { + public com.google.common.util.concurrent.ListenableFuture publishChannelConnectionEvents( + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPublishChannelConnectionEventsMethod(), getCallOptions()), - request); + getChannel().newCall(getPublishChannelConnectionEventsMethod(), getCallOptions()), request); } /** - * - * *
      * Publish events to a subscriber's channel.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse> - publishEvents(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request) { + public com.google.common.util.concurrent.ListenableFuture publishEvents( + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPublishEventsMethod(), getCallOptions()), request); } @@ -471,11 +372,11 @@ protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions private static final int METHODID_PUBLISH_CHANNEL_CONNECTION_EVENTS = 0; private static final int METHODID_PUBLISH_EVENTS = 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 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 PublisherImplBase serviceImpl; private final int methodId; @@ -489,20 +390,12 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PUBLISH_CHANNEL_CONNECTION_EVENTS: - serviceImpl.publishChannelConnectionEvents( - (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) - request, - (io.grpc.stub.StreamObserver< - com.google.cloud.eventarc.publishing.v1 - .PublishChannelConnectionEventsResponse>) - responseObserver); + serviceImpl.publishChannelConnectionEvents((com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PUBLISH_EVENTS: - serviceImpl.publishEvents( - (com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>) - responseObserver); + serviceImpl.publishEvents((com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -520,9 +413,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class PublisherBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class PublisherBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PublisherBaseDescriptorSupplier() {} @java.lang.Override @@ -564,13 +456,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PublisherGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PublisherFileDescriptorSupplier()) - .addMethod(getPublishChannelConnectionEventsMethod()) - .addMethod(getPublishEventsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PublisherFileDescriptorSupplier()) + .addMethod(getPublishChannelConnectionEventsMethod()) + .addMethod(getPublishEventsMethod()) + .build(); } } } diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java similarity index 66% rename from proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java index efe8b85..08ab06c 100644 --- a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java @@ -1,44 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; /** - * - * *
  * The request message for the PublishChannelConnectionEvents method.
  * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest} */ -public final class PublishChannelConnectionEventsRequest - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PublishChannelConnectionEventsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) PublishChannelConnectionEventsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PublishChannelConnectionEventsRequest.newBuilder() to construct. - private PublishChannelConnectionEventsRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PublishChannelConnectionEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PublishChannelConnectionEventsRequest() { channelConnection_ = ""; events_ = java.util.Collections.emptyList(); @@ -46,15 +26,16 @@ private PublishChannelConnectionEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishChannelConnectionEventsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PublishChannelConnectionEventsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,29 +55,28 @@ private PublishChannelConnectionEventsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - channelConnection_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add(input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; + channelConnection_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + events_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + events_.add( + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,7 +84,8 @@ private PublishChannelConnectionEventsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); @@ -113,35 +94,28 @@ private PublishChannelConnectionEventsRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class, - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.Builder - .class); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class, com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.Builder.class); } public static final int CHANNEL_CONNECTION_FIELD_NUMBER = 1; private volatile java.lang.Object channelConnection_; /** - * - * *
    * The channel_connection that the events are published from. For example:
    * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
    * 
* * string channel_connection = 1; - * * @return The channelConnection. */ @java.lang.Override @@ -150,30 +124,30 @@ public java.lang.String getChannelConnection() { 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(); channelConnection_ = s; return s; } } /** - * - * *
    * The channel_connection that the events are published from. For example:
    * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
    * 
* * string channel_connection = 1; - * * @return The bytes for channelConnection. */ @java.lang.Override - public com.google.protobuf.ByteString getChannelConnectionBytes() { + public com.google.protobuf.ByteString + getChannelConnectionBytes() { java.lang.Object ref = channelConnection_; 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); channelConnection_ = b; return b; } else { @@ -184,8 +158,6 @@ public com.google.protobuf.ByteString getChannelConnectionBytes() { public static final int EVENTS_FIELD_NUMBER = 2; private java.util.List events_; /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -197,8 +169,6 @@ public java.util.List getEventsList() { return events_; } /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -206,12 +176,11 @@ public java.util.List getEventsList() { * repeated .google.protobuf.Any events = 2; */ @java.lang.Override - public java.util.List getEventsOrBuilderList() { + public java.util.List + getEventsOrBuilderList() { return events_; } /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -223,8 +192,6 @@ public int getEventsCount() { return events_.size(); } /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -236,8 +203,6 @@ public com.google.protobuf.Any getEvents(int index) { return events_.get(index); } /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -245,12 +210,12 @@ public com.google.protobuf.Any getEvents(int index) { * repeated .google.protobuf.Any events = 2; */ @java.lang.Override - public com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index) { + public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( + int index) { return events_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -262,7 +227,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(channelConnection_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channelConnection_); } @@ -282,7 +248,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channelConnection_); } for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, events_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, events_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -292,17 +259,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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest)) { + if (!(obj instanceof com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest)) { return super.equals(obj); } - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest other = - (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) obj; + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest other = (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) obj; - if (!getChannelConnection().equals(other.getChannelConnection())) return false; - if (!getEventsList().equals(other.getEventsList())) return false; + if (!getChannelConnection() + .equals(other.getChannelConnection())) return false; + if (!getEventsList() + .equals(other.getEventsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -325,154 +292,136 @@ public int hashCode() { return hash; } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest prototype) { + public static Builder newBuilder(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest 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; } /** - * - * *
    * The request message for the PublishChannelConnectionEvents method.
    * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest} */ - 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class, - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.Builder - .class); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class, com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.Builder.class); } - // Construct using - // com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.newBuilder() + // Construct using com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEventsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -488,22 +437,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - getDefaultInstanceForType() { - return com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - .getDefaultInstance(); + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest getDefaultInstanceForType() { + return com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.getDefaultInstance(); } @java.lang.Override public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest build() { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest result = - buildPartial(); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -511,10 +457,8 @@ public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsReq } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - buildPartial() { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest result = - new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest(this); + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest buildPartial() { + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest result = new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest(this); int from_bitField0_ = bitField0_; result.channelConnection_ = channelConnection_; if (eventsBuilder_ == null) { @@ -534,53 +478,46 @@ public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsReq 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) { - return mergeFrom( - (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) other); + if (other instanceof com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) { + return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest other) { - if (other - == com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest other) { + if (other == com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.getDefaultInstance()) return this; if (!other.getChannelConnection().isEmpty()) { channelConnection_ = other.channelConnection_; onChanged(); @@ -603,10 +540,9 @@ public Builder mergeFrom( eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEventsFieldBuilder() - : null; + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } @@ -627,14 +563,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parsedMessage = - null; + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -643,26 +576,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object channelConnection_ = ""; /** - * - * *
      * The channel_connection that the events are published from. For example:
      * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
      * 
* * string channel_connection = 1; - * * @return The channelConnection. */ public java.lang.String getChannelConnection() { java.lang.Object ref = channelConnection_; 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(); channelConnection_ = s; return s; @@ -671,22 +601,21 @@ public java.lang.String getChannelConnection() { } } /** - * - * *
      * The channel_connection that the events are published from. For example:
      * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
      * 
* * string channel_connection = 1; - * * @return The bytes for channelConnection. */ - public com.google.protobuf.ByteString getChannelConnectionBytes() { + public com.google.protobuf.ByteString + getChannelConnectionBytes() { java.lang.Object ref = channelConnection_; 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); channelConnection_ = b; return b; } else { @@ -694,87 +623,75 @@ public com.google.protobuf.ByteString getChannelConnectionBytes() { } } /** - * - * *
      * The channel_connection that the events are published from. For example:
      * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
      * 
* * string channel_connection = 1; - * * @param value The channelConnection to set. * @return This builder for chaining. */ - public Builder setChannelConnection(java.lang.String value) { + public Builder setChannelConnection( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + channelConnection_ = value; onChanged(); return this; } /** - * - * *
      * The channel_connection that the events are published from. For example:
      * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
      * 
* * string channel_connection = 1; - * * @return This builder for chaining. */ public Builder clearChannelConnection() { - + channelConnection_ = getDefaultInstance().getChannelConnection(); onChanged(); return this; } /** - * - * *
      * The channel_connection that the events are published from. For example:
      * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
      * 
* * string channel_connection = 1; - * * @param value The bytes for channelConnection to set. * @return This builder for chaining. */ - public Builder setChannelConnectionBytes(com.google.protobuf.ByteString value) { + public Builder setChannelConnectionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channelConnection_ = value; onChanged(); return this; } - private java.util.List events_ = java.util.Collections.emptyList(); - + private java.util.List events_ = + java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - eventsBuilder_; + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> eventsBuilder_; /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -789,8 +706,6 @@ public java.util.List getEventsList() { } } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -805,8 +720,6 @@ public int getEventsCount() { } } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -821,15 +734,14 @@ public com.google.protobuf.Any getEvents(int index) { } } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder setEvents(int index, com.google.protobuf.Any value) { + public Builder setEvents( + int index, com.google.protobuf.Any value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -843,15 +755,14 @@ public Builder setEvents(int index, com.google.protobuf.Any value) { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder setEvents(int index, com.google.protobuf.Any.Builder builderForValue) { + public Builder setEvents( + int index, com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); @@ -862,8 +773,6 @@ public Builder setEvents(int index, com.google.protobuf.Any.Builder builderForVa return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -884,15 +793,14 @@ public Builder addEvents(com.google.protobuf.Any value) { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents(int index, com.google.protobuf.Any value) { + public Builder addEvents( + int index, com.google.protobuf.Any value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -906,15 +814,14 @@ public Builder addEvents(int index, com.google.protobuf.Any value) { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents(com.google.protobuf.Any.Builder builderForValue) { + public Builder addEvents( + com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); @@ -925,15 +832,14 @@ public Builder addEvents(com.google.protobuf.Any.Builder builderForValue) { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents(int index, com.google.protobuf.Any.Builder builderForValue) { + public Builder addEvents( + int index, com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); @@ -944,18 +850,18 @@ public Builder addEvents(int index, com.google.protobuf.Any.Builder builderForVa return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addAllEvents(java.lang.Iterable values) { + public Builder addAllEvents( + java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); @@ -963,8 +869,6 @@ public Builder addAllEvents(java.lang.Iterable * The CloudEvents v1.0 events to publish. No other types are allowed. *
@@ -982,8 +886,6 @@ public Builder clearEvents() { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -1001,43 +903,39 @@ public Builder removeEvents(int index) { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.Any.Builder getEventsBuilder(int index) { + public com.google.protobuf.Any.Builder getEventsBuilder( + int index) { return getEventsFieldBuilder().getBuilder(index); } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index) { + public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( + int index) { if (eventsBuilder_ == null) { - return events_.get(index); - } else { + return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public java.util.List getEventsOrBuilderList() { + public java.util.List + getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { @@ -1045,8 +943,6 @@ public java.util.List getEventsOrBui } } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -1054,53 +950,49 @@ public java.util.List getEventsOrBui * repeated .google.protobuf.Any events = 2; */ public com.google.protobuf.Any.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance()); + return getEventsFieldBuilder().addBuilder( + com.google.protobuf.Any.getDefaultInstance()); } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.Any.Builder addEventsBuilder(int index) { - return getEventsFieldBuilder() - .addBuilder(index, com.google.protobuf.Any.getDefaultInstance()); + public com.google.protobuf.Any.Builder addEventsBuilder( + int index) { + return getEventsFieldBuilder().addBuilder( + index, com.google.protobuf.Any.getDefaultInstance()); } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public java.util.List getEventsBuilderList() { + public java.util.List + getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { - eventsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder>( - events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + events_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); events_ = null; } return eventsBuilder_; } - @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); } @@ -1110,33 +1002,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) - private static final com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest(); + DEFAULT_INSTANCE = new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest(); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - getDefaultInstance() { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishChannelConnectionEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishChannelConnectionEventsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishChannelConnectionEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishChannelConnectionEventsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1148,8 +1037,9 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest - getDefaultInstanceForType() { + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java similarity index 65% rename from proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java index 10e6d56..4dcfe2d 100644 --- a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java @@ -1,68 +1,44 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; -public interface PublishChannelConnectionEventsRequestOrBuilder - extends +public interface PublishChannelConnectionEventsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The channel_connection that the events are published from. For example:
    * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
    * 
* * string channel_connection = 1; - * * @return The channelConnection. */ java.lang.String getChannelConnection(); /** - * - * *
    * The channel_connection that the events are published from. For example:
    * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
    * 
* * string channel_connection = 1; - * * @return The bytes for channelConnection. */ - com.google.protobuf.ByteString getChannelConnectionBytes(); + com.google.protobuf.ByteString + getChannelConnectionBytes(); /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - java.util.List getEventsList(); + java.util.List + getEventsList(); /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -71,8 +47,6 @@ public interface PublishChannelConnectionEventsRequestOrBuilder */ com.google.protobuf.Any getEvents(int index); /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -81,23 +55,21 @@ public interface PublishChannelConnectionEventsRequestOrBuilder */ int getEventsCount(); /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - java.util.List getEventsOrBuilderList(); + java.util.List + getEventsOrBuilderList(); /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index); + com.google.protobuf.AnyOrBuilder getEventsOrBuilder( + int index); } diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java similarity index 52% rename from proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java index 5cbd453..48297ba 100644 --- a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java @@ -1,57 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; /** - * - * *
  * The response message for the PublishChannelConnectionEvents method.
  * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse} */ -public final class PublishChannelConnectionEventsResponse - extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PublishChannelConnectionEventsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) PublishChannelConnectionEventsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PublishChannelConnectionEventsResponse.newBuilder() to construct. - private PublishChannelConnectionEventsResponse( - com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PublishChannelConnectionEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PublishChannelConnectionEventsResponse() {} + private PublishChannelConnectionEventsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishChannelConnectionEventsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PublishChannelConnectionEventsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,13 +52,13 @@ private PublishChannelConnectionEventsResponse( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,31 +66,27 @@ private PublishChannelConnectionEventsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class, - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.Builder - .class); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class, com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -120,7 +98,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 { unknownFields.writeTo(output); } @@ -138,15 +117,12 @@ 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse)) { + if (!(obj instanceof com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse)) { return super.equals(obj); } - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse other = - (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) obj; + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse other = (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -164,153 +140,135 @@ public int hashCode() { return hash; } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, extensionRegistry); + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse prototype) { + public static Builder newBuilder(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse 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; } /** - * - * *
    * The response message for the PublishChannelConnectionEvents method.
    * 
* - * Protobuf type {@code - * google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse} + * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse} */ - 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class, - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.Builder - .class); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class, com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.Builder.class); } - // Construct using - // com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.newBuilder() + // Construct using com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -318,22 +276,19 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - getDefaultInstanceForType() { - return com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - .getDefaultInstance(); + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse getDefaultInstanceForType() { + return com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.getDefaultInstance(); } @java.lang.Override public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse build() { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse result = - buildPartial(); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -341,10 +296,8 @@ public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRes } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - buildPartial() { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse result = - new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse(this); + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse buildPartial() { + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse result = new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse(this); onBuilt(); return result; } @@ -353,53 +306,46 @@ public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRes 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) { - return mergeFrom( - (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) other); + if (other instanceof com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) { + return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse other) { - if (other - == com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - .getDefaultInstance()) return this; + public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse other) { + if (other == com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -415,14 +361,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parsedMessage = - null; + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -431,9 +374,9 @@ public Builder mergeFrom( } 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); } @@ -443,34 +386,30 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) - private static final com.google.cloud.eventarc.publishing.v1 - .PublishChannelConnectionEventsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse(); + DEFAULT_INSTANCE = new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse(); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - getDefaultInstance() { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishChannelConnectionEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishChannelConnectionEventsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishChannelConnectionEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishChannelConnectionEventsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -482,8 +421,9 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse - getDefaultInstanceForType() { + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java new file mode 100644 index 0000000..86d1e15 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/eventarc/publishing/v1/publisher.proto + +package com.google.cloud.eventarc.publishing.v1; + +public interface PublishChannelConnectionEventsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java similarity index 72% rename from proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java index 2cea78f..e5c8f6c 100644 --- a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java @@ -1,42 +1,24 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; /** - * - * *
  * The request message for the PublishEvents method.
  * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishEventsRequest} */ -public final class PublishEventsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PublishEventsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.eventarc.publishing.v1.PublishEventsRequest) PublishEventsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PublishEventsRequest.newBuilder() to construct. private PublishEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PublishEventsRequest() { channel_ = ""; events_ = java.util.Collections.emptyList(); @@ -44,15 +26,16 @@ private PublishEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishEventsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PublishEventsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,29 +55,28 @@ private PublishEventsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - channel_ = s; - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - events_.add(input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; + channel_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + events_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + events_.add( + input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -102,7 +84,8 @@ private PublishEventsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); @@ -111,34 +94,28 @@ private PublishEventsRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.class, - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.class, com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.Builder.class); } public static final int CHANNEL_FIELD_NUMBER = 1; private volatile java.lang.Object channel_; /** - * - * *
    * The full name of the channel to publish to. For example:
    * `projects/{project}/locations/{location}/channels/{channel-id}`.
    * 
* * string channel = 1; - * * @return The channel. */ @java.lang.Override @@ -147,30 +124,30 @@ public java.lang.String getChannel() { 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(); channel_ = s; return s; } } /** - * - * *
    * The full name of the channel to publish to. For example:
    * `projects/{project}/locations/{location}/channels/{channel-id}`.
    * 
* * string channel = 1; - * * @return The bytes for channel. */ @java.lang.Override - public com.google.protobuf.ByteString getChannelBytes() { + public com.google.protobuf.ByteString + getChannelBytes() { java.lang.Object ref = channel_; 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); channel_ = b; return b; } else { @@ -181,8 +158,6 @@ public com.google.protobuf.ByteString getChannelBytes() { public static final int EVENTS_FIELD_NUMBER = 2; private java.util.List events_; /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -194,8 +169,6 @@ public java.util.List getEventsList() { return events_; } /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -203,12 +176,11 @@ public java.util.List getEventsList() { * repeated .google.protobuf.Any events = 2; */ @java.lang.Override - public java.util.List getEventsOrBuilderList() { + public java.util.List + getEventsOrBuilderList() { return events_; } /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -220,8 +192,6 @@ public int getEventsCount() { return events_.size(); } /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -233,8 +203,6 @@ public com.google.protobuf.Any getEvents(int index) { return events_.get(index); } /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -242,12 +210,12 @@ public com.google.protobuf.Any getEvents(int index) { * repeated .google.protobuf.Any events = 2; */ @java.lang.Override - public com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index) { + public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( + int index) { return events_.get(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -259,7 +227,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(channel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channel_); } @@ -279,7 +248,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channel_); } for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, events_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, events_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -289,16 +259,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.eventarc.publishing.v1.PublishEventsRequest)) { return super.equals(obj); } - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest other = - (com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) obj; + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest other = (com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) obj; - if (!getChannel().equals(other.getChannel())) return false; - if (!getEventsList().equals(other.getEventsList())) return false; + if (!getChannel() + .equals(other.getChannel())) return false; + if (!getEventsList() + .equals(other.getEventsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -322,127 +293,117 @@ public int hashCode() { } public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest prototype) { + public static Builder newBuilder(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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; } /** - * - * *
    * The request message for the PublishEvents method.
    * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishEventsRequest} */ - 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.eventarc.publishing.v1.PublishEventsRequest) com.google.cloud.eventarc.publishing.v1.PublishEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.class, - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.class, com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.Builder.class); } // Construct using com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.newBuilder() @@ -450,17 +411,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { getEventsFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -476,14 +437,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest - getDefaultInstanceForType() { + public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest getDefaultInstanceForType() { return com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.getDefaultInstance(); } @@ -498,8 +458,7 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest build() { @java.lang.Override public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest buildPartial() { - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest result = - new com.google.cloud.eventarc.publishing.v1.PublishEventsRequest(this); + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest result = new com.google.cloud.eventarc.publishing.v1.PublishEventsRequest(this); int from_bitField0_ = bitField0_; result.channel_ = channel_; if (eventsBuilder_ == null) { @@ -519,39 +478,38 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest buildPartial public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) { - return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) other); + return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishEventsRequest)other); } else { super.mergeFrom(other); return this; @@ -559,9 +517,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest other) { - if (other - == com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.getDefaultInstance()) return this; if (!other.getChannel().isEmpty()) { channel_ = other.channel_; onChanged(); @@ -584,10 +540,9 @@ public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishEventsRe eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getEventsFieldBuilder() - : null; + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getEventsFieldBuilder() : null; } else { eventsBuilder_.addAllMessages(other.events_); } @@ -612,8 +567,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -622,26 +576,23 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object channel_ = ""; /** - * - * *
      * The full name of the channel to publish to. For example:
      * `projects/{project}/locations/{location}/channels/{channel-id}`.
      * 
* * string channel = 1; - * * @return The channel. */ public java.lang.String getChannel() { java.lang.Object ref = channel_; 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(); channel_ = s; return s; @@ -650,22 +601,21 @@ public java.lang.String getChannel() { } } /** - * - * *
      * The full name of the channel to publish to. For example:
      * `projects/{project}/locations/{location}/channels/{channel-id}`.
      * 
* * string channel = 1; - * * @return The bytes for channel. */ - public com.google.protobuf.ByteString getChannelBytes() { + public com.google.protobuf.ByteString + getChannelBytes() { java.lang.Object ref = channel_; 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); channel_ = b; return b; } else { @@ -673,87 +623,75 @@ public com.google.protobuf.ByteString getChannelBytes() { } } /** - * - * *
      * The full name of the channel to publish to. For example:
      * `projects/{project}/locations/{location}/channels/{channel-id}`.
      * 
* * string channel = 1; - * * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel(java.lang.String value) { + public Builder setChannel( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + channel_ = value; onChanged(); return this; } /** - * - * *
      * The full name of the channel to publish to. For example:
      * `projects/{project}/locations/{location}/channels/{channel-id}`.
      * 
* * string channel = 1; - * * @return This builder for chaining. */ public Builder clearChannel() { - + channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** - * - * *
      * The full name of the channel to publish to. For example:
      * `projects/{project}/locations/{location}/channels/{channel-id}`.
      * 
* * string channel = 1; - * * @param value The bytes for channel to set. * @return This builder for chaining. */ - public Builder setChannelBytes(com.google.protobuf.ByteString value) { + public Builder setChannelBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channel_ = value; onChanged(); return this; } - private java.util.List events_ = java.util.Collections.emptyList(); - + private java.util.List events_ = + java.util.Collections.emptyList(); private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> - eventsBuilder_; + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> eventsBuilder_; /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -768,8 +706,6 @@ public java.util.List getEventsList() { } } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -784,8 +720,6 @@ public int getEventsCount() { } } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -800,15 +734,14 @@ public com.google.protobuf.Any getEvents(int index) { } } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder setEvents(int index, com.google.protobuf.Any value) { + public Builder setEvents( + int index, com.google.protobuf.Any value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -822,15 +755,14 @@ public Builder setEvents(int index, com.google.protobuf.Any value) { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder setEvents(int index, com.google.protobuf.Any.Builder builderForValue) { + public Builder setEvents( + int index, com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); @@ -841,8 +773,6 @@ public Builder setEvents(int index, com.google.protobuf.Any.Builder builderForVa return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -863,15 +793,14 @@ public Builder addEvents(com.google.protobuf.Any value) { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents(int index, com.google.protobuf.Any value) { + public Builder addEvents( + int index, com.google.protobuf.Any value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -885,15 +814,14 @@ public Builder addEvents(int index, com.google.protobuf.Any value) { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents(com.google.protobuf.Any.Builder builderForValue) { + public Builder addEvents( + com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); @@ -904,15 +832,14 @@ public Builder addEvents(com.google.protobuf.Any.Builder builderForValue) { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents(int index, com.google.protobuf.Any.Builder builderForValue) { + public Builder addEvents( + int index, com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); @@ -923,18 +850,18 @@ public Builder addEvents(int index, com.google.protobuf.Any.Builder builderForVa return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addAllEvents(java.lang.Iterable values) { + public Builder addAllEvents( + java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); @@ -942,8 +869,6 @@ public Builder addAllEvents(java.lang.Iterable * The CloudEvents v1.0 events to publish. No other types are allowed. * @@ -961,8 +886,6 @@ public Builder clearEvents() { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -980,43 +903,39 @@ public Builder removeEvents(int index) { return this; } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.Any.Builder getEventsBuilder(int index) { + public com.google.protobuf.Any.Builder getEventsBuilder( + int index) { return getEventsFieldBuilder().getBuilder(index); } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index) { + public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( + int index) { if (eventsBuilder_ == null) { - return events_.get(index); - } else { + return events_.get(index); } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public java.util.List getEventsOrBuilderList() { + public java.util.List + getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { @@ -1024,8 +943,6 @@ public java.util.List getEventsOrBui } } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -1033,53 +950,49 @@ public java.util.List getEventsOrBui * repeated .google.protobuf.Any events = 2; */ public com.google.protobuf.Any.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance()); + return getEventsFieldBuilder().addBuilder( + com.google.protobuf.Any.getDefaultInstance()); } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.Any.Builder addEventsBuilder(int index) { - return getEventsFieldBuilder() - .addBuilder(index, com.google.protobuf.Any.getDefaultInstance()); + public com.google.protobuf.Any.Builder addEventsBuilder( + int index) { + return getEventsFieldBuilder().addBuilder( + index, com.google.protobuf.Any.getDefaultInstance()); } /** - * - * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public java.util.List getEventsBuilderList() { + public java.util.List + getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { - eventsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, - com.google.protobuf.Any.Builder, - com.google.protobuf.AnyOrBuilder>( - events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( + events_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); events_ = null; } return eventsBuilder_; } - @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); } @@ -1089,13 +1002,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.eventarc.publishing.v1.PublishEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.eventarc.publishing.v1.PublishEventsRequest) - private static final com.google.cloud.eventarc.publishing.v1.PublishEventsRequest - DEFAULT_INSTANCE; - + private static final com.google.cloud.eventarc.publishing.v1.PublishEventsRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.eventarc.publishing.v1.PublishEventsRequest(); } @@ -1104,16 +1016,16 @@ public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishEventsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishEventsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1128,4 +1040,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java similarity index 64% rename from proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java index 06fdddf..a2b5dfc 100644 --- a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java @@ -1,68 +1,44 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; -public interface PublishEventsRequestOrBuilder - extends +public interface PublishEventsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishEventsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The full name of the channel to publish to. For example:
    * `projects/{project}/locations/{location}/channels/{channel-id}`.
    * 
* * string channel = 1; - * * @return The channel. */ java.lang.String getChannel(); /** - * - * *
    * The full name of the channel to publish to. For example:
    * `projects/{project}/locations/{location}/channels/{channel-id}`.
    * 
* * string channel = 1; - * * @return The bytes for channel. */ - com.google.protobuf.ByteString getChannelBytes(); + com.google.protobuf.ByteString + getChannelBytes(); /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - java.util.List getEventsList(); + java.util.List + getEventsList(); /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -71,8 +47,6 @@ public interface PublishEventsRequestOrBuilder */ com.google.protobuf.Any getEvents(int index); /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -81,23 +55,21 @@ public interface PublishEventsRequestOrBuilder */ int getEventsCount(); /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - java.util.List getEventsOrBuilderList(); + java.util.List + getEventsOrBuilderList(); /** - * - * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index); + com.google.protobuf.AnyOrBuilder getEventsOrBuilder( + int index); } diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java similarity index 66% rename from proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java index d2a3500..3ef0502 100644 --- a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java @@ -1,55 +1,39 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; /** - * - * *
  * The response message for the PublishEvents method.
  * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishEventsResponse} */ -public final class PublishEventsResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class PublishEventsResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.eventarc.publishing.v1.PublishEventsResponse) PublishEventsResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use PublishEventsResponse.newBuilder() to construct. private PublishEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private PublishEventsResponse() {} + private PublishEventsResponse() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new PublishEventsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private PublishEventsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,13 +52,13 @@ private PublishEventsResponse( case 0: done = true; break; - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -82,30 +66,27 @@ private PublishEventsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.class, - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.class, com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.Builder.class); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -117,7 +98,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 { unknownFields.writeTo(output); } @@ -135,13 +117,12 @@ 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.eventarc.publishing.v1.PublishEventsResponse)) { return super.equals(obj); } - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse other = - (com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) obj; + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse other = (com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -160,127 +141,117 @@ public int hashCode() { } public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse prototype) { + public static Builder newBuilder(com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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; } /** - * - * *
    * The response message for the PublishEvents method.
    * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishEventsResponse} */ - 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.eventarc.publishing.v1.PublishEventsResponse) com.google.cloud.eventarc.publishing.v1.PublishEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.class, - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.class, com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.Builder.class); } // Construct using com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.newBuilder() @@ -288,15 +259,16 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } } - @java.lang.Override public Builder clear() { super.clear(); @@ -304,14 +276,13 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto - .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse - getDefaultInstanceForType() { + public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse getDefaultInstanceForType() { return com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.getDefaultInstance(); } @@ -326,8 +297,7 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse build() { @java.lang.Override public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse buildPartial() { - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse result = - new com.google.cloud.eventarc.publishing.v1.PublishEventsResponse(this); + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse result = new com.google.cloud.eventarc.publishing.v1.PublishEventsResponse(this); onBuilt(); return result; } @@ -336,39 +306,38 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse buildPartia public Builder clone() { return super.clone(); } - @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.setField(field, value); } - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } - @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } - @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { return super.addRepeatedField(field, value); } - @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) { - return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) other); + return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishEventsResponse)other); } else { super.mergeFrom(other); return this; @@ -376,9 +345,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishEventsResponse other) { - if (other - == com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -398,9 +365,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) - e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -409,9 +374,9 @@ public Builder mergeFrom( } 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); } @@ -421,13 +386,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.eventarc.publishing.v1.PublishEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.eventarc.publishing.v1.PublishEventsResponse) - private static final com.google.cloud.eventarc.publishing.v1.PublishEventsResponse - DEFAULT_INSTANCE; - + private static final com.google.cloud.eventarc.publishing.v1.PublishEventsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new com.google.cloud.eventarc.publishing.v1.PublishEventsResponse(); } @@ -436,16 +400,16 @@ public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishEventsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishEventsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -460,4 +424,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java new file mode 100644 index 0000000..b407f96 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java @@ -0,0 +1,9 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/eventarc/publishing/v1/publisher.proto + +package com.google.cloud.eventarc.publishing.v1; + +public interface PublishEventsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishEventsResponse) + com.google.protobuf.MessageOrBuilder { +} diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java new file mode 100644 index 0000000..4364fde --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java @@ -0,0 +1,124 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/eventarc/publishing/v1/publisher.proto + +package com.google.cloud.eventarc.publishing.v1; + +public final class PublisherProto { + private PublisherProto() {} + 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_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_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/eventarc/publishing/v1/pu" + + "blisher.proto\022#google.cloud.eventarc.pub" + + "lishing.v1\032\034google/api/annotations.proto" + + "\032\027google/api/client.proto\032\031google/protob" + + "uf/any.proto\"i\n%PublishChannelConnection" + + "EventsRequest\022\032\n\022channel_connection\030\001 \001(" + + "\t\022$\n\006events\030\002 \003(\0132\024.google.protobuf.Any\"" + + "(\n&PublishChannelConnectionEventsRespons" + + "e\"M\n\024PublishEventsRequest\022\017\n\007channel\030\001 \001" + + "(\t\022$\n\006events\030\002 \003(\0132\024.google.protobuf.Any" + + "\"\027\n\025PublishEventsResponse2\320\004\n\tPublisher\022" + + "\230\002\n\036PublishChannelConnectionEvents\022J.goo" + + "gle.cloud.eventarc.publishing.v1.Publish" + + "ChannelConnectionEventsRequest\032K.google." + + "cloud.eventarc.publishing.v1.PublishChan" + + "nelConnectionEventsResponse\"]\202\323\344\223\002W\"R/v1" + + "/{channel_connection=projects/*/location" + + "s/*/channelConnections/*}:publishEvents:" + + "\001*\022\320\001\n\rPublishEvents\0229.google.cloud.even" + + "tarc.publishing.v1.PublishEventsRequest\032" + + ":.google.cloud.eventarc.publishing.v1.Pu" + + "blishEventsResponse\"H\202\323\344\223\002B\"=/v1/{channe" + + "l=projects/*/locations/*/channels/*}:pub" + + "lishEvents:\001*\032U\312A!eventarcpublishing.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\377\001\n\'com.google.clou" + + "d.eventarc.publishing.v1B\016PublisherProto" + + "P\001ZLgoogle.golang.org/genproto/googleapi" + + "s/cloud/eventarc/publishing/v1;publisher" + + "\252\002#Google.Cloud.Eventarc.Publishing.V1\312\002" + + "#Google\\Cloud\\Eventarc\\Publishing\\V1\352\002\'G" + + "oogle::Cloud::Eventarc::Publishing::V1b\006" + + "proto3" + }; + 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.protobuf.AnyProto.getDescriptor(), + }); + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor, + new java.lang.String[] { "ChannelConnection", "Events", }); + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor, + new java.lang.String[] { }); + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor, + new java.lang.String[] { "Channel", "Events", }); + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor, + new java.lang.String[] { }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/proto/google/cloud/eventarc/publishing/v1/publisher.proto b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/proto/google/cloud/eventarc/publishing/v1/publisher.proto similarity index 100% rename from proto-google-cloud-eventarc-publishing-v1/src/main/proto/google/cloud/eventarc/publishing/v1/publisher.proto rename to owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/proto/google/cloud/eventarc/publishing/v1/publisher.proto diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java deleted file mode 100644 index 8a69f00..0000000 --- a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/eventarc/publishing/v1/publisher.proto - -package com.google.cloud.eventarc.publishing.v1; - -public interface PublishChannelConnectionEventsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java deleted file mode 100644 index 1793774..0000000 --- a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java +++ /dev/null @@ -1,24 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/eventarc/publishing/v1/publisher.proto - -package com.google.cloud.eventarc.publishing.v1; - -public interface PublishEventsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishEventsResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java deleted file mode 100644 index 6175fc3..0000000 --- a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/eventarc/publishing/v1/publisher.proto - -package com.google.cloud.eventarc.publishing.v1; - -public final class PublisherProto { - private PublisherProto() {} - - 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_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_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/eventarc/publishing/v1/pu" - + "blisher.proto\022#google.cloud.eventarc.pub" - + "lishing.v1\032\034google/api/annotations.proto" - + "\032\027google/api/client.proto\032\031google/protob" - + "uf/any.proto\"i\n%PublishChannelConnection" - + "EventsRequest\022\032\n\022channel_connection\030\001 \001(" - + "\t\022$\n\006events\030\002 \003(\0132\024.google.protobuf.Any\"" - + "(\n&PublishChannelConnectionEventsRespons" - + "e\"M\n\024PublishEventsRequest\022\017\n\007channel\030\001 \001" - + "(\t\022$\n\006events\030\002 \003(\0132\024.google.protobuf.Any" - + "\"\027\n\025PublishEventsResponse2\320\004\n\tPublisher\022" - + "\230\002\n\036PublishChannelConnectionEvents\022J.goo" - + "gle.cloud.eventarc.publishing.v1.Publish" - + "ChannelConnectionEventsRequest\032K.google." - + "cloud.eventarc.publishing.v1.PublishChan" - + "nelConnectionEventsResponse\"]\202\323\344\223\002W\"R/v1" - + "/{channel_connection=projects/*/location" - + "s/*/channelConnections/*}:publishEvents:" - + "\001*\022\320\001\n\rPublishEvents\0229.google.cloud.even" - + "tarc.publishing.v1.PublishEventsRequest\032" - + ":.google.cloud.eventarc.publishing.v1.Pu" - + "blishEventsResponse\"H\202\323\344\223\002B\"=/v1/{channe" - + "l=projects/*/locations/*/channels/*}:pub" - + "lishEvents:\001*\032U\312A!eventarcpublishing.goo" - + "gleapis.com\322A.https://www.googleapis.com" - + "/auth/cloud-platformB\377\001\n\'com.google.clou" - + "d.eventarc.publishing.v1B\016PublisherProto" - + "P\001ZLgoogle.golang.org/genproto/googleapi" - + "s/cloud/eventarc/publishing/v1;publisher" - + "\252\002#Google.Cloud.Eventarc.Publishing.V1\312\002" - + "#Google\\Cloud\\Eventarc\\Publishing\\V1\352\002\'G" - + "oogle::Cloud::Eventarc::Publishing::V1b\006" - + "proto3" - }; - 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.protobuf.AnyProto.getDescriptor(), - }); - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor, - new java.lang.String[] { - "ChannelConnection", "Events", - }); - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor, - new java.lang.String[] { - "Channel", "Events", - }); - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor, - new java.lang.String[] {}); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From f434a61cf67650278ae44500f1a9c1f3127c7848 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 02:37:06 +0000 Subject: [PATCH 2/4] =?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 --- .../publishing/v1/PublisherClient.java | 6 +- .../publishing/v1/PublisherSettings.java | 7 +- .../publishing/v1/gapic_metadata.json | 0 .../eventarc/publishing/v1/package-info.java | 0 .../v1/stub/GrpcPublisherCallableFactory.java | 0 .../publishing/v1/stub/GrpcPublisherStub.java | 1 - .../HttpJsonPublisherCallableFactory.java | 0 .../v1/stub/HttpJsonPublisherStub.java | 0 .../publishing/v1/stub/PublisherStub.java | 0 .../v1/stub/PublisherStubSettings.java | 6 +- .../eventarc/publishing/v1/MockPublisher.java | 0 .../publishing/v1/MockPublisherImpl.java | 0 .../v1/PublisherClientHttpJsonTest.java | 0 .../publishing/v1/PublisherClientTest.java | 0 .../eventarc/publishing/v1/PublisherGrpc.java | 360 +++++++---- ...nnelConnectionEventsResponseOrBuilder.java | 9 - .../v1/PublishEventsResponseOrBuilder.java | 9 - .../publishing/v1/PublisherProto.java | 124 ---- ...PublishChannelConnectionEventsRequest.java | 570 +++++++++++------- ...annelConnectionEventsRequestOrBuilder.java | 46 +- ...ublishChannelConnectionEventsResponse.java | 344 ++++++----- ...nnelConnectionEventsResponseOrBuilder.java | 24 + .../publishing/v1/PublishEventsRequest.java | 476 +++++++++------ .../v1/PublishEventsRequestOrBuilder.java | 46 +- .../publishing/v1/PublishEventsResponse.java | 246 ++++---- .../v1/PublishEventsResponseOrBuilder.java | 24 + .../publishing/v1/PublisherProto.java | 138 +++++ .../eventarc/publishing/v1/publisher.proto | 0 28 files changed, 1467 insertions(+), 969 deletions(-) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java (97%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java (96%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java (99%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherStub.java (100%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStub.java (100%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisher.java (100%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisherImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-eventarc-publishing => google-cloud-eventarc-publishing}/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientTest.java (100%) rename {owl-bot-staging/v1/grpc-google-cloud-eventarc-publishing-v1 => grpc-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java (52%) delete mode 100644 owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java rename {owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1 => proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java (66%) rename {owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1 => proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1 => proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java (52%) create mode 100644 proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1 => proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1 => proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java (64%) rename {owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1 => proto-google-cloud-eventarc-publishing-v1}/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java (66%) create mode 100644 proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java create mode 100644 proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java rename {owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1 => proto-google-cloud-eventarc-publishing-v1}/src/main/proto/google/cloud/eventarc/publishing/v1/publisher.proto (100%) diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java rename to google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java index 9cf4438..ac7f302 100644 --- a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java +++ b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherClient.java @@ -72,13 +72,13 @@ * methods: * *
    - *
  1. A "flattened" method. With this type of method, the fields of the request type have been + *
  2. A "flattened" method. With this type of method, the fields of the request type have been * converted into function parameters. It may be the case that not all fields are available as * parameters, and not every API method will have a flattened method entry point. - *
  3. A "request object" method. This type of method only takes one parameter, a request object, + *
  4. A "request object" method. This type of method only takes one parameter, a request object, * which must be constructed before the call. Not every API method will have a request object * method. - *
  5. A "callable" method. This type of method takes no parameters and returns an immutable API + *
  6. A "callable" method. This type of method takes no parameters and returns an immutable API * callable object, which can be used to initiate calls to the service. *
* diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java rename to google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java index 4fcaa5a..5c9fea4 100644 --- a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java +++ b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherSettings.java @@ -25,7 +25,6 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.eventarc.publishing.v1.stub.PublisherStubSettings; @@ -40,10 +39,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/gapic_metadata.json b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/gapic_metadata.json rename to google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/package-info.java b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/package-info.java rename to google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherCallableFactory.java b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherCallableFactory.java rename to google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java rename to google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java index 79e463a..09f6c09 100644 --- a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java +++ b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/GrpcPublisherStub.java @@ -31,7 +31,6 @@ import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; import java.io.IOException; -import java.util.Map; import java.util.concurrent.TimeUnit; import javax.annotation.Generated; diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherCallableFactory.java b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherCallableFactory.java rename to google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherStub.java b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherStub.java rename to google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/HttpJsonPublisherStub.java diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStub.java b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStub.java rename to google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStub.java diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java rename to google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java index dc8fa75..fd85736 100644 --- a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java +++ b/google-cloud-eventarc-publishing/src/main/java/com/google/cloud/eventarc/publishing/v1/stub/PublisherStubSettings.java @@ -54,10 +54,10 @@ *

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

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

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisher.java b/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisher.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisher.java rename to google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisher.java diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisherImpl.java b/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisherImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisherImpl.java rename to google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/MockPublisherImpl.java diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientHttpJsonTest.java b/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientHttpJsonTest.java rename to google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientTest.java b/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientTest.java rename to google-cloud-eventarc-publishing/src/test/java/com/google/cloud/eventarc/publishing/v1/PublisherClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java b/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java similarity index 52% rename from owl-bot-staging/v1/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java rename to grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java index 1874438..a3fa42f 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java +++ b/grpc-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherGrpc.java @@ -1,8 +1,25 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ package com.google.cloud.eventarc.publishing.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *

  * Eventarc processes events generated by an event provider and delivers them to
  * a subscriber.
@@ -34,113 +51,151 @@ private PublisherGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.eventarc.publishing.v1.Publisher";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getPublishChannelConnectionEventsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest,
+          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>
+      getPublishChannelConnectionEventsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PublishChannelConnectionEvents",
-      requestType = com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class,
-      responseType = com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class,
+      requestType =
+          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class,
+      responseType =
+          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPublishChannelConnectionEventsMethod() {
-    io.grpc.MethodDescriptor getPublishChannelConnectionEventsMethod;
-    if ((getPublishChannelConnectionEventsMethod = PublisherGrpc.getPublishChannelConnectionEventsMethod) == null) {
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest,
+          com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>
+      getPublishChannelConnectionEventsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest,
+            com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>
+        getPublishChannelConnectionEventsMethod;
+    if ((getPublishChannelConnectionEventsMethod =
+            PublisherGrpc.getPublishChannelConnectionEventsMethod)
+        == null) {
       synchronized (PublisherGrpc.class) {
-        if ((getPublishChannelConnectionEventsMethod = PublisherGrpc.getPublishChannelConnectionEventsMethod) == null) {
-          PublisherGrpc.getPublishChannelConnectionEventsMethod = getPublishChannelConnectionEventsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PublishChannelConnectionEvents"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("PublishChannelConnectionEvents"))
-              .build();
+        if ((getPublishChannelConnectionEventsMethod =
+                PublisherGrpc.getPublishChannelConnectionEventsMethod)
+            == null) {
+          PublisherGrpc.getPublishChannelConnectionEventsMethod =
+              getPublishChannelConnectionEventsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "PublishChannelConnectionEvents"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.eventarc.publishing.v1
+                                  .PublishChannelConnectionEventsRequest.getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.eventarc.publishing.v1
+                                  .PublishChannelConnectionEventsResponse.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new PublisherMethodDescriptorSupplier("PublishChannelConnectionEvents"))
+                      .build();
         }
       }
     }
     return getPublishChannelConnectionEventsMethod;
   }
 
-  private static volatile io.grpc.MethodDescriptor getPublishEventsMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.eventarc.publishing.v1.PublishEventsRequest,
+          com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>
+      getPublishEventsMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "PublishEvents",
       requestType = com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.class,
       responseType = com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.class,
       methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
-  public static io.grpc.MethodDescriptor getPublishEventsMethod() {
-    io.grpc.MethodDescriptor getPublishEventsMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.eventarc.publishing.v1.PublishEventsRequest,
+          com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>
+      getPublishEventsMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.eventarc.publishing.v1.PublishEventsRequest,
+            com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>
+        getPublishEventsMethod;
     if ((getPublishEventsMethod = PublisherGrpc.getPublishEventsMethod) == null) {
       synchronized (PublisherGrpc.class) {
         if ((getPublishEventsMethod = PublisherGrpc.getPublishEventsMethod) == null) {
-          PublisherGrpc.getPublishEventsMethod = getPublishEventsMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PublishEvents"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.getDefaultInstance()))
-              .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("PublishEvents"))
-              .build();
+          PublisherGrpc.getPublishEventsMethod =
+              getPublishEventsMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PublishEvents"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.eventarc.publishing.v1.PublishEventsRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.eventarc.publishing.v1.PublishEventsResponse
+                                  .getDefaultInstance()))
+                      .setSchemaDescriptor(new PublisherMethodDescriptorSupplier("PublishEvents"))
+                      .build();
         }
       }
     }
     return getPublishEventsMethod;
   }
 
-  /**
-   * Creates a new async stub that supports all call types for the service
-   */
+  /** Creates a new async stub that supports all call types for the service */
   public static PublisherStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PublisherStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PublisherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PublisherStub(channel, callOptions);
+          }
+        };
     return PublisherStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static PublisherBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static PublisherBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PublisherBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PublisherBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PublisherBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PublisherBlockingStub(channel, callOptions);
+          }
+        };
     return PublisherBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static PublisherFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static PublisherFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public PublisherFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new PublisherFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public PublisherFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new PublisherFutureStub(channel, callOptions);
+          }
+        };
     return PublisherFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Eventarc processes events generated by an event provider and delivers them to
    * a subscriber.
@@ -161,49 +216,64 @@ public PublisherFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions
    * Publisher allows an event provider to publish events to Eventarc.
    * 
*/ - public static abstract class PublisherImplBase implements io.grpc.BindableService { + public abstract static class PublisherImplBase implements io.grpc.BindableService { /** + * + * *
      * Publish events to a ChannelConnection in a partner's project.
      * 
*/ - public void publishChannelConnectionEvents(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPublishChannelConnectionEventsMethod(), responseObserver); + public void publishChannelConnectionEvents( + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPublishChannelConnectionEventsMethod(), responseObserver); } /** + * + * *
      * Publish events to a subscriber's channel.
      * 
*/ - public void publishEvents(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPublishEventsMethod(), responseObserver); + public void publishEvents( + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getPublishEventsMethod(), responseObserver); } - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( - getPublishChannelConnectionEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest, - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse>( - this, METHODID_PUBLISH_CHANNEL_CONNECTION_EVENTS))) + getPublishChannelConnectionEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest, + com.google.cloud.eventarc.publishing.v1 + .PublishChannelConnectionEventsResponse>( + this, METHODID_PUBLISH_CHANNEL_CONNECTION_EVENTS))) .addMethod( - getPublishEventsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest, - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>( - this, METHODID_PUBLISH_EVENTS))) + getPublishEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest, + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>( + this, METHODID_PUBLISH_EVENTS))) .build(); } } /** + * + * *
    * Eventarc processes events generated by an event provider and delivers them to
    * a subscriber.
@@ -225,41 +295,54 @@ public void publishEvents(com.google.cloud.eventarc.publishing.v1.PublishEventsR
    * 
*/ public static final class PublisherStub extends io.grpc.stub.AbstractAsyncStub { - private PublisherStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private PublisherStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PublisherStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected PublisherStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PublisherStub(channel, callOptions); } /** + * + * *
      * Publish events to a ChannelConnection in a partner's project.
      * 
*/ - public void publishChannelConnectionEvents(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void publishChannelConnectionEvents( + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPublishChannelConnectionEventsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getPublishChannelConnectionEventsMethod(), getCallOptions()), + request, + responseObserver); } /** + * + * *
      * Publish events to a subscriber's channel.
      * 
*/ - public void publishEvents(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void publishEvents( + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPublishEventsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getPublishEventsMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Eventarc processes events generated by an event provider and delivers them to
    * a subscriber.
@@ -280,9 +363,9 @@ public void publishEvents(com.google.cloud.eventarc.publishing.v1.PublishEventsR
    * Publisher allows an event provider to publish events to Eventarc.
    * 
*/ - public static final class PublisherBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private PublisherBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private PublisherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -293,27 +376,36 @@ protected PublisherBlockingStub build( } /** + * + * *
      * Publish events to a ChannelConnection in a partner's project.
      * 
*/ - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse publishChannelConnectionEvents(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request) { + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + publishChannelConnectionEvents( + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPublishChannelConnectionEventsMethod(), getCallOptions(), request); } /** + * + * *
      * Publish events to a subscriber's channel.
      * 
*/ - public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse publishEvents(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request) { + public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse publishEvents( + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getPublishEventsMethod(), getCallOptions(), request); } } /** + * + * *
    * Eventarc processes events generated by an event provider and delivers them to
    * a subscriber.
@@ -334,36 +426,43 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse publishEven
    * Publisher allows an event provider to publish events to Eventarc.
    * 
*/ - public static final class PublisherFutureStub extends io.grpc.stub.AbstractFutureStub { - private PublisherFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class PublisherFutureStub + extends io.grpc.stub.AbstractFutureStub { + private PublisherFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected PublisherFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected PublisherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PublisherFutureStub(channel, callOptions); } /** + * + * *
      * Publish events to a ChannelConnection in a partner's project.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture publishChannelConnectionEvents( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse> + publishChannelConnectionEvents( + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPublishChannelConnectionEventsMethod(), getCallOptions()), request); + getChannel().newCall(getPublishChannelConnectionEventsMethod(), getCallOptions()), + request); } /** + * + * *
      * Publish events to a subscriber's channel.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture publishEvents( - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse> + publishEvents(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getPublishEventsMethod(), getCallOptions()), request); } @@ -372,11 +471,11 @@ public com.google.common.util.concurrent.ListenableFuture implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { + 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 PublisherImplBase serviceImpl; private final int methodId; @@ -390,12 +489,20 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_PUBLISH_CHANNEL_CONNECTION_EVENTS: - serviceImpl.publishChannelConnectionEvents((com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.publishChannelConnectionEvents( + (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.cloud.eventarc.publishing.v1 + .PublishChannelConnectionEventsResponse>) + responseObserver); break; case METHODID_PUBLISH_EVENTS: - serviceImpl.publishEvents((com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.publishEvents( + (com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse>) + responseObserver); break; default: throw new AssertionError(); @@ -413,8 +520,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class PublisherBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class PublisherBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { PublisherBaseDescriptorSupplier() {} @java.lang.Override @@ -456,11 +564,13 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (PublisherGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PublisherFileDescriptorSupplier()) - .addMethod(getPublishChannelConnectionEventsMethod()) - .addMethod(getPublishEventsMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new PublisherFileDescriptorSupplier()) + .addMethod(getPublishChannelConnectionEventsMethod()) + .addMethod(getPublishEventsMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java deleted file mode 100644 index 86d1e15..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/eventarc/publishing/v1/publisher.proto - -package com.google.cloud.eventarc.publishing.v1; - -public interface PublishChannelConnectionEventsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java deleted file mode 100644 index b407f96..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java +++ /dev/null @@ -1,9 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/eventarc/publishing/v1/publisher.proto - -package com.google.cloud.eventarc.publishing.v1; - -public interface PublishEventsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishEventsResponse) - com.google.protobuf.MessageOrBuilder { -} diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java b/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java deleted file mode 100644 index 4364fde..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java +++ /dev/null @@ -1,124 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/eventarc/publishing/v1/publisher.proto - -package com.google.cloud.eventarc.publishing.v1; - -public final class PublisherProto { - private PublisherProto() {} - 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_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_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/eventarc/publishing/v1/pu" + - "blisher.proto\022#google.cloud.eventarc.pub" + - "lishing.v1\032\034google/api/annotations.proto" + - "\032\027google/api/client.proto\032\031google/protob" + - "uf/any.proto\"i\n%PublishChannelConnection" + - "EventsRequest\022\032\n\022channel_connection\030\001 \001(" + - "\t\022$\n\006events\030\002 \003(\0132\024.google.protobuf.Any\"" + - "(\n&PublishChannelConnectionEventsRespons" + - "e\"M\n\024PublishEventsRequest\022\017\n\007channel\030\001 \001" + - "(\t\022$\n\006events\030\002 \003(\0132\024.google.protobuf.Any" + - "\"\027\n\025PublishEventsResponse2\320\004\n\tPublisher\022" + - "\230\002\n\036PublishChannelConnectionEvents\022J.goo" + - "gle.cloud.eventarc.publishing.v1.Publish" + - "ChannelConnectionEventsRequest\032K.google." + - "cloud.eventarc.publishing.v1.PublishChan" + - "nelConnectionEventsResponse\"]\202\323\344\223\002W\"R/v1" + - "/{channel_connection=projects/*/location" + - "s/*/channelConnections/*}:publishEvents:" + - "\001*\022\320\001\n\rPublishEvents\0229.google.cloud.even" + - "tarc.publishing.v1.PublishEventsRequest\032" + - ":.google.cloud.eventarc.publishing.v1.Pu" + - "blishEventsResponse\"H\202\323\344\223\002B\"=/v1/{channe" + - "l=projects/*/locations/*/channels/*}:pub" + - "lishEvents:\001*\032U\312A!eventarcpublishing.goo" + - "gleapis.com\322A.https://www.googleapis.com" + - "/auth/cloud-platformB\377\001\n\'com.google.clou" + - "d.eventarc.publishing.v1B\016PublisherProto" + - "P\001ZLgoogle.golang.org/genproto/googleapi" + - "s/cloud/eventarc/publishing/v1;publisher" + - "\252\002#Google.Cloud.Eventarc.Publishing.V1\312\002" + - "#Google\\Cloud\\Eventarc\\Publishing\\V1\352\002\'G" + - "oogle::Cloud::Eventarc::Publishing::V1b\006" + - "proto3" - }; - 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.protobuf.AnyProto.getDescriptor(), - }); - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor, - new java.lang.String[] { "ChannelConnection", "Events", }); - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor, - new java.lang.String[] { }); - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor, - new java.lang.String[] { "Channel", "Events", }); - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor, - new java.lang.String[] { }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.protobuf.AnyProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java rename to proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java index 08ab06c..efe8b85 100644 --- a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java +++ b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequest.java @@ -1,24 +1,44 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; /** + * + * *
  * The request message for the PublishChannelConnectionEvents method.
  * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest} */ -public final class PublishChannelConnectionEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublishChannelConnectionEventsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) PublishChannelConnectionEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublishChannelConnectionEventsRequest.newBuilder() to construct. - private PublishChannelConnectionEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PublishChannelConnectionEventsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PublishChannelConnectionEventsRequest() { channelConnection_ = ""; events_ = java.util.Collections.emptyList(); @@ -26,16 +46,15 @@ private PublishChannelConnectionEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishChannelConnectionEventsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PublishChannelConnectionEventsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +74,29 @@ private PublishChannelConnectionEventsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - channelConnection_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + channelConnection_ = s; + break; } - events_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + events_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + events_.add(input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +104,7 @@ private PublishChannelConnectionEventsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); @@ -94,28 +113,35 @@ private PublishChannelConnectionEventsRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class, com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class, + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.Builder + .class); } public static final int CHANNEL_CONNECTION_FIELD_NUMBER = 1; private volatile java.lang.Object channelConnection_; /** + * + * *
    * The channel_connection that the events are published from. For example:
    * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
    * 
* * string channel_connection = 1; + * * @return The channelConnection. */ @java.lang.Override @@ -124,30 +150,30 @@ public java.lang.String getChannelConnection() { 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(); channelConnection_ = s; return s; } } /** + * + * *
    * The channel_connection that the events are published from. For example:
    * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
    * 
* * string channel_connection = 1; + * * @return The bytes for channelConnection. */ @java.lang.Override - public com.google.protobuf.ByteString - getChannelConnectionBytes() { + public com.google.protobuf.ByteString getChannelConnectionBytes() { java.lang.Object ref = channelConnection_; 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); channelConnection_ = b; return b; } else { @@ -158,6 +184,8 @@ public java.lang.String getChannelConnection() { public static final int EVENTS_FIELD_NUMBER = 2; private java.util.List events_; /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -169,6 +197,8 @@ public java.util.List getEventsList() { return events_; } /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -176,11 +206,12 @@ public java.util.List getEventsList() { * repeated .google.protobuf.Any events = 2; */ @java.lang.Override - public java.util.List - getEventsOrBuilderList() { + public java.util.List getEventsOrBuilderList() { return events_; } /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -192,6 +223,8 @@ public int getEventsCount() { return events_.size(); } /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -203,6 +236,8 @@ public com.google.protobuf.Any getEvents(int index) { return events_.get(index); } /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -210,12 +245,12 @@ public com.google.protobuf.Any getEvents(int index) { * repeated .google.protobuf.Any events = 2; */ @java.lang.Override - public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( - int index) { + public com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index) { return events_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +262,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(channelConnection_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channelConnection_); } @@ -248,8 +282,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channelConnection_); } for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, events_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, events_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -259,17 +292,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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest)) { + if (!(obj + instanceof com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest)) { return super.equals(obj); } - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest other = (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) obj; + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest other = + (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) obj; - if (!getChannelConnection() - .equals(other.getChannelConnection())) return false; - if (!getEventsList() - .equals(other.getEventsList())) return false; + if (!getChannelConnection().equals(other.getChannelConnection())) return false; + if (!getEventsList().equals(other.getEventsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -292,136 +325,154 @@ public int hashCode() { return hash; } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest 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; } /** + * + * *
    * The request message for the PublishChannelConnectionEvents method.
    * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest} */ - 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class, com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.class, + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.Builder + .class); } - // Construct using com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.newBuilder() + // Construct using + // com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEventsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,19 +488,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest getDefaultInstanceForType() { - return com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.getDefaultInstance(); + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + getDefaultInstanceForType() { + return com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest build() { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest result = buildPartial(); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -457,8 +511,10 @@ public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsReq } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest buildPartial() { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest result = new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest(this); + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + buildPartial() { + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest result = + new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest(this); int from_bitField0_ = bitField0_; result.channelConnection_ = channelConnection_; if (eventsBuilder_ == null) { @@ -478,46 +534,53 @@ public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsReq 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.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) { - return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest)other); + if (other + instanceof + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) { + return mergeFrom( + (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest other) { - if (other == com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest other) { + if (other + == com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + .getDefaultInstance()) return this; if (!other.getChannelConnection().isEmpty()) { channelConnection_ = other.channelConnection_; onChanged(); @@ -540,9 +603,10 @@ public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishChannelC eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEventsFieldBuilder() + : null; } else { eventsBuilder_.addAllMessages(other.events_); } @@ -563,11 +627,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parsedMessage = null; + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,23 +643,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object channelConnection_ = ""; /** + * + * *
      * The channel_connection that the events are published from. For example:
      * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
      * 
* * string channel_connection = 1; + * * @return The channelConnection. */ public java.lang.String getChannelConnection() { java.lang.Object ref = channelConnection_; 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(); channelConnection_ = s; return s; @@ -601,21 +671,22 @@ public java.lang.String getChannelConnection() { } } /** + * + * *
      * The channel_connection that the events are published from. For example:
      * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
      * 
* * string channel_connection = 1; + * * @return The bytes for channelConnection. */ - public com.google.protobuf.ByteString - getChannelConnectionBytes() { + public com.google.protobuf.ByteString getChannelConnectionBytes() { java.lang.Object ref = channelConnection_; 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); channelConnection_ = b; return b; } else { @@ -623,75 +694,87 @@ public java.lang.String getChannelConnection() { } } /** + * + * *
      * The channel_connection that the events are published from. For example:
      * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
      * 
* * string channel_connection = 1; + * * @param value The channelConnection to set. * @return This builder for chaining. */ - public Builder setChannelConnection( - java.lang.String value) { + public Builder setChannelConnection(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + channelConnection_ = value; onChanged(); return this; } /** + * + * *
      * The channel_connection that the events are published from. For example:
      * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
      * 
* * string channel_connection = 1; + * * @return This builder for chaining. */ public Builder clearChannelConnection() { - + channelConnection_ = getDefaultInstance().getChannelConnection(); onChanged(); return this; } /** + * + * *
      * The channel_connection that the events are published from. For example:
      * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
      * 
* * string channel_connection = 1; + * * @param value The bytes for channelConnection to set. * @return This builder for chaining. */ - public Builder setChannelConnectionBytes( - com.google.protobuf.ByteString value) { + public Builder setChannelConnectionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channelConnection_ = value; onChanged(); return this; } - private java.util.List events_ = - java.util.Collections.emptyList(); + private java.util.List events_ = java.util.Collections.emptyList(); + private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> eventsBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + eventsBuilder_; /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -706,6 +789,8 @@ public java.util.List getEventsList() { } } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -720,6 +805,8 @@ public int getEventsCount() { } } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -734,14 +821,15 @@ public com.google.protobuf.Any getEvents(int index) { } } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder setEvents( - int index, com.google.protobuf.Any value) { + public Builder setEvents(int index, com.google.protobuf.Any value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -755,14 +843,15 @@ public Builder setEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder setEvents( - int index, com.google.protobuf.Any.Builder builderForValue) { + public Builder setEvents(int index, com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); @@ -773,6 +862,8 @@ public Builder setEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -793,14 +884,15 @@ public Builder addEvents(com.google.protobuf.Any value) { return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents( - int index, com.google.protobuf.Any value) { + public Builder addEvents(int index, com.google.protobuf.Any value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -814,14 +906,15 @@ public Builder addEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents( - com.google.protobuf.Any.Builder builderForValue) { + public Builder addEvents(com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); @@ -832,14 +925,15 @@ public Builder addEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents( - int index, com.google.protobuf.Any.Builder builderForValue) { + public Builder addEvents(int index, com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); @@ -850,18 +944,18 @@ public Builder addEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addAllEvents( - java.lang.Iterable values) { + public Builder addAllEvents(java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); @@ -869,6 +963,8 @@ public Builder addAllEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -886,6 +982,8 @@ public Builder clearEvents() { return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -903,39 +1001,43 @@ public Builder removeEvents(int index) { return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.Any.Builder getEventsBuilder( - int index) { + public com.google.protobuf.Any.Builder getEventsBuilder(int index) { return getEventsFieldBuilder().getBuilder(index); } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( - int index) { + public com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index) { if (eventsBuilder_ == null) { - return events_.get(index); } else { + return events_.get(index); + } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public java.util.List - getEventsOrBuilderList() { + public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { @@ -943,6 +1045,8 @@ public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( } } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -950,49 +1054,53 @@ public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( * repeated .google.protobuf.Any events = 2; */ public com.google.protobuf.Any.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); + return getEventsFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance()); } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.Any.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); + public com.google.protobuf.Any.Builder addEventsBuilder(int index) { + return getEventsFieldBuilder() + .addBuilder(index, com.google.protobuf.Any.getDefaultInstance()); } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public java.util.List - getEventsBuilderList() { + public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - events_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + eventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder>( + events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } + @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); } @@ -1002,30 +1110,33 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) - private static final com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest(); + DEFAULT_INSTANCE = + new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest(); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest getDefaultInstance() { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishChannelConnectionEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishChannelConnectionEventsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishChannelConnectionEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishChannelConnectionEventsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1037,9 +1148,8 @@ public com.google.protobuf.Parser getPars } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest getDefaultInstanceForType() { + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java rename to proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java index 4dcfe2d..10e6d56 100644 --- a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java +++ b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsRequestOrBuilder.java @@ -1,44 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; -public interface PublishChannelConnectionEventsRequestOrBuilder extends +public interface PublishChannelConnectionEventsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The channel_connection that the events are published from. For example:
    * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
    * 
* * string channel_connection = 1; + * * @return The channelConnection. */ java.lang.String getChannelConnection(); /** + * + * *
    * The channel_connection that the events are published from. For example:
    * `projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.
    * 
* * string channel_connection = 1; + * * @return The bytes for channelConnection. */ - com.google.protobuf.ByteString - getChannelConnectionBytes(); + com.google.protobuf.ByteString getChannelConnectionBytes(); /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - java.util.List - getEventsList(); + java.util.List getEventsList(); /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -47,6 +71,8 @@ public interface PublishChannelConnectionEventsRequestOrBuilder extends */ com.google.protobuf.Any getEvents(int index); /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -55,21 +81,23 @@ public interface PublishChannelConnectionEventsRequestOrBuilder extends */ int getEventsCount(); /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - java.util.List - getEventsOrBuilderList(); + java.util.List getEventsOrBuilderList(); /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - com.google.protobuf.AnyOrBuilder getEventsOrBuilder( - int index); + com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java similarity index 52% rename from owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java rename to proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java index 48297ba..5cbd453 100644 --- a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java +++ b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponse.java @@ -1,39 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; /** + * + * *
  * The response message for the PublishChannelConnectionEvents method.
  * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse} */ -public final class PublishChannelConnectionEventsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublishChannelConnectionEventsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) PublishChannelConnectionEventsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublishChannelConnectionEventsResponse.newBuilder() to construct. - private PublishChannelConnectionEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private PublishChannelConnectionEventsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PublishChannelConnectionEventsResponse() { - } + + private PublishChannelConnectionEventsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishChannelConnectionEventsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PublishChannelConnectionEventsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +70,13 @@ private PublishChannelConnectionEventsResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +84,31 @@ private PublishChannelConnectionEventsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class, com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class, + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.Builder + .class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +120,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 { unknownFields.writeTo(output); } @@ -117,12 +138,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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse)) { + if (!(obj + instanceof + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse)) { return super.equals(obj); } - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse other = (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) obj; + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse other = + (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -140,135 +164,153 @@ public int hashCode() { return hash; } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse 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; } /** + * + * *
    * The response message for the PublishChannelConnectionEvents method.
    * 
* - * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse} + * Protobuf type {@code + * google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse} */ - 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class, com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.class, + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.Builder + .class); } - // Construct using com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.newBuilder() + // Construct using + // com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,19 +318,22 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse getDefaultInstanceForType() { - return com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.getDefaultInstance(); + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + getDefaultInstanceForType() { + return com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + .getDefaultInstance(); } @java.lang.Override public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse build() { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse result = buildPartial(); + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse result = + buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -296,8 +341,10 @@ public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRes } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse buildPartial() { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse result = new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse(this); + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + buildPartial() { + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse result = + new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse(this); onBuilt(); return result; } @@ -306,46 +353,53 @@ public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsRes 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.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) { - return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse)other); + if (other + instanceof + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) { + return mergeFrom( + (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse other) { - if (other == com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse.getDefaultInstance()) return this; + public Builder mergeFrom( + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse other) { + if (other + == com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + .getDefaultInstance()) return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -361,11 +415,14 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parsedMessage = null; + com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse parsedMessage = + null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +431,9 @@ public Builder mergeFrom( } 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); } @@ -386,30 +443,34 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) - private static final com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.eventarc.publishing.v1 + .PublishChannelConnectionEventsResponse + DEFAULT_INSTANCE; + static { - DEFAULT_INSTANCE = new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse(); + DEFAULT_INSTANCE = + new com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse(); } - public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse getDefaultInstance() { + public static com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishChannelConnectionEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishChannelConnectionEventsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishChannelConnectionEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishChannelConnectionEventsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -421,9 +482,8 @@ public com.google.protobuf.Parser getPar } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse getDefaultInstanceForType() { + public com.google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java new file mode 100644 index 0000000..8a69f00 --- /dev/null +++ b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishChannelConnectionEventsResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/eventarc/publishing/v1/publisher.proto + +package com.google.cloud.eventarc.publishing.v1; + +public interface PublishChannelConnectionEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishChannelConnectionEventsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java rename to proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java index e5c8f6c..2cea78f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java +++ b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequest.java @@ -1,24 +1,42 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; /** + * + * *
  * The request message for the PublishEvents method.
  * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishEventsRequest} */ -public final class PublishEventsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublishEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.eventarc.publishing.v1.PublishEventsRequest) PublishEventsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublishEventsRequest.newBuilder() to construct. private PublishEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private PublishEventsRequest() { channel_ = ""; events_ = java.util.Collections.emptyList(); @@ -26,16 +44,15 @@ private PublishEventsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishEventsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PublishEventsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,29 @@ private PublishEventsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - channel_ = s; - break; - } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - events_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + channel_ = s; + break; } - events_.add( - input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + events_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + events_.add(input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +102,7 @@ private PublishEventsRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { events_ = java.util.Collections.unmodifiableList(events_); @@ -94,28 +111,34 @@ private PublishEventsRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.class, com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.class, + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.Builder.class); } public static final int CHANNEL_FIELD_NUMBER = 1; private volatile java.lang.Object channel_; /** + * + * *
    * The full name of the channel to publish to. For example:
    * `projects/{project}/locations/{location}/channels/{channel-id}`.
    * 
* * string channel = 1; + * * @return The channel. */ @java.lang.Override @@ -124,30 +147,30 @@ public java.lang.String getChannel() { 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(); channel_ = s; return s; } } /** + * + * *
    * The full name of the channel to publish to. For example:
    * `projects/{project}/locations/{location}/channels/{channel-id}`.
    * 
* * string channel = 1; + * * @return The bytes for channel. */ @java.lang.Override - public com.google.protobuf.ByteString - getChannelBytes() { + public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; 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); channel_ = b; return b; } else { @@ -158,6 +181,8 @@ public java.lang.String getChannel() { public static final int EVENTS_FIELD_NUMBER = 2; private java.util.List events_; /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -169,6 +194,8 @@ public java.util.List getEventsList() { return events_; } /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -176,11 +203,12 @@ public java.util.List getEventsList() { * repeated .google.protobuf.Any events = 2; */ @java.lang.Override - public java.util.List - getEventsOrBuilderList() { + public java.util.List getEventsOrBuilderList() { return events_; } /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -192,6 +220,8 @@ public int getEventsCount() { return events_.size(); } /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -203,6 +233,8 @@ public com.google.protobuf.Any getEvents(int index) { return events_.get(index); } /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -210,12 +242,12 @@ public com.google.protobuf.Any getEvents(int index) { * repeated .google.protobuf.Any events = 2; */ @java.lang.Override - public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( - int index) { + public com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index) { return events_.get(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -227,8 +259,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(channel_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, channel_); } @@ -248,8 +279,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, channel_); } for (int i = 0; i < events_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, events_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, events_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -259,17 +289,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.eventarc.publishing.v1.PublishEventsRequest)) { return super.equals(obj); } - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest other = (com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) obj; + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest other = + (com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) obj; - if (!getChannel() - .equals(other.getChannel())) return false; - if (!getEventsList() - .equals(other.getEventsList())) return false; + if (!getChannel().equals(other.getChannel())) return false; + if (!getEventsList().equals(other.getEventsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -293,117 +322,127 @@ public int hashCode() { } public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest 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.eventarc.publishing.v1.PublishEventsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest 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; } /** + * + * *
    * The request message for the PublishEvents method.
    * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishEventsRequest} */ - 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.eventarc.publishing.v1.PublishEventsRequest) com.google.cloud.eventarc.publishing.v1.PublishEventsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.class, com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.class, + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.Builder.class); } // Construct using com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.newBuilder() @@ -411,17 +450,17 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { getEventsFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -437,13 +476,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest getDefaultInstanceForType() { + public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest + getDefaultInstanceForType() { return com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.getDefaultInstance(); } @@ -458,7 +498,8 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest build() { @java.lang.Override public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest buildPartial() { - com.google.cloud.eventarc.publishing.v1.PublishEventsRequest result = new com.google.cloud.eventarc.publishing.v1.PublishEventsRequest(this); + com.google.cloud.eventarc.publishing.v1.PublishEventsRequest result = + new com.google.cloud.eventarc.publishing.v1.PublishEventsRequest(this); int from_bitField0_ = bitField0_; result.channel_ = channel_; if (eventsBuilder_ == null) { @@ -478,38 +519,39 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest buildPartial public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) { - return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishEventsRequest)other); + return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) other); } else { super.mergeFrom(other); return this; @@ -517,7 +559,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishEventsRequest other) { - if (other == com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.getDefaultInstance()) return this; + if (other + == com.google.cloud.eventarc.publishing.v1.PublishEventsRequest.getDefaultInstance()) + return this; if (!other.getChannel().isEmpty()) { channel_ = other.channel_; onChanged(); @@ -540,9 +584,10 @@ public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishEventsRe eventsBuilder_ = null; events_ = other.events_; bitField0_ = (bitField0_ & ~0x00000001); - eventsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getEventsFieldBuilder() : null; + eventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getEventsFieldBuilder() + : null; } else { eventsBuilder_.addAllMessages(other.events_); } @@ -567,7 +612,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.eventarc.publishing.v1.PublishEventsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -576,23 +622,26 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object channel_ = ""; /** + * + * *
      * The full name of the channel to publish to. For example:
      * `projects/{project}/locations/{location}/channels/{channel-id}`.
      * 
* * string channel = 1; + * * @return The channel. */ public java.lang.String getChannel() { java.lang.Object ref = channel_; 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(); channel_ = s; return s; @@ -601,21 +650,22 @@ public java.lang.String getChannel() { } } /** + * + * *
      * The full name of the channel to publish to. For example:
      * `projects/{project}/locations/{location}/channels/{channel-id}`.
      * 
* * string channel = 1; + * * @return The bytes for channel. */ - public com.google.protobuf.ByteString - getChannelBytes() { + public com.google.protobuf.ByteString getChannelBytes() { java.lang.Object ref = channel_; 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); channel_ = b; return b; } else { @@ -623,75 +673,87 @@ public java.lang.String getChannel() { } } /** + * + * *
      * The full name of the channel to publish to. For example:
      * `projects/{project}/locations/{location}/channels/{channel-id}`.
      * 
* * string channel = 1; + * * @param value The channel to set. * @return This builder for chaining. */ - public Builder setChannel( - java.lang.String value) { + public Builder setChannel(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + channel_ = value; onChanged(); return this; } /** + * + * *
      * The full name of the channel to publish to. For example:
      * `projects/{project}/locations/{location}/channels/{channel-id}`.
      * 
* * string channel = 1; + * * @return This builder for chaining. */ public Builder clearChannel() { - + channel_ = getDefaultInstance().getChannel(); onChanged(); return this; } /** + * + * *
      * The full name of the channel to publish to. For example:
      * `projects/{project}/locations/{location}/channels/{channel-id}`.
      * 
* * string channel = 1; + * * @param value The bytes for channel to set. * @return This builder for chaining. */ - public Builder setChannelBytes( - com.google.protobuf.ByteString value) { + public Builder setChannelBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + channel_ = value; onChanged(); return this; } - private java.util.List events_ = - java.util.Collections.emptyList(); + private java.util.List events_ = java.util.Collections.emptyList(); + private void ensureEventsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { events_ = new java.util.ArrayList(events_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> eventsBuilder_; + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> + eventsBuilder_; /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -706,6 +768,8 @@ public java.util.List getEventsList() { } } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -720,6 +784,8 @@ public int getEventsCount() { } } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -734,14 +800,15 @@ public com.google.protobuf.Any getEvents(int index) { } } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder setEvents( - int index, com.google.protobuf.Any value) { + public Builder setEvents(int index, com.google.protobuf.Any value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -755,14 +822,15 @@ public Builder setEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder setEvents( - int index, com.google.protobuf.Any.Builder builderForValue) { + public Builder setEvents(int index, com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.set(index, builderForValue.build()); @@ -773,6 +841,8 @@ public Builder setEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -793,14 +863,15 @@ public Builder addEvents(com.google.protobuf.Any value) { return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents( - int index, com.google.protobuf.Any value) { + public Builder addEvents(int index, com.google.protobuf.Any value) { if (eventsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -814,14 +885,15 @@ public Builder addEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents( - com.google.protobuf.Any.Builder builderForValue) { + public Builder addEvents(com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(builderForValue.build()); @@ -832,14 +904,15 @@ public Builder addEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addEvents( - int index, com.google.protobuf.Any.Builder builderForValue) { + public Builder addEvents(int index, com.google.protobuf.Any.Builder builderForValue) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); events_.add(index, builderForValue.build()); @@ -850,18 +923,18 @@ public Builder addEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public Builder addAllEvents( - java.lang.Iterable values) { + public Builder addAllEvents(java.lang.Iterable values) { if (eventsBuilder_ == null) { ensureEventsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, events_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); onChanged(); } else { eventsBuilder_.addAllMessages(values); @@ -869,6 +942,8 @@ public Builder addAllEvents( return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -886,6 +961,8 @@ public Builder clearEvents() { return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -903,39 +980,43 @@ public Builder removeEvents(int index) { return this; } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.Any.Builder getEventsBuilder( - int index) { + public com.google.protobuf.Any.Builder getEventsBuilder(int index) { return getEventsFieldBuilder().getBuilder(index); } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( - int index) { + public com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index) { if (eventsBuilder_ == null) { - return events_.get(index); } else { + return events_.get(index); + } else { return eventsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public java.util.List - getEventsOrBuilderList() { + public java.util.List getEventsOrBuilderList() { if (eventsBuilder_ != null) { return eventsBuilder_.getMessageOrBuilderList(); } else { @@ -943,6 +1024,8 @@ public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( } } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
@@ -950,49 +1033,53 @@ public com.google.protobuf.AnyOrBuilder getEventsOrBuilder( * repeated .google.protobuf.Any events = 2; */ public com.google.protobuf.Any.Builder addEventsBuilder() { - return getEventsFieldBuilder().addBuilder( - com.google.protobuf.Any.getDefaultInstance()); + return getEventsFieldBuilder().addBuilder(com.google.protobuf.Any.getDefaultInstance()); } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public com.google.protobuf.Any.Builder addEventsBuilder( - int index) { - return getEventsFieldBuilder().addBuilder( - index, com.google.protobuf.Any.getDefaultInstance()); + public com.google.protobuf.Any.Builder addEventsBuilder(int index) { + return getEventsFieldBuilder() + .addBuilder(index, com.google.protobuf.Any.getDefaultInstance()); } /** + * + * *
      * The CloudEvents v1.0 events to publish. No other types are allowed.
      * 
* * repeated .google.protobuf.Any events = 2; */ - public java.util.List - getEventsBuilderList() { + public java.util.List getEventsBuilderList() { return getEventsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder> getEventsFieldBuilder() { if (eventsBuilder_ == null) { - eventsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( - events_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + eventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.protobuf.Any, + com.google.protobuf.Any.Builder, + com.google.protobuf.AnyOrBuilder>( + events_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); events_ = null; } return eventsBuilder_; } + @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); } @@ -1002,12 +1089,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.eventarc.publishing.v1.PublishEventsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.eventarc.publishing.v1.PublishEventsRequest) - private static final com.google.cloud.eventarc.publishing.v1.PublishEventsRequest DEFAULT_INSTANCE; + private static final com.google.cloud.eventarc.publishing.v1.PublishEventsRequest + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.eventarc.publishing.v1.PublishEventsRequest(); } @@ -1016,16 +1104,16 @@ public static com.google.cloud.eventarc.publishing.v1.PublishEventsRequest getDe return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishEventsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishEventsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishEventsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1040,6 +1128,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.eventarc.publishing.v1.PublishEventsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java similarity index 64% rename from owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java rename to proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java index a2b5dfc..06fdddf 100644 --- a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java +++ b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsRequestOrBuilder.java @@ -1,44 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; -public interface PublishEventsRequestOrBuilder extends +public interface PublishEventsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishEventsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The full name of the channel to publish to. For example:
    * `projects/{project}/locations/{location}/channels/{channel-id}`.
    * 
* * string channel = 1; + * * @return The channel. */ java.lang.String getChannel(); /** + * + * *
    * The full name of the channel to publish to. For example:
    * `projects/{project}/locations/{location}/channels/{channel-id}`.
    * 
* * string channel = 1; + * * @return The bytes for channel. */ - com.google.protobuf.ByteString - getChannelBytes(); + com.google.protobuf.ByteString getChannelBytes(); /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - java.util.List - getEventsList(); + java.util.List getEventsList(); /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -47,6 +71,8 @@ public interface PublishEventsRequestOrBuilder extends */ com.google.protobuf.Any getEvents(int index); /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
@@ -55,21 +81,23 @@ public interface PublishEventsRequestOrBuilder extends */ int getEventsCount(); /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - java.util.List - getEventsOrBuilderList(); + java.util.List getEventsOrBuilderList(); /** + * + * *
    * The CloudEvents v1.0 events to publish. No other types are allowed.
    * 
* * repeated .google.protobuf.Any events = 2; */ - com.google.protobuf.AnyOrBuilder getEventsOrBuilder( - int index); + com.google.protobuf.AnyOrBuilder getEventsOrBuilder(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java similarity index 66% rename from owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java rename to proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java index 3ef0502..d2a3500 100644 --- a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java +++ b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponse.java @@ -1,39 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/eventarc/publishing/v1/publisher.proto package com.google.cloud.eventarc.publishing.v1; /** + * + * *
  * The response message for the PublishEvents method.
  * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishEventsResponse} */ -public final class PublishEventsResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class PublishEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.eventarc.publishing.v1.PublishEventsResponse) PublishEventsResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use PublishEventsResponse.newBuilder() to construct. private PublishEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private PublishEventsResponse() { - } + + private PublishEventsResponse() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new PublishEventsResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private PublishEventsResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,13 +68,13 @@ private PublishEventsResponse( case 0: done = true; break; - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -66,27 +82,30 @@ private PublishEventsResponse( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.class, com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.class, + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.Builder.class); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -98,8 +117,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 { unknownFields.writeTo(output); } @@ -117,12 +135,13 @@ 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.eventarc.publishing.v1.PublishEventsResponse)) { return super.equals(obj); } - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse other = (com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) obj; + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse other = + (com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) obj; if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -141,117 +160,127 @@ public int hashCode() { } public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse 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.eventarc.publishing.v1.PublishEventsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse 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; } /** + * + * *
    * The response message for the PublishEvents method.
    * 
* * Protobuf type {@code google.cloud.eventarc.publishing.v1.PublishEventsResponse} */ - 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.eventarc.publishing.v1.PublishEventsResponse) com.google.cloud.eventarc.publishing.v1.PublishEventsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.class, com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.Builder.class); + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.class, + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.Builder.class); } // Construct using com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.newBuilder() @@ -259,16 +288,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -276,13 +304,14 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.eventarc.publishing.v1.PublisherProto.internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.eventarc.publishing.v1.PublisherProto + .internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; } @java.lang.Override - public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse getDefaultInstanceForType() { + public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse + getDefaultInstanceForType() { return com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.getDefaultInstance(); } @@ -297,7 +326,8 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse build() { @java.lang.Override public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse buildPartial() { - com.google.cloud.eventarc.publishing.v1.PublishEventsResponse result = new com.google.cloud.eventarc.publishing.v1.PublishEventsResponse(this); + com.google.cloud.eventarc.publishing.v1.PublishEventsResponse result = + new com.google.cloud.eventarc.publishing.v1.PublishEventsResponse(this); onBuilt(); return result; } @@ -306,38 +336,39 @@ public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse buildPartia public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) { - return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishEventsResponse)other); + return mergeFrom((com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) other); } else { super.mergeFrom(other); return this; @@ -345,7 +376,9 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.eventarc.publishing.v1.PublishEventsResponse other) { - if (other == com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.getDefaultInstance()) return this; + if (other + == com.google.cloud.eventarc.publishing.v1.PublishEventsResponse.getDefaultInstance()) + return this; this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -365,7 +398,9 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.eventarc.publishing.v1.PublishEventsResponse) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -374,9 +409,9 @@ public Builder mergeFrom( } 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); } @@ -386,12 +421,13 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.eventarc.publishing.v1.PublishEventsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.eventarc.publishing.v1.PublishEventsResponse) - private static final com.google.cloud.eventarc.publishing.v1.PublishEventsResponse DEFAULT_INSTANCE; + private static final com.google.cloud.eventarc.publishing.v1.PublishEventsResponse + DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.eventarc.publishing.v1.PublishEventsResponse(); } @@ -400,16 +436,16 @@ public static com.google.cloud.eventarc.publishing.v1.PublishEventsResponse getD return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PublishEventsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PublishEventsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishEventsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -424,6 +460,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.eventarc.publishing.v1.PublishEventsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java new file mode 100644 index 0000000..1793774 --- /dev/null +++ b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublishEventsResponseOrBuilder.java @@ -0,0 +1,24 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/eventarc/publishing/v1/publisher.proto + +package com.google.cloud.eventarc.publishing.v1; + +public interface PublishEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.eventarc.publishing.v1.PublishEventsResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java new file mode 100644 index 0000000..6175fc3 --- /dev/null +++ b/proto-google-cloud-eventarc-publishing-v1/src/main/java/com/google/cloud/eventarc/publishing/v1/PublisherProto.java @@ -0,0 +1,138 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/eventarc/publishing/v1/publisher.proto + +package com.google.cloud.eventarc.publishing.v1; + +public final class PublisherProto { + private PublisherProto() {} + + 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_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_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/eventarc/publishing/v1/pu" + + "blisher.proto\022#google.cloud.eventarc.pub" + + "lishing.v1\032\034google/api/annotations.proto" + + "\032\027google/api/client.proto\032\031google/protob" + + "uf/any.proto\"i\n%PublishChannelConnection" + + "EventsRequest\022\032\n\022channel_connection\030\001 \001(" + + "\t\022$\n\006events\030\002 \003(\0132\024.google.protobuf.Any\"" + + "(\n&PublishChannelConnectionEventsRespons" + + "e\"M\n\024PublishEventsRequest\022\017\n\007channel\030\001 \001" + + "(\t\022$\n\006events\030\002 \003(\0132\024.google.protobuf.Any" + + "\"\027\n\025PublishEventsResponse2\320\004\n\tPublisher\022" + + "\230\002\n\036PublishChannelConnectionEvents\022J.goo" + + "gle.cloud.eventarc.publishing.v1.Publish" + + "ChannelConnectionEventsRequest\032K.google." + + "cloud.eventarc.publishing.v1.PublishChan" + + "nelConnectionEventsResponse\"]\202\323\344\223\002W\"R/v1" + + "/{channel_connection=projects/*/location" + + "s/*/channelConnections/*}:publishEvents:" + + "\001*\022\320\001\n\rPublishEvents\0229.google.cloud.even" + + "tarc.publishing.v1.PublishEventsRequest\032" + + ":.google.cloud.eventarc.publishing.v1.Pu" + + "blishEventsResponse\"H\202\323\344\223\002B\"=/v1/{channe" + + "l=projects/*/locations/*/channels/*}:pub" + + "lishEvents:\001*\032U\312A!eventarcpublishing.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\377\001\n\'com.google.clou" + + "d.eventarc.publishing.v1B\016PublisherProto" + + "P\001ZLgoogle.golang.org/genproto/googleapi" + + "s/cloud/eventarc/publishing/v1;publisher" + + "\252\002#Google.Cloud.Eventarc.Publishing.V1\312\002" + + "#Google\\Cloud\\Eventarc\\Publishing\\V1\352\002\'G" + + "oogle::Cloud::Eventarc::Publishing::V1b\006" + + "proto3" + }; + 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.protobuf.AnyProto.getDescriptor(), + }); + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsRequest_descriptor, + new java.lang.String[] { + "ChannelConnection", "Events", + }); + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_eventarc_publishing_v1_PublishChannelConnectionEventsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsRequest_descriptor, + new java.lang.String[] { + "Channel", "Events", + }); + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_eventarc_publishing_v1_PublishEventsResponse_descriptor, + new java.lang.String[] {}); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.protobuf.AnyProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/proto/google/cloud/eventarc/publishing/v1/publisher.proto b/proto-google-cloud-eventarc-publishing-v1/src/main/proto/google/cloud/eventarc/publishing/v1/publisher.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-eventarc-publishing-v1/src/main/proto/google/cloud/eventarc/publishing/v1/publisher.proto rename to proto-google-cloud-eventarc-publishing-v1/src/main/proto/google/cloud/eventarc/publishing/v1/publisher.proto From b7f2c1ffcfa9f365c037dbbacc76082e9d8b2550 Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Mon, 27 Jun 2022 18:39:24 +0000 Subject: [PATCH 3/4] deps: adding gax-httpjson --- google-cloud-eventarc-publishing/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-eventarc-publishing/pom.xml b/google-cloud-eventarc-publishing/pom.xml index 17f566c..7eadf08 100644 --- a/google-cloud-eventarc-publishing/pom.xml +++ b/google-cloud-eventarc-publishing/pom.xml @@ -58,6 +58,10 @@ com.google.api gax-grpc + + com.google.api + gax-httpjson + org.threeten threetenbp @@ -77,12 +81,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test + From 9b54565fa25e6959811aede1eddfc6bd89605dac Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Mon, 27 Jun 2022 18:41:28 +0000 Subject: [PATCH 4/4] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7690e6d..f44d7c9 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-cloud-eventarc-publishing - 0.2.0 + 0.2.1 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.2.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.2.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.2.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.2.1" ``` ## Authentication