From c881e2237128ee90b584cf8e402ae5b0687d1ce9 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:06:45 +0000 Subject: [PATCH 1/3] feat: Enable REST transport for most of Java and Go clients PiperOrigin-RevId: 456641589 Source-Link: https://github.com/googleapis/googleapis/commit/8a251f5225b789b2383207ffd978f6aa3d77fcf7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ca52a529cf01308d9714950edffbea3560cfbdb Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGNhNTJhNTI5Y2YwMTMwOGQ5NzE0OTUwZWRmZmJlYTM1NjBjZmJkYiJ9 --- .../v1/ConnectionServiceClient.java | 31 +- .../v1/ConnectionServiceSettings.java | 31 +- .../cloud/apigeeconnect/v1/TetherClient.java | 20 +- .../apigeeconnect/v1/TetherSettings.java | 31 +- .../apigeeconnect/v1/gapic_metadata.json | 0 .../cloud/apigeeconnect/v1/package-info.java | 0 .../v1/stub/ConnectionServiceStub.java | 0 .../stub/ConnectionServiceStubSettings.java | 60 +- .../GrpcConnectionServiceCallableFactory.java | 0 .../v1/stub/GrpcConnectionServiceStub.java | 1 + .../v1/stub/GrpcTetherCallableFactory.java | 0 .../apigeeconnect/v1/stub/GrpcTetherStub.java | 0 ...pJsonConnectionServiceCallableFactory.java | 105 +++ .../stub/HttpJsonConnectionServiceStub.java | 208 +++++ .../stub/HttpJsonTetherCallableFactory.java | 105 +++ .../v1/stub/HttpJsonTetherStub.java | 128 +++ .../apigeeconnect/v1/stub/TetherStub.java | 0 .../v1/stub/TetherStubSettings.java | 59 +- .../ConnectionServiceClientHttpJsonTest.java | 177 ++++ .../v1/ConnectionServiceClientTest.java | 0 .../v1/MockConnectionService.java | 0 .../v1/MockConnectionServiceImpl.java | 0 .../cloud/apigeeconnect/v1/MockTether.java | 0 .../apigeeconnect/v1/MockTetherImpl.java | 0 .../v1/TetherClientHttpJsonTest.java | 69 ++ .../apigeeconnect/v1/TetherClientTest.java | 0 .../v1/ConnectionServiceGrpc.java | 225 ++--- .../cloud/apigeeconnect/v1/TetherGrpc.java | 213 ++--- .../google/cloud/apigeeconnect/v1/Action.java | 75 +- .../cloud/apigeeconnect/v1/Cluster.java | 384 ++++----- .../apigeeconnect/v1/ClusterOrBuilder.java | 36 +- .../cloud/apigeeconnect/v1/Connection.java | 440 ++++------ .../apigeeconnect/v1/ConnectionOrBuilder.java | 38 +- .../apigeeconnect/v1/ConnectionProto.java | 128 +++ .../cloud/apigeeconnect/v1/EgressRequest.java | 719 ++++++---------- .../v1/EgressRequestOrBuilder.java | 67 +- .../apigeeconnect/v1/EgressResponse.java | 796 +++++++----------- .../v1/EgressResponseOrBuilder.java | 76 +- .../cloud/apigeeconnect/v1/EndpointName.java | 0 .../google/cloud/apigeeconnect/v1/Header.java | 369 ++++---- .../apigeeconnect/v1/HeaderOrBuilder.java | 33 +- .../cloud/apigeeconnect/v1/HttpRequest.java | 656 ++++++--------- .../v1/HttpRequestOrBuilder.java | 65 +- .../cloud/apigeeconnect/v1/HttpResponse.java | 638 ++++++-------- .../v1/HttpResponseOrBuilder.java | 63 +- .../v1/ListConnectionsRequest.java | 455 ++++------ .../v1/ListConnectionsRequestOrBuilder.java | 47 +- .../v1/ListConnectionsResponse.java | 461 ++++------ .../v1/ListConnectionsResponseOrBuilder.java | 45 +- .../cloud/apigeeconnect/v1/Payload.java | 543 +++++------- .../apigeeconnect/v1/PayloadOrBuilder.java | 43 +- .../google/cloud/apigeeconnect/v1/Scheme.java | 75 +- .../cloud/apigeeconnect/v1/StreamInfo.java | 301 +++---- .../apigeeconnect/v1/StreamInfoOrBuilder.java | 29 + .../apigeeconnect/v1/TetherEndpoint.java | 89 +- .../cloud/apigeeconnect/v1/TetherProto.java | 184 ++++ .../google/cloud/apigeeconnect/v1/Url.java | 432 ++++------ .../cloud/apigeeconnect/v1/UrlOrBuilder.java | 42 +- .../cloud/apigeeconnect/v1/connection.proto | 0 .../cloud/apigeeconnect/v1/tether.proto | 0 .../SyncCreateSetCredentialsProvider.java | 42 + .../SyncCreateSetCredentialsProvider1.java | 41 + .../create/SyncCreateSetEndpoint.java | 39 + .../listconnections/AsyncListConnections.java | 51 ++ .../AsyncListConnectionsPaged.java | 59 ++ .../listconnections/SyncListConnections.java | 47 ++ .../SyncListConnectionsEndpointname.java | 41 + .../SyncListConnectionsString.java | 41 + .../listconnections/SyncListConnections.java | 46 + .../listconnections/SyncListConnections.java | 47 ++ .../tetherstubsettings/egress/SyncEgress.java | 45 + .../SyncCreateSetCredentialsProvider.java | 41 + .../SyncCreateSetCredentialsProvider1.java | 40 + .../create/SyncCreateSetEndpoint.java | 37 + .../v1/tetherclient/egress/AsyncEgress.java | 56 ++ .../v1/tethersettings/egress/SyncEgress.java | 45 + .../apigeeconnect/v1/ConnectionProto.java | 146 ---- .../apigeeconnect/v1/StreamInfoOrBuilder.java | 50 -- .../cloud/apigeeconnect/v1/TetherProto.java | 206 ----- 79 files changed, 4847 insertions(+), 5065 deletions(-) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java (93%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java (86%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java (90%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java (85%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/gapic_metadata.json (100%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java (100%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java (100%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java (84%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java (100%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java (99%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java (100%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java create mode 100644 owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherCallableFactory.java create mode 100644 owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherStub.java rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java (100%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java (79%) create mode 100644 owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java (100%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionService.java (100%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java (100%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/MockTether.java (100%) rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java (100%) create mode 100644 owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java rename {google-cloud-apigee-connect => owl-bot-staging/v1/google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientTest.java (100%) rename {grpc-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java (50%) rename {grpc-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java (53%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java (65%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java (68%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java (53%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java (69%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java (71%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java (75%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java (72%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java (77%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java (100%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java (69%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java (55%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java (73%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java (73%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java (74%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java (72%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java (70%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java (62%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java (73%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java (67%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java (71%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java (75%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java (65%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java (68%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java (67%) create mode 100644 owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java (70%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java (60%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/proto/google/cloud/apigeeconnect/v1/connection.proto (100%) rename {proto-google-cloud-apigee-connect-v1 => owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1}/src/main/proto/google/cloud/apigeeconnect/v1/tether.proto (100%) create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnections.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnectionsPaged.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnections.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsEndpointname.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsString.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetEndpoint.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/egress/AsyncEgress.java create mode 100644 owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java delete mode 100644 proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java delete mode 100644 proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java delete mode 100644 proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java similarity index 93% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java index 82b08b1..058489c 100644 --- a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java @@ -58,13 +58,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. *
* @@ -101,6 +101,21 @@ * ConnectionServiceClient.create(connectionServiceSettings); * } * + *

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.
+ * ConnectionServiceSettings connectionServiceSettings =
+ *     ConnectionServiceSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             ConnectionServiceSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * ConnectionServiceClient connectionServiceClient =
+ *     ConnectionServiceClient.create(connectionServiceSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") @@ -336,10 +351,7 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListConnectionsPagedResponse extends AbstractPagedListResponse< - ListConnectionsRequest, - ListConnectionsResponse, - Connection, - ListConnectionsPage, + ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage, ListConnectionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -389,10 +401,7 @@ public ApiFuture createPageAsync( public static class ListConnectionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectionsRequest, - ListConnectionsResponse, - Connection, - ListConnectionsPage, + ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage, ListConnectionsFixedSizeCollection> { private ListConnectionsFixedSizeCollection( diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java similarity index 86% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java index 60acbe9..a7e1198 100644 --- a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java @@ -23,10 +23,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.apigeeconnect.v1.stub.ConnectionServiceStubSettings; @@ -41,9 +43,10 @@ *

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

* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -103,11 +106,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return ConnectionServiceStubSettings.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 ConnectionServiceStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return ConnectionServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return ConnectionServiceStubSettings.defaultTransportChannelProvider(); } @@ -117,11 +127,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return ConnectionServiceStubSettings.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); @@ -159,6 +175,11 @@ private static Builder createDefault() { return new Builder(ConnectionServiceStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(ConnectionServiceStubSettings.newHttpJsonBuilder()); + } + public ConnectionServiceStubSettings.Builder getStubSettingsBuilder() { return ((ConnectionServiceStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java similarity index 90% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java index 2d94ce8..c7e7a7b 100644 --- a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java @@ -62,13 +62,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. *
* @@ -102,6 +102,20 @@ * TetherClient tetherClient = TetherClient.create(tetherSettings); * } * + *

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.
+ * TetherSettings tetherSettings =
+ *     TetherSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             TetherSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * TetherClient tetherClient = TetherClient.create(tetherSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @Generated("by gapic-generator-java") diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java similarity index 85% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java index 4f7c624..796ab6e 100644 --- a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java @@ -21,10 +21,12 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.StreamingCallSettings; +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.apigeeconnect.v1.stub.TetherStubSettings; @@ -39,9 +41,10 @@ *

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

* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -97,11 +100,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return TetherStubSettings.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 TetherStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return TetherStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return TetherStubSettings.defaultTransportChannelProvider(); } @@ -111,11 +121,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return TetherStubSettings.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); @@ -153,6 +169,11 @@ private static Builder createDefault() { return new Builder(TetherStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(TetherStubSettings.newHttpJsonBuilder()); + } + public TetherStubSettings.Builder getStubSettingsBuilder() { return ((TetherStubSettings.Builder) getStubSettings()); } diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/gapic_metadata.json b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/gapic_metadata.json similarity index 100% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/gapic_metadata.json rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/gapic_metadata.json diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java similarity index 100% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java similarity index 100% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java similarity index 84% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java index bf6a2ce..f3f9800 100644 --- a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java @@ -27,6 +27,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; @@ -59,9 +62,10 @@ *

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

* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -166,6 +170,11 @@ public ConnectionServiceStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcConnectionServiceStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonConnectionServiceStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -198,18 +207,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(ConnectionServiceStubSettings.class)) @@ -217,11 +233,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(ConnectionServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ConnectionServiceStubSettings.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); @@ -313,6 +348,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 .listConnectionsSettings() diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java similarity index 100% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java similarity index 99% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java index 962fe6f..f3ab3ba 100644 --- a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.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/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java similarity index 100% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java similarity index 100% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java new file mode 100644 index 0000000..6aa75e6 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.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.apigeeconnect.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 ConnectionService service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonConnectionServiceCallableFactory + 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-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java new file mode 100644 index 0000000..dfba9a8 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java @@ -0,0 +1,208 @@ +/* + * 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.apigeeconnect.v1.stub; + +import static com.google.cloud.apigeeconnect.v1.ConnectionServiceClient.ListConnectionsPagedResponse; + +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.apigeeconnect.v1.ListConnectionsRequest; +import com.google.cloud.apigeeconnect.v1.ListConnectionsResponse; +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 ConnectionService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonConnectionServiceStub extends ConnectionServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listConnectionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.apigeeconnect.v1.ConnectionService/ListConnections") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/endpoints/*}/connections", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListConnectionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listConnectionsCallable; + private final UnaryCallable + listConnectionsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonConnectionServiceStub create(ConnectionServiceStubSettings settings) + throws IOException { + return new HttpJsonConnectionServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonConnectionServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonConnectionServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonConnectionServiceStub, 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 HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonConnectionServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonConnectionServiceStub, 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 HttpJsonConnectionServiceStub( + ConnectionServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + listConnectionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listConnectionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.listConnectionsCallable = + callableFactory.createUnaryCallable( + listConnectionsTransportSettings, settings.listConnectionsSettings(), clientContext); + this.listConnectionsPagedCallable = + callableFactory.createPagedCallable( + listConnectionsTransportSettings, settings.listConnectionsSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listConnectionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable listConnectionsCallable() { + return listConnectionsCallable; + } + + @Override + public UnaryCallable + listConnectionsPagedCallable() { + return listConnectionsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherCallableFactory.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherCallableFactory.java new file mode 100644 index 0000000..915ddf5 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherCallableFactory.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.apigeeconnect.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 Tether service API. + * + *

This class is for advanced usage. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTetherCallableFactory + 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-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherStub.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherStub.java new file mode 100644 index 0000000..24aadd0 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherStub.java @@ -0,0 +1,128 @@ +/* + * 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.apigeeconnect.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.HttpJsonStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the Tether service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@Generated("by gapic-generator-java") +@BetaApi +public class HttpJsonTetherStub extends TetherStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonTetherStub create(TetherStubSettings settings) throws IOException { + return new HttpJsonTetherStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonTetherStub create(ClientContext clientContext) throws IOException { + return new HttpJsonTetherStub(TetherStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonTetherStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonTetherStub( + TetherStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonTetherStub, 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 HttpJsonTetherStub(TetherStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new HttpJsonTetherCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonTetherStub, 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 HttpJsonTetherStub( + TetherStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + return methodDescriptors; + } + + @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-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java similarity index 100% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java diff --git a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java similarity index 79% rename from google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java index f96bc16..ee7ffed 100644 --- a/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.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; @@ -49,9 +52,10 @@ *

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

* *

The builder of this class is recursive, so contained classes are themselves builders. When @@ -94,6 +98,11 @@ public TetherStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcTetherStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonTetherStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -126,29 +135,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(TetherStubSettings.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(TetherStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return TetherStubSettings.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); @@ -223,6 +257,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) { return builder; } diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java new file mode 100644 index 0000000..3f8d216 --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java @@ -0,0 +1,177 @@ +/* + * 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.apigeeconnect.v1; + +import static com.google.cloud.apigeeconnect.v1.ConnectionServiceClient.ListConnectionsPagedResponse; + +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.apigeeconnect.v1.stub.HttpJsonConnectionServiceStub; +import com.google.common.collect.Lists; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class ConnectionServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static ConnectionServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonConnectionServiceStub.getMethodDescriptors(), + ConnectionServiceSettings.getDefaultEndpoint()); + ConnectionServiceSettings settings = + ConnectionServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + ConnectionServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = ConnectionServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listConnectionsTest() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + ListConnectionsResponse expectedResponse = + ListConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + EndpointName parent = EndpointName.of("[PROJECT]", "[ENDPOINT]"); + + ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listConnectionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + EndpointName parent = EndpointName.of("[PROJECT]", "[ENDPOINT]"); + client.listConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConnectionsTest2() throws Exception { + Connection responsesElement = Connection.newBuilder().build(); + ListConnectionsResponse expectedResponse = + ListConnectionsResponse.newBuilder() + .setNextPageToken("") + .addAllConnections(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-7865/endpoints/endpoint-7865"; + + ListConnectionsPagedResponse pagedListResponse = client.listConnections(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConnectionsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listConnectionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-7865/endpoints/endpoint-7865"; + client.listConnections(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java similarity index 100% rename from google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java diff --git a/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionService.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionService.java similarity index 100% rename from google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionService.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionService.java diff --git a/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java similarity index 100% rename from google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java diff --git a/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTether.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTether.java similarity index 100% rename from google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTether.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTether.java diff --git a/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java similarity index 100% rename from google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java new file mode 100644 index 0000000..17cfe2d --- /dev/null +++ b/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java @@ -0,0 +1,69 @@ +/* + * 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.apigeeconnect.v1; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.cloud.apigeeconnect.v1.stub.HttpJsonTetherStub; +import java.io.IOException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class TetherClientHttpJsonTest { + private static MockHttpService mockService; + private static TetherClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonTetherStub.getMethodDescriptors(), TetherSettings.getDefaultEndpoint()); + TetherSettings settings = + TetherSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + TetherSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = TetherClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void egressUnsupportedMethodTest() throws Exception { + // The egress() method is not supported in REST transport. + //This empty test is generated for technical reasons. + } +} diff --git a/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientTest.java b/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientTest.java similarity index 100% rename from google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientTest.java rename to owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientTest.java diff --git a/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java similarity index 50% rename from grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java index f54b636..b2d4f25 100644 --- a/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.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.apigeeconnect.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *

  * Service Interface for the Apigee Connect connection management APIs.
  * 
@@ -35,143 +18,120 @@ private ConnectionServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.apigeeconnect.v1.ConnectionService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest, - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse> - getListConnectionsMethod; + private static volatile io.grpc.MethodDescriptor getListConnectionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListConnections", requestType = com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.class, responseType = com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest, - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse> - getListConnectionsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest, - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse> - getListConnectionsMethod; + public static io.grpc.MethodDescriptor getListConnectionsMethod() { + io.grpc.MethodDescriptor getListConnectionsMethod; if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { synchronized (ConnectionServiceGrpc.class) { if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - ConnectionServiceGrpc.getListConnectionsMethod = - getListConnectionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new ConnectionServiceMethodDescriptorSupplier("ListConnections")) - .build(); + ConnectionServiceGrpc.getListConnectionsMethod = getListConnectionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("ListConnections")) + .build(); } } } return getListConnectionsMethod; } - /** 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 ConnectionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + }; return ConnectionServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static ConnectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + public static ConnectionServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + }; return ConnectionServiceBlockingStub.newStub(factory, channel); } - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static ConnectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static ConnectionServiceFutureStub newFutureStub( + io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + }; return ConnectionServiceFutureStub.newStub(factory, channel); } /** - * - * *
    * Service Interface for the Apigee Connect connection management APIs.
    * 
*/ - public abstract static class ConnectionServiceImplBase implements io.grpc.BindableService { + public static abstract class ConnectionServiceImplBase implements io.grpc.BindableService { /** - * - * *
      * Lists connections that are currently active for the given Apigee Connect
      * endpoint.
      * 
*/ - public void listConnections( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListConnectionsMethod(), responseObserver); + public void listConnections(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionsMethod(), 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( - getListConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest, - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse>( - this, METHODID_LIST_CONNECTIONS))) + getListConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest, + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse>( + this, METHODID_LIST_CONNECTIONS))) .build(); } } /** - * - * *
    * Service Interface for the Apigee Connect connection management APIs.
    * 
*/ - public static final class ConnectionServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private ConnectionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ConnectionServiceStub extends io.grpc.stub.AbstractAsyncStub { + private ConnectionServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -182,33 +142,24 @@ protected ConnectionServiceStub build( } /** - * - * *
      * Lists connections that are currently active for the given Apigee Connect
      * endpoint.
      * 
*/ - public void listConnections( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void listConnections(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), - request, - responseObserver); + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request, responseObserver); } } /** - * - * *
    * Service Interface for the Apigee Connect connection management APIs.
    * 
*/ - public static final class ConnectionServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { + public static final class ConnectionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ConnectionServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -221,30 +172,25 @@ protected ConnectionServiceBlockingStub build( } /** - * - * *
      * Lists connections that are currently active for the given Apigee Connect
      * endpoint.
      * 
*/ - public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse listConnections( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request) { + public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse listConnections(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListConnectionsMethod(), getCallOptions(), request); } } /** - * - * *
    * Service Interface for the Apigee Connect connection management APIs.
    * 
*/ - public static final class ConnectionServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private ConnectionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ConnectionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { + private ConnectionServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -255,16 +201,13 @@ protected ConnectionServiceFutureStub build( } /** - * - * *
      * Lists connections that are currently active for the given Apigee Connect
      * endpoint.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse> - listConnections(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture listConnections( + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); } @@ -272,11 +215,11 @@ protected ConnectionServiceFutureStub build( private static final int METHODID_LIST_CONNECTIONS = 0; - 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 ConnectionServiceImplBase serviceImpl; private final int methodId; @@ -290,11 +233,8 @@ private static final class MethodHandlers public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_CONNECTIONS: - serviceImpl.listConnections( - (com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse>) - responseObserver); + serviceImpl.listConnections((com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); @@ -312,9 +252,8 @@ public io.grpc.stub.StreamObserver invoke( } } - private abstract static class ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ConnectionServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -356,12 +295,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ConnectionServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) - .addMethod(getListConnectionsMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) + .addMethod(getListConnectionsMethod()) + .build(); } } } diff --git a/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java b/owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java similarity index 53% rename from grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java rename to owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java index 0178f2d..d51cc53 100644 --- a/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java +++ b/owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.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.apigeeconnect.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** - * - * *
  * Tether provides a way for the control plane to send HTTP API requests to
  * services in data planes that runs in a remote datacenter without
@@ -37,105 +20,91 @@ private TetherGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.apigeeconnect.v1.Tether";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor<
-          com.google.cloud.apigeeconnect.v1.EgressResponse,
-          com.google.cloud.apigeeconnect.v1.EgressRequest>
-      getEgressMethod;
+  private static volatile io.grpc.MethodDescriptor getEgressMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Egress",
       requestType = com.google.cloud.apigeeconnect.v1.EgressResponse.class,
       responseType = com.google.cloud.apigeeconnect.v1.EgressRequest.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor<
-          com.google.cloud.apigeeconnect.v1.EgressResponse,
-          com.google.cloud.apigeeconnect.v1.EgressRequest>
-      getEgressMethod() {
-    io.grpc.MethodDescriptor<
-            com.google.cloud.apigeeconnect.v1.EgressResponse,
-            com.google.cloud.apigeeconnect.v1.EgressRequest>
-        getEgressMethod;
+  public static io.grpc.MethodDescriptor getEgressMethod() {
+    io.grpc.MethodDescriptor getEgressMethod;
     if ((getEgressMethod = TetherGrpc.getEgressMethod) == null) {
       synchronized (TetherGrpc.class) {
         if ((getEgressMethod = TetherGrpc.getEgressMethod) == null) {
-          TetherGrpc.getEgressMethod =
-              getEgressMethod =
-                  io.grpc.MethodDescriptor
-                      .
-                          newBuilder()
-                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Egress"))
-                      .setSampledToLocalTracing(true)
-                      .setRequestMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.apigeeconnect.v1.EgressResponse
-                                  .getDefaultInstance()))
-                      .setResponseMarshaller(
-                          io.grpc.protobuf.ProtoUtils.marshaller(
-                              com.google.cloud.apigeeconnect.v1.EgressRequest.getDefaultInstance()))
-                      .setSchemaDescriptor(new TetherMethodDescriptorSupplier("Egress"))
-                      .build();
+          TetherGrpc.getEgressMethod = getEgressMethod =
+              io.grpc.MethodDescriptor.newBuilder()
+              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Egress"))
+              .setSampledToLocalTracing(true)
+              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.apigeeconnect.v1.EgressResponse.getDefaultInstance()))
+              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
+                  com.google.cloud.apigeeconnect.v1.EgressRequest.getDefaultInstance()))
+              .setSchemaDescriptor(new TetherMethodDescriptorSupplier("Egress"))
+              .build();
         }
       }
     }
     return getEgressMethod;
   }
 
-  /** 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 TetherStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public TetherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new TetherStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public TetherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new TetherStub(channel, callOptions);
+        }
+      };
     return TetherStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static TetherBlockingStub newBlockingStub(io.grpc.Channel channel) {
+  public static TetherBlockingStub newBlockingStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public TetherBlockingStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new TetherBlockingStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public TetherBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new TetherBlockingStub(channel, callOptions);
+        }
+      };
     return TetherBlockingStub.newStub(factory, channel);
   }
 
-  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
-  public static TetherFutureStub newFutureStub(io.grpc.Channel channel) {
+  /**
+   * Creates a new ListenableFuture-style stub that supports unary calls on the service
+   */
+  public static TetherFutureStub newFutureStub(
+      io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-        new io.grpc.stub.AbstractStub.StubFactory() {
-          @java.lang.Override
-          public TetherFutureStub newStub(
-              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-            return new TetherFutureStub(channel, callOptions);
-          }
-        };
+      new io.grpc.stub.AbstractStub.StubFactory() {
+        @java.lang.Override
+        public TetherFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+          return new TetherFutureStub(channel, callOptions);
+        }
+      };
     return TetherFutureStub.newStub(factory, channel);
   }
 
   /**
-   *
-   *
    * 
    * Tether provides a way for the control plane to send HTTP API requests to
    * services in data planes that runs in a remote datacenter without
    * requiring customers to open firewalls on their runtime plane.
    * 
*/ - public abstract static class TetherImplBase implements io.grpc.BindableService { + public static abstract class TetherImplBase implements io.grpc.BindableService { /** - * - * *
      * Egress streams egress requests and responses. Logically, this is not
      * actually a streaming request, but uses streaming as a mechanism to flip
@@ -147,28 +116,24 @@ public abstract static class TetherImplBase implements io.grpc.BindableService {
      * 
*/ public io.grpc.stub.StreamObserver egress( - io.grpc.stub.StreamObserver - responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( - getEgressMethod(), responseObserver); + io.grpc.stub.StreamObserver responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getEgressMethod(), 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( - getEgressMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.apigeeconnect.v1.EgressResponse, - com.google.cloud.apigeeconnect.v1.EgressRequest>(this, METHODID_EGRESS))) + getEgressMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.apigeeconnect.v1.EgressResponse, + com.google.cloud.apigeeconnect.v1.EgressRequest>( + this, METHODID_EGRESS))) .build(); } } /** - * - * *
    * Tether provides a way for the control plane to send HTTP API requests to
    * services in data planes that runs in a remote datacenter without
@@ -176,18 +141,18 @@ public final io.grpc.ServerServiceDefinition bindService() {
    * 
*/ public static final class TetherStub extends io.grpc.stub.AbstractAsyncStub { - private TetherStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + private TetherStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected TetherStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected TetherStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TetherStub(channel, callOptions); } /** - * - * *
      * Egress streams egress requests and responses. Logically, this is not
      * actually a streaming request, but uses streaming as a mechanism to flip
@@ -199,62 +164,59 @@ protected TetherStub build(io.grpc.Channel channel, io.grpc.CallOptions callOpti
      * 
*/ public io.grpc.stub.StreamObserver egress( - io.grpc.stub.StreamObserver - responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getEgressMethod(), getCallOptions()), responseObserver); } } /** - * - * *
    * Tether provides a way for the control plane to send HTTP API requests to
    * services in data planes that runs in a remote datacenter without
    * requiring customers to open firewalls on their runtime plane.
    * 
*/ - public static final class TetherBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private TetherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class TetherBlockingStub extends io.grpc.stub.AbstractBlockingStub { + private TetherBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected TetherBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected TetherBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TetherBlockingStub(channel, callOptions); } } /** - * - * *
    * Tether provides a way for the control plane to send HTTP API requests to
    * services in data planes that runs in a remote datacenter without
    * requiring customers to open firewalls on their runtime plane.
    * 
*/ - public static final class TetherFutureStub - extends io.grpc.stub.AbstractFutureStub { - private TetherFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class TetherFutureStub extends io.grpc.stub.AbstractFutureStub { + private TetherFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected TetherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected TetherFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TetherFutureStub(channel, callOptions); } } private static final int METHODID_EGRESS = 0; - 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 TetherImplBase serviceImpl; private final int methodId; @@ -278,19 +240,16 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_EGRESS: - return (io.grpc.stub.StreamObserver) - serviceImpl.egress( - (io.grpc.stub.StreamObserver) - responseObserver); + return (io.grpc.stub.StreamObserver) serviceImpl.egress( + (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } - private abstract static class TetherBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private static abstract class TetherBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { TetherBaseDescriptorSupplier() {} @java.lang.Override @@ -304,11 +263,13 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class TetherFileDescriptorSupplier extends TetherBaseDescriptorSupplier { + private static final class TetherFileDescriptorSupplier + extends TetherBaseDescriptorSupplier { TetherFileDescriptorSupplier() {} } - private static final class TetherMethodDescriptorSupplier extends TetherBaseDescriptorSupplier + private static final class TetherMethodDescriptorSupplier + extends TetherBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; @@ -330,12 +291,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (TetherGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TetherFileDescriptorSupplier()) - .addMethod(getEgressMethod()) - .build(); + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TetherFileDescriptorSupplier()) + .addMethod(getEgressMethod()) + .build(); } } } diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java similarity index 65% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java index 74735b9..d8be293 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * The action taken by agent.
  * 
* * Protobuf enum {@code google.cloud.apigeeconnect.v1.Action} */ -public enum Action implements com.google.protobuf.ProtocolMessageEnum { +public enum Action + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified Action.
    * 
@@ -39,8 +21,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ ACTION_UNSPECIFIED(0), /** - * - * *
    * Indicates that agent should open a new stream.
    * 
@@ -52,8 +32,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified Action.
    * 
@@ -62,8 +40,6 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Indicates that agent should open a new stream.
    * 
@@ -72,6 +48,7 @@ public enum Action implements com.google.protobuf.ProtocolMessageEnum { */ public static final int OPEN_NEW_STREAM_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -96,47 +73,48 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: - return ACTION_UNSPECIFIED; - case 1: - return OPEN_NEW_STREAM; - default: - return null; + case 0: return ACTION_UNSPECIFIED; + case 1: return OPEN_NEW_STREAM; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Action> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.apigeeconnect.v1.TetherProto.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -152,3 +130,4 @@ private Action(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.apigeeconnect.v1.Action) } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java similarity index 68% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java index 8cd2555..b943fd7 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java @@ -1,34 +1,20 @@ -/* - * 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/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -/** Protobuf type {@code google.cloud.apigeeconnect.v1.Cluster} */ -public final class Cluster extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.apigeeconnect.v1.Cluster} + */ +public final class Cluster extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.Cluster) ClusterOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Cluster.newBuilder() to construct. private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Cluster() { name_ = ""; region_ = ""; @@ -36,15 +22,16 @@ private Cluster() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Cluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Cluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -63,27 +50,25 @@ private Cluster( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - region_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + region_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +76,34 @@ private Cluster( } 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.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Cluster.class, - com.google.cloud.apigeeconnect.v1.Cluster.Builder.class); + com.google.cloud.apigeeconnect.v1.Cluster.class, com.google.cloud.apigeeconnect.v1.Cluster.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** - * - * *
    * The name of the cluster.
    * 
* * string name = 1; - * * @return The name. */ @java.lang.Override @@ -132,29 +112,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * The name of the cluster.
    * 
* * string name = 1; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -165,14 +145,11 @@ public com.google.protobuf.ByteString getNameBytes() { public static final int REGION_FIELD_NUMBER = 2; private volatile java.lang.Object region_; /** - * - * *
    * The region of the cluster.
    * 
* * string region = 2; - * * @return The region. */ @java.lang.Override @@ -181,29 +158,29 @@ public java.lang.String getRegion() { 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(); region_ = s; return s; } } /** - * - * *
    * The region of the cluster.
    * 
* * string region = 2; - * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; 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); region_ = b; return b; } else { @@ -212,7 +189,6 @@ public com.google.protobuf.ByteString getRegionBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -224,7 +200,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -254,16 +231,17 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.Cluster)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.Cluster other = - (com.google.cloud.apigeeconnect.v1.Cluster) obj; + com.google.cloud.apigeeconnect.v1.Cluster other = (com.google.cloud.apigeeconnect.v1.Cluster) obj; - if (!getName().equals(other.getName())) return false; - if (!getRegion().equals(other.getRegion())) return false; + if (!getName() + .equals(other.getName())) return false; + if (!getRegion() + .equals(other.getRegion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -284,119 +262,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.Cluster parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.Cluster parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.Cluster parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster 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; } - /** Protobuf type {@code google.cloud.apigeeconnect.v1.Cluster} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.apigeeconnect.v1.Cluster} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.apigeeconnect.v1.Cluster) com.google.cloud.apigeeconnect.v1.ClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Cluster.class, - com.google.cloud.apigeeconnect.v1.Cluster.Builder.class); + com.google.cloud.apigeeconnect.v1.Cluster.class, com.google.cloud.apigeeconnect.v1.Cluster.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.Cluster.newBuilder() @@ -404,15 +377,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(); @@ -424,9 +398,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; } @java.lang.Override @@ -445,8 +419,7 @@ public com.google.cloud.apigeeconnect.v1.Cluster build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.Cluster buildPartial() { - com.google.cloud.apigeeconnect.v1.Cluster result = - new com.google.cloud.apigeeconnect.v1.Cluster(this); + com.google.cloud.apigeeconnect.v1.Cluster result = new com.google.cloud.apigeeconnect.v1.Cluster(this); result.name_ = name_; result.region_ = region_; onBuilt(); @@ -457,39 +430,38 @@ public com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.Cluster) other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.Cluster)other); } else { super.mergeFrom(other); return this; @@ -537,20 +509,18 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** - * - * *
      * The name of the cluster.
      * 
* * string name = 1; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -559,21 +529,20 @@ public java.lang.String getName() { } } /** - * - * *
      * The name of the cluster.
      * 
* * string name = 1; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -581,61 +550,54 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * The name of the cluster.
      * 
* * string name = 1; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * The name of the cluster.
      * 
* * string name = 1; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * The name of the cluster.
      * 
* * string name = 1; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -643,20 +605,18 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { private java.lang.Object region_ = ""; /** - * - * *
      * The region of the cluster.
      * 
* * string region = 2; - * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; 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(); region_ = s; return s; @@ -665,21 +625,20 @@ public java.lang.String getRegion() { } } /** - * - * *
      * The region of the cluster.
      * 
* * string region = 2; - * * @return The bytes for region. */ - public com.google.protobuf.ByteString getRegionBytes() { + public com.google.protobuf.ByteString + getRegionBytes() { java.lang.Object ref = region_; 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); region_ = b; return b; } else { @@ -687,68 +646,61 @@ public com.google.protobuf.ByteString getRegionBytes() { } } /** - * - * *
      * The region of the cluster.
      * 
* * string region = 2; - * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion(java.lang.String value) { + public Builder setRegion( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** - * - * *
      * The region of the cluster.
      * 
* * string region = 2; - * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** - * - * *
      * The region of the cluster.
      * 
* * string region = 2; - * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes(com.google.protobuf.ByteString value) { + public Builder setRegionBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -758,12 +710,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.Cluster) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.Cluster) private static final com.google.cloud.apigeeconnect.v1.Cluster DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.Cluster(); } @@ -772,16 +724,16 @@ public static com.google.cloud.apigeeconnect.v1.Cluster getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Cluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Cluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -796,4 +748,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.Cluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java similarity index 53% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java index b940377..60ad3fc 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java @@ -1,75 +1,49 @@ -/* - * 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/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -public interface ClusterOrBuilder - extends +public interface ClusterOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.Cluster) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The name of the cluster.
    * 
* * string name = 1; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * The name of the cluster.
    * 
* * string name = 1; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); /** - * - * *
    * The region of the cluster.
    * 
* * string region = 2; - * * @return The region. */ java.lang.String getRegion(); /** - * - * *
    * The region of the cluster.
    * 
* * string region = 2; - * * @return The bytes for region. */ - com.google.protobuf.ByteString getRegionBytes(); + com.google.protobuf.ByteString + getRegionBytes(); } diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java similarity index 69% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java index dc884ad..a31a2c5 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java @@ -1,49 +1,36 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -/** Protobuf type {@code google.cloud.apigeeconnect.v1.Connection} */ -public final class Connection extends com.google.protobuf.GeneratedMessageV3 - implements +/** + * Protobuf type {@code google.cloud.apigeeconnect.v1.Connection} + */ +public final class Connection extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.Connection) ConnectionOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Connection.newBuilder() to construct. private Connection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Connection() { endpoint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Connection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Connection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -62,41 +49,37 @@ private Connection( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - endpoint_ = s; - break; - } - case 18: - { - com.google.cloud.apigeeconnect.v1.Cluster.Builder subBuilder = null; - if (cluster_ != null) { - subBuilder = cluster_.toBuilder(); - } - cluster_ = - input.readMessage( - com.google.cloud.apigeeconnect.v1.Cluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cluster_); - cluster_ = subBuilder.buildPartial(); - } - - break; + endpoint_ = s; + break; + } + case 18: { + com.google.cloud.apigeeconnect.v1.Cluster.Builder subBuilder = null; + if (cluster_ != null) { + subBuilder = cluster_.toBuilder(); } - case 24: - { - streamCount_ = input.readInt32(); - break; + cluster_ = input.readMessage(com.google.cloud.apigeeconnect.v1.Cluster.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cluster_); + cluster_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + case 24: { + + streamCount_ = input.readInt32(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,40 +87,35 @@ private Connection( } 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.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Connection.class, - com.google.cloud.apigeeconnect.v1.Connection.Builder.class); + com.google.cloud.apigeeconnect.v1.Connection.class, com.google.cloud.apigeeconnect.v1.Connection.Builder.class); } public static final int ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object endpoint_; /** - * - * *
    * The endpoint that the connection is made against.
    * Format: `projects/{project_number}/endpoints/{endpoint}`
    * 
* * string endpoint = 1; - * * @return The endpoint. */ @java.lang.Override @@ -146,30 +124,30 @@ public java.lang.String getEndpoint() { 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(); endpoint_ = s; return s; } } /** - * - * *
    * The endpoint that the connection is made against.
    * Format: `projects/{project_number}/endpoints/{endpoint}`
    * 
* * string endpoint = 1; - * * @return The bytes for endpoint. */ @java.lang.Override - public com.google.protobuf.ByteString getEndpointBytes() { + public com.google.protobuf.ByteString + getEndpointBytes() { java.lang.Object ref = endpoint_; 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); endpoint_ = b; return b; } else { @@ -180,14 +158,11 @@ public com.google.protobuf.ByteString getEndpointBytes() { public static final int CLUSTER_FIELD_NUMBER = 2; private com.google.cloud.apigeeconnect.v1.Cluster cluster_; /** - * - * *
    * Cluster information.
    * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; - * * @return Whether the cluster field is set. */ @java.lang.Override @@ -195,25 +170,18 @@ public boolean hasCluster() { return cluster_ != null; } /** - * - * *
    * Cluster information.
    * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; - * * @return The cluster. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.Cluster getCluster() { - return cluster_ == null - ? com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() - : cluster_; + return cluster_ == null ? com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() : cluster_; } /** - * - * *
    * Cluster information.
    * 
@@ -228,14 +196,11 @@ public com.google.cloud.apigeeconnect.v1.ClusterOrBuilder getClusterOrBuilder() public static final int STREAM_COUNT_FIELD_NUMBER = 3; private int streamCount_; /** - * - * *
    * The count of streams.
    * 
* * int32 stream_count = 3; - * * @return The streamCount. */ @java.lang.Override @@ -244,7 +209,6 @@ public int getStreamCount() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -256,7 +220,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(endpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } @@ -279,10 +244,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); } if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCluster()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getCluster()); } if (streamCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, streamCount_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, streamCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -292,20 +259,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.Connection)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.Connection other = - (com.google.cloud.apigeeconnect.v1.Connection) obj; + com.google.cloud.apigeeconnect.v1.Connection other = (com.google.cloud.apigeeconnect.v1.Connection) obj; - if (!getEndpoint().equals(other.getEndpoint())) return false; + if (!getEndpoint() + .equals(other.getEndpoint())) return false; if (hasCluster() != other.hasCluster()) return false; if (hasCluster()) { - if (!getCluster().equals(other.getCluster())) return false; + if (!getCluster() + .equals(other.getCluster())) return false; } - if (getStreamCount() != other.getStreamCount()) return false; + if (getStreamCount() + != other.getStreamCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -330,119 +299,114 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.Connection parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.Connection parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.Connection parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection 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; } - /** Protobuf type {@code google.cloud.apigeeconnect.v1.Connection} */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements + /** + * Protobuf type {@code google.cloud.apigeeconnect.v1.Connection} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:google.cloud.apigeeconnect.v1.Connection) com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Connection.class, - com.google.cloud.apigeeconnect.v1.Connection.Builder.class); + com.google.cloud.apigeeconnect.v1.Connection.class, com.google.cloud.apigeeconnect.v1.Connection.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.Connection.newBuilder() @@ -450,15 +414,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(); @@ -476,9 +441,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; } @java.lang.Override @@ -497,8 +462,7 @@ public com.google.cloud.apigeeconnect.v1.Connection build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.Connection buildPartial() { - com.google.cloud.apigeeconnect.v1.Connection result = - new com.google.cloud.apigeeconnect.v1.Connection(this); + com.google.cloud.apigeeconnect.v1.Connection result = new com.google.cloud.apigeeconnect.v1.Connection(this); result.endpoint_ = endpoint_; if (clusterBuilder_ == null) { result.cluster_ = cluster_; @@ -514,39 +478,38 @@ public com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.Connection) other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.Connection)other); } else { super.mergeFrom(other); return this; @@ -596,21 +559,19 @@ public Builder mergeFrom( private java.lang.Object endpoint_ = ""; /** - * - * *
      * The endpoint that the connection is made against.
      * Format: `projects/{project_number}/endpoints/{endpoint}`
      * 
* * string endpoint = 1; - * * @return The endpoint. */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; 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(); endpoint_ = s; return s; @@ -619,22 +580,21 @@ public java.lang.String getEndpoint() { } } /** - * - * *
      * The endpoint that the connection is made against.
      * Format: `projects/{project_number}/endpoints/{endpoint}`
      * 
* * string endpoint = 1; - * * @return The bytes for endpoint. */ - public com.google.protobuf.ByteString getEndpointBytes() { + public com.google.protobuf.ByteString + getEndpointBytes() { java.lang.Object ref = endpoint_; 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); endpoint_ = b; return b; } else { @@ -642,64 +602,57 @@ public com.google.protobuf.ByteString getEndpointBytes() { } } /** - * - * *
      * The endpoint that the connection is made against.
      * Format: `projects/{project_number}/endpoints/{endpoint}`
      * 
* * string endpoint = 1; - * * @param value The endpoint to set. * @return This builder for chaining. */ - public Builder setEndpoint(java.lang.String value) { + public Builder setEndpoint( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endpoint_ = value; onChanged(); return this; } /** - * - * *
      * The endpoint that the connection is made against.
      * Format: `projects/{project_number}/endpoints/{endpoint}`
      * 
* * string endpoint = 1; - * * @return This builder for chaining. */ public Builder clearEndpoint() { - + endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } /** - * - * *
      * The endpoint that the connection is made against.
      * Format: `projects/{project_number}/endpoints/{endpoint}`
      * 
* * string endpoint = 1; - * * @param value The bytes for endpoint to set. * @return This builder for chaining. */ - public Builder setEndpointBytes(com.google.protobuf.ByteString value) { + public Builder setEndpointBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = value; onChanged(); return this; @@ -707,47 +660,34 @@ public Builder setEndpointBytes(com.google.protobuf.ByteString value) { private com.google.cloud.apigeeconnect.v1.Cluster cluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Cluster, - com.google.cloud.apigeeconnect.v1.Cluster.Builder, - com.google.cloud.apigeeconnect.v1.ClusterOrBuilder> - clusterBuilder_; + com.google.cloud.apigeeconnect.v1.Cluster, com.google.cloud.apigeeconnect.v1.Cluster.Builder, com.google.cloud.apigeeconnect.v1.ClusterOrBuilder> clusterBuilder_; /** - * - * *
      * Cluster information.
      * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; - * * @return Whether the cluster field is set. */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** - * - * *
      * Cluster information.
      * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; - * * @return The cluster. */ public com.google.cloud.apigeeconnect.v1.Cluster getCluster() { if (clusterBuilder_ == null) { - return cluster_ == null - ? com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() - : cluster_; + return cluster_ == null ? com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() : cluster_; } else { return clusterBuilder_.getMessage(); } } /** - * - * *
      * Cluster information.
      * 
@@ -768,15 +708,14 @@ public Builder setCluster(com.google.cloud.apigeeconnect.v1.Cluster value) { return this; } /** - * - * *
      * Cluster information.
      * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; */ - public Builder setCluster(com.google.cloud.apigeeconnect.v1.Cluster.Builder builderForValue) { + public Builder setCluster( + com.google.cloud.apigeeconnect.v1.Cluster.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); @@ -787,8 +726,6 @@ public Builder setCluster(com.google.cloud.apigeeconnect.v1.Cluster.Builder buil return this; } /** - * - * *
      * Cluster information.
      * 
@@ -799,9 +736,7 @@ public Builder mergeCluster(com.google.cloud.apigeeconnect.v1.Cluster value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = - com.google.cloud.apigeeconnect.v1.Cluster.newBuilder(cluster_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.apigeeconnect.v1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); } else { cluster_ = value; } @@ -813,8 +748,6 @@ public Builder mergeCluster(com.google.cloud.apigeeconnect.v1.Cluster value) { return this; } /** - * - * *
      * Cluster information.
      * 
@@ -833,8 +766,6 @@ public Builder clearCluster() { return this; } /** - * - * *
      * Cluster information.
      * 
@@ -842,13 +773,11 @@ public Builder clearCluster() { * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; */ public com.google.cloud.apigeeconnect.v1.Cluster.Builder getClusterBuilder() { - + onChanged(); return getClusterFieldBuilder().getBuilder(); } /** - * - * *
      * Cluster information.
      * 
@@ -859,14 +788,11 @@ public com.google.cloud.apigeeconnect.v1.ClusterOrBuilder getClusterOrBuilder() if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { - return cluster_ == null - ? com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() - : cluster_; + return cluster_ == null ? + com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() : cluster_; } } /** - * - * *
      * Cluster information.
      * 
@@ -874,32 +800,26 @@ public com.google.cloud.apigeeconnect.v1.ClusterOrBuilder getClusterOrBuilder() * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Cluster, - com.google.cloud.apigeeconnect.v1.Cluster.Builder, - com.google.cloud.apigeeconnect.v1.ClusterOrBuilder> + com.google.cloud.apigeeconnect.v1.Cluster, com.google.cloud.apigeeconnect.v1.Cluster.Builder, com.google.cloud.apigeeconnect.v1.ClusterOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { - clusterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Cluster, - com.google.cloud.apigeeconnect.v1.Cluster.Builder, - com.google.cloud.apigeeconnect.v1.ClusterOrBuilder>( - getCluster(), getParentForChildren(), isClean()); + clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Cluster, com.google.cloud.apigeeconnect.v1.Cluster.Builder, com.google.cloud.apigeeconnect.v1.ClusterOrBuilder>( + getCluster(), + getParentForChildren(), + isClean()); cluster_ = null; } return clusterBuilder_; } - private int streamCount_; + private int streamCount_ ; /** - * - * *
      * The count of streams.
      * 
* * int32 stream_count = 3; - * * @return The streamCount. */ @java.lang.Override @@ -907,43 +827,37 @@ public int getStreamCount() { return streamCount_; } /** - * - * *
      * The count of streams.
      * 
* * int32 stream_count = 3; - * * @param value The streamCount to set. * @return This builder for chaining. */ public Builder setStreamCount(int value) { - + streamCount_ = value; onChanged(); return this; } /** - * - * *
      * The count of streams.
      * 
* * int32 stream_count = 3; - * * @return This builder for chaining. */ public Builder clearStreamCount() { - + streamCount_ = 0; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -953,12 +867,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.Connection) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.Connection) private static final com.google.cloud.apigeeconnect.v1.Connection DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.Connection(); } @@ -967,16 +881,16 @@ public static com.google.cloud.apigeeconnect.v1.Connection getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Connection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Connection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -991,4 +905,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.Connection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java similarity index 67% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java index b7a777e..eeb3c1d 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java @@ -1,82 +1,53 @@ -/* - * 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/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -public interface ConnectionOrBuilder - extends +public interface ConnectionOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.Connection) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The endpoint that the connection is made against.
    * Format: `projects/{project_number}/endpoints/{endpoint}`
    * 
* * string endpoint = 1; - * * @return The endpoint. */ java.lang.String getEndpoint(); /** - * - * *
    * The endpoint that the connection is made against.
    * Format: `projects/{project_number}/endpoints/{endpoint}`
    * 
* * string endpoint = 1; - * * @return The bytes for endpoint. */ - com.google.protobuf.ByteString getEndpointBytes(); + com.google.protobuf.ByteString + getEndpointBytes(); /** - * - * *
    * Cluster information.
    * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; - * * @return Whether the cluster field is set. */ boolean hasCluster(); /** - * - * *
    * Cluster information.
    * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; - * * @return The cluster. */ com.google.cloud.apigeeconnect.v1.Cluster getCluster(); /** - * - * *
    * Cluster information.
    * 
@@ -86,14 +57,11 @@ public interface ConnectionOrBuilder com.google.cloud.apigeeconnect.v1.ClusterOrBuilder getClusterOrBuilder(); /** - * - * *
    * The count of streams.
    * 
* * int32 stream_count = 3; - * * @return The streamCount. */ int getStreamCount(); diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java new file mode 100644 index 0000000..d8f7af3 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java @@ -0,0 +1,128 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/apigeeconnect/v1/connection.proto + +package com.google.cloud.apigeeconnect.v1; + +public final class ConnectionProto { + private ConnectionProto() {} + 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_apigeeconnect_v1_ListConnectionsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/apigeeconnect/v1/connecti" + + "on.proto\022\035google.cloud.apigeeconnect.v1\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\"~\n\026Li" + + "stConnectionsRequest\022=\n\006parent\030\001 \001(\tB-\340A" + + "\002\372A\'\n%apigeeconnect.googleapis.com/Endpo" + + "int\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"r\n\027ListConnectionsResponse\022>\n\013connect" + + "ions\030\001 \003(\0132).google.cloud.apigeeconnect." + + "v1.Connection\022\027\n\017next_page_token\030\002 \001(\t\"m" + + "\n\nConnection\022\020\n\010endpoint\030\001 \001(\t\0227\n\007cluste" + + "r\030\002 \001(\0132&.google.cloud.apigeeconnect.v1." + + "Cluster\022\024\n\014stream_count\030\003 \001(\005\"\'\n\007Cluster" + + "\022\014\n\004name\030\001 \001(\t\022\016\n\006region\030\002 \001(\t2\252\002\n\021Conne" + + "ctionService\022\302\001\n\017ListConnections\0225.googl" + + "e.cloud.apigeeconnect.v1.ListConnections" + + "Request\0326.google.cloud.apigeeconnect.v1." + + "ListConnectionsResponse\"@\202\323\344\223\0021\022//v1/{pa" + + "rent=projects/*/endpoints/*}/connections" + + "\332A\006parent\032P\312A\034apigeeconnect.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\270\002\n!com.google.cloud.apigeec" + + "onnect.v1B\017ConnectionProtoP\001ZJgoogle.gol" + + "ang.org/genproto/googleapis/cloud/apigee" + + "connect/v1;apigeeconnect\252\002\035Google.Cloud." + + "ApigeeConnect.V1\312\002\035Google\\Cloud\\ApigeeCo" + + "nnect\\V1\352\002 Google::Cloud::ApigeeConnect:" + + ":V1\352AP\n%apigeeconnect.googleapis.com/End" + + "point\022\'projects/{project}/endpoints/{end" + + "point}b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor, + new java.lang.String[] { "Parent", "PageSize", "PageToken", }); + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor, + new java.lang.String[] { "Connections", "NextPageToken", }); + internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor, + new java.lang.String[] { "Endpoint", "Cluster", "StreamCount", }); + internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor, + new java.lang.String[] { "Name", "Region", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java similarity index 71% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java index 9b06d09..b3bf466 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * gRPC request payload for tether.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.EgressRequest} */ -public final class EgressRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EgressRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.EgressRequest) EgressRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EgressRequest.newBuilder() to construct. private EgressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EgressRequest() { id_ = ""; endpoint_ = 0; @@ -46,15 +28,16 @@ private EgressRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EgressRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EgressRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -73,72 +56,63 @@ private EgressRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; + id_ = s; + break; + } + case 18: { + com.google.cloud.apigeeconnect.v1.Payload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); } - case 18: - { - com.google.cloud.apigeeconnect.v1.Payload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); - } - payload_ = - input.readMessage( - com.google.cloud.apigeeconnect.v1.Payload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); - } - - break; + payload_ = input.readMessage(com.google.cloud.apigeeconnect.v1.Payload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); } - case 24: - { - int rawValue = input.readEnum(); - endpoint_ = rawValue; - break; - } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 24: { + int rawValue = input.readEnum(); - project_ = s; - break; - } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); + endpoint_ = rawValue; + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + project_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); - traceId_ = s; - break; + traceId_ = s; + break; + } + case 50: { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); } - case 50: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); - } - timeout_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); - } - - break; + timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -146,39 +120,34 @@ private EgressRequest( } 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.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.EgressRequest.class, - com.google.cloud.apigeeconnect.v1.EgressRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.EgressRequest.class, com.google.cloud.apigeeconnect.v1.EgressRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * Unique identifier for the request.
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -187,29 +156,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** - * - * *
    * Unique identifier for the request.
    * 
* * string id = 1; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -220,14 +189,11 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.cloud.apigeeconnect.v1.Payload payload_; /** - * - * *
    * Actual payload to send to agent.
    * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; - * * @return Whether the payload field is set. */ @java.lang.Override @@ -235,25 +201,18 @@ public boolean hasPayload() { return payload_ != null; } /** - * - * *
    * Actual payload to send to agent.
    * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; - * * @return The payload. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.Payload getPayload() { - return payload_ == null - ? com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() - : payload_; + return payload_ == null ? com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() : payload_; } /** - * - * *
    * Actual payload to send to agent.
    * 
@@ -268,51 +227,39 @@ public com.google.cloud.apigeeconnect.v1.PayloadOrBuilder getPayloadOrBuilder() public static final int ENDPOINT_FIELD_NUMBER = 3; private int endpoint_; /** - * - * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * * @return The enum numeric value on the wire for endpoint. */ - @java.lang.Override - public int getEndpointValue() { + @java.lang.Override public int getEndpointValue() { return endpoint_; } /** - * - * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * * @return The endpoint. */ - @java.lang.Override - public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { + @java.lang.Override public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.TetherEndpoint result = - com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); + com.google.cloud.apigeeconnect.v1.TetherEndpoint result = com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); return result == null ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED : result; } public static final int PROJECT_FIELD_NUMBER = 4; private volatile java.lang.Object project_; /** - * - * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; - * * @return The project. */ @java.lang.Override @@ -321,30 +268,30 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** - * - * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; - * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -355,14 +302,11 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int TRACE_ID_FIELD_NUMBER = 5; private volatile java.lang.Object traceId_; /** - * - * *
    * Unique identifier for clients to trace their request/response.
    * 
* * string trace_id = 5; - * * @return The traceId. */ @java.lang.Override @@ -371,29 +315,29 @@ public java.lang.String getTraceId() { 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(); traceId_ = s; return s; } } /** - * - * *
    * Unique identifier for clients to trace their request/response.
    * 
* * string trace_id = 5; - * * @return The bytes for traceId. */ @java.lang.Override - public com.google.protobuf.ByteString getTraceIdBytes() { + public com.google.protobuf.ByteString + getTraceIdBytes() { java.lang.Object ref = traceId_; 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); traceId_ = b; return b; } else { @@ -404,14 +348,11 @@ public com.google.protobuf.ByteString getTraceIdBytes() { public static final int TIMEOUT_FIELD_NUMBER = 6; private com.google.protobuf.Duration timeout_; /** - * - * *
    * Timeout for the HTTP request.
    * 
* * .google.protobuf.Duration timeout = 6; - * * @return Whether the timeout field is set. */ @java.lang.Override @@ -419,14 +360,11 @@ public boolean hasTimeout() { return timeout_ != null; } /** - * - * *
    * Timeout for the HTTP request.
    * 
* * .google.protobuf.Duration timeout = 6; - * * @return The timeout. */ @java.lang.Override @@ -434,8 +372,6 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** - * - * *
    * Timeout for the HTTP request.
    * 
@@ -448,7 +384,6 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -460,16 +395,15 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (payload_ != null) { output.writeMessage(2, getPayload()); } - if (endpoint_ - != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED - .getNumber()) { + if (endpoint_ != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED.getNumber()) { output.writeEnum(3, endpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { @@ -494,12 +428,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPayload()); } - if (endpoint_ - != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, endpoint_); + if (endpoint_ != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, endpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, project_); @@ -508,7 +442,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, traceId_); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTimeout()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getTimeout()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -518,25 +453,29 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.EgressRequest)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.EgressRequest other = - (com.google.cloud.apigeeconnect.v1.EgressRequest) obj; + com.google.cloud.apigeeconnect.v1.EgressRequest other = (com.google.cloud.apigeeconnect.v1.EgressRequest) obj; - if (!getId().equals(other.getId())) return false; + if (!getId() + .equals(other.getId())) return false; if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { - if (!getPayload().equals(other.getPayload())) return false; + if (!getPayload() + .equals(other.getPayload())) return false; } if (endpoint_ != other.endpoint_) return false; - if (!getProject().equals(other.getProject())) return false; - if (!getTraceId().equals(other.getTraceId())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getTraceId() + .equals(other.getTraceId())) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout().equals(other.getTimeout())) return false; + if (!getTimeout() + .equals(other.getTimeout())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -570,127 +509,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.EgressRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.EgressRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.EgressRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest 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; } /** - * - * *
    * gRPC request payload for tether.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.EgressRequest} */ - 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.apigeeconnect.v1.EgressRequest) com.google.cloud.apigeeconnect.v1.EgressRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.EgressRequest.class, - com.google.cloud.apigeeconnect.v1.EgressRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.EgressRequest.class, com.google.cloud.apigeeconnect.v1.EgressRequest.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.EgressRequest.newBuilder() @@ -698,15 +628,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(); @@ -734,9 +665,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; } @java.lang.Override @@ -755,8 +686,7 @@ public com.google.cloud.apigeeconnect.v1.EgressRequest build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.EgressRequest buildPartial() { - com.google.cloud.apigeeconnect.v1.EgressRequest result = - new com.google.cloud.apigeeconnect.v1.EgressRequest(this); + com.google.cloud.apigeeconnect.v1.EgressRequest result = new com.google.cloud.apigeeconnect.v1.EgressRequest(this); result.id_ = id_; if (payloadBuilder_ == null) { result.payload_ = payload_; @@ -779,39 +709,38 @@ public com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.EgressRequest) other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.EgressRequest)other); } else { super.mergeFrom(other); return this; @@ -819,8 +748,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.EgressRequest other) { - if (other == com.google.cloud.apigeeconnect.v1.EgressRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigeeconnect.v1.EgressRequest.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -873,20 +801,18 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** - * - * *
      * Unique identifier for the request.
      * 
* * string id = 1; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -895,21 +821,20 @@ public java.lang.String getId() { } } /** - * - * *
      * Unique identifier for the request.
      * 
* * string id = 1; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -917,61 +842,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Unique identifier for the request.
      * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * Unique identifier for the request.
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * Unique identifier for the request.
      * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -979,47 +897,34 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.apigeeconnect.v1.Payload payload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Payload, - com.google.cloud.apigeeconnect.v1.Payload.Builder, - com.google.cloud.apigeeconnect.v1.PayloadOrBuilder> - payloadBuilder_; + com.google.cloud.apigeeconnect.v1.Payload, com.google.cloud.apigeeconnect.v1.Payload.Builder, com.google.cloud.apigeeconnect.v1.PayloadOrBuilder> payloadBuilder_; /** - * - * *
      * Actual payload to send to agent.
      * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; - * * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** - * - * *
      * Actual payload to send to agent.
      * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; - * * @return The payload. */ public com.google.cloud.apigeeconnect.v1.Payload getPayload() { if (payloadBuilder_ == null) { - return payload_ == null - ? com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() - : payload_; + return payload_ == null ? com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() : payload_; } else { return payloadBuilder_.getMessage(); } } /** - * - * *
      * Actual payload to send to agent.
      * 
@@ -1040,15 +945,14 @@ public Builder setPayload(com.google.cloud.apigeeconnect.v1.Payload value) { return this; } /** - * - * *
      * Actual payload to send to agent.
      * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; */ - public Builder setPayload(com.google.cloud.apigeeconnect.v1.Payload.Builder builderForValue) { + public Builder setPayload( + com.google.cloud.apigeeconnect.v1.Payload.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -1059,8 +963,6 @@ public Builder setPayload(com.google.cloud.apigeeconnect.v1.Payload.Builder buil return this; } /** - * - * *
      * Actual payload to send to agent.
      * 
@@ -1071,9 +973,7 @@ public Builder mergePayload(com.google.cloud.apigeeconnect.v1.Payload value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = - com.google.cloud.apigeeconnect.v1.Payload.newBuilder(payload_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.apigeeconnect.v1.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); } else { payload_ = value; } @@ -1085,8 +985,6 @@ public Builder mergePayload(com.google.cloud.apigeeconnect.v1.Payload value) { return this; } /** - * - * *
      * Actual payload to send to agent.
      * 
@@ -1105,8 +1003,6 @@ public Builder clearPayload() { return this; } /** - * - * *
      * Actual payload to send to agent.
      * 
@@ -1114,13 +1010,11 @@ public Builder clearPayload() { * .google.cloud.apigeeconnect.v1.Payload payload = 2; */ public com.google.cloud.apigeeconnect.v1.Payload.Builder getPayloadBuilder() { - + onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** - * - * *
      * Actual payload to send to agent.
      * 
@@ -1131,14 +1025,11 @@ public com.google.cloud.apigeeconnect.v1.PayloadOrBuilder getPayloadOrBuilder() if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { - return payload_ == null - ? com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() - : payload_; + return payload_ == null ? + com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() : payload_; } } /** - * - * *
      * Actual payload to send to agent.
      * 
@@ -1146,17 +1037,14 @@ public com.google.cloud.apigeeconnect.v1.PayloadOrBuilder getPayloadOrBuilder() * .google.cloud.apigeeconnect.v1.Payload payload = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Payload, - com.google.cloud.apigeeconnect.v1.Payload.Builder, - com.google.cloud.apigeeconnect.v1.PayloadOrBuilder> + com.google.cloud.apigeeconnect.v1.Payload, com.google.cloud.apigeeconnect.v1.Payload.Builder, com.google.cloud.apigeeconnect.v1.PayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { - payloadBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Payload, - com.google.cloud.apigeeconnect.v1.Payload.Builder, - com.google.cloud.apigeeconnect.v1.PayloadOrBuilder>( - getPayload(), getParentForChildren(), isClean()); + payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Payload, com.google.cloud.apigeeconnect.v1.Payload.Builder, com.google.cloud.apigeeconnect.v1.PayloadOrBuilder>( + getPayload(), + getParentForChildren(), + isClean()); payload_ = null; } return payloadBuilder_; @@ -1164,67 +1052,51 @@ public com.google.cloud.apigeeconnect.v1.PayloadOrBuilder getPayloadOrBuilder() private int endpoint_ = 0; /** - * - * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * * @return The enum numeric value on the wire for endpoint. */ - @java.lang.Override - public int getEndpointValue() { + @java.lang.Override public int getEndpointValue() { return endpoint_; } /** - * - * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * * @param value The enum numeric value on the wire for endpoint to set. * @return This builder for chaining. */ public Builder setEndpointValue(int value) { - + endpoint_ = value; onChanged(); return this; } /** - * - * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * * @return The endpoint. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.TetherEndpoint result = - com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); - return result == null - ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED - : result; + com.google.cloud.apigeeconnect.v1.TetherEndpoint result = com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); + return result == null ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED : result; } /** - * - * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * * @param value The endpoint to set. * @return This builder for chaining. */ @@ -1232,24 +1104,21 @@ public Builder setEndpoint(com.google.cloud.apigeeconnect.v1.TetherEndpoint valu if (value == null) { throw new NullPointerException(); } - + endpoint_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * * @return This builder for chaining. */ public Builder clearEndpoint() { - + endpoint_ = 0; onChanged(); return this; @@ -1257,21 +1126,19 @@ public Builder clearEndpoint() { private java.lang.Object project_ = ""; /** - * - * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; - * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -1280,22 +1147,21 @@ public java.lang.String getProject() { } } /** - * - * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; - * * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -1303,64 +1169,57 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; - * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; - * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1368,20 +1227,18 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private java.lang.Object traceId_ = ""; /** - * - * *
      * Unique identifier for clients to trace their request/response.
      * 
* * string trace_id = 5; - * * @return The traceId. */ public java.lang.String getTraceId() { java.lang.Object ref = traceId_; 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(); traceId_ = s; return s; @@ -1390,21 +1247,20 @@ public java.lang.String getTraceId() { } } /** - * - * *
      * Unique identifier for clients to trace their request/response.
      * 
* * string trace_id = 5; - * * @return The bytes for traceId. */ - public com.google.protobuf.ByteString getTraceIdBytes() { + public com.google.protobuf.ByteString + getTraceIdBytes() { java.lang.Object ref = traceId_; 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); traceId_ = b; return b; } else { @@ -1412,61 +1268,54 @@ public com.google.protobuf.ByteString getTraceIdBytes() { } } /** - * - * *
      * Unique identifier for clients to trace their request/response.
      * 
* * string trace_id = 5; - * * @param value The traceId to set. * @return This builder for chaining. */ - public Builder setTraceId(java.lang.String value) { + public Builder setTraceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + traceId_ = value; onChanged(); return this; } /** - * - * *
      * Unique identifier for clients to trace their request/response.
      * 
* * string trace_id = 5; - * * @return This builder for chaining. */ public Builder clearTraceId() { - + traceId_ = getDefaultInstance().getTraceId(); onChanged(); return this; } /** - * - * *
      * Unique identifier for clients to trace their request/response.
      * 
* * string trace_id = 5; - * * @param value The bytes for traceId to set. * @return This builder for chaining. */ - public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { + public Builder setTraceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + traceId_ = value; onChanged(); return this; @@ -1474,33 +1323,24 @@ public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - timeoutBuilder_; + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; /** - * - * *
      * Timeout for the HTTP request.
      * 
* * .google.protobuf.Duration timeout = 6; - * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** - * - * *
      * Timeout for the HTTP request.
      * 
* * .google.protobuf.Duration timeout = 6; - * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -1511,8 +1351,6 @@ public com.google.protobuf.Duration getTimeout() { } } /** - * - * *
      * Timeout for the HTTP request.
      * 
@@ -1533,15 +1371,14 @@ public Builder setTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Timeout for the HTTP request.
      * 
* * .google.protobuf.Duration timeout = 6; */ - public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTimeout( + com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); onChanged(); @@ -1552,8 +1389,6 @@ public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) return this; } /** - * - * *
      * Timeout for the HTTP request.
      * 
@@ -1564,7 +1399,7 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { if (timeout_ != null) { timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); } else { timeout_ = value; } @@ -1576,8 +1411,6 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** - * - * *
      * Timeout for the HTTP request.
      * 
@@ -1596,8 +1429,6 @@ public Builder clearTimeout() { return this; } /** - * - * *
      * Timeout for the HTTP request.
      * 
@@ -1605,13 +1436,11 @@ public Builder clearTimeout() { * .google.protobuf.Duration timeout = 6; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - + onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** - * - * *
      * Timeout for the HTTP request.
      * 
@@ -1622,12 +1451,11 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { if (timeoutBuilder_ != null) { return timeoutBuilder_.getMessageOrBuilder(); } else { - return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; + return timeout_ == null ? + com.google.protobuf.Duration.getDefaultInstance() : timeout_; } } /** - * - * *
      * Timeout for the HTTP request.
      * 
@@ -1635,24 +1463,21 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * .google.protobuf.Duration timeout = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getTimeoutFieldBuilder() { if (timeoutBuilder_ == null) { - timeoutBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getTimeout(), getParentForChildren(), isClean()); + timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( + getTimeout(), + getParentForChildren(), + isClean()); timeout_ = null; } return timeoutBuilder_; } - @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); } @@ -1662,12 +1487,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.EgressRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.EgressRequest) private static final com.google.cloud.apigeeconnect.v1.EgressRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.EgressRequest(); } @@ -1676,16 +1501,16 @@ public static com.google.cloud.apigeeconnect.v1.EgressRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EgressRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EgressRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EgressRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EgressRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1700,4 +1525,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.EgressRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java similarity index 75% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java index ac0e838..97c5898 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java @@ -1,80 +1,51 @@ -/* - * 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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface EgressRequestOrBuilder - extends +public interface EgressRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.EgressRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Unique identifier for the request.
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Unique identifier for the request.
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Actual payload to send to agent.
    * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; - * * @return Whether the payload field is set. */ boolean hasPayload(); /** - * - * *
    * Actual payload to send to agent.
    * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; - * * @return The payload. */ com.google.cloud.apigeeconnect.v1.Payload getPayload(); /** - * - * *
    * Actual payload to send to agent.
    * 
@@ -84,109 +55,85 @@ public interface EgressRequestOrBuilder com.google.cloud.apigeeconnect.v1.PayloadOrBuilder getPayloadOrBuilder(); /** - * - * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * * @return The enum numeric value on the wire for endpoint. */ int getEndpointValue(); /** - * - * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; - * * @return The endpoint. */ com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint(); /** - * - * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; - * * @return The project. */ java.lang.String getProject(); /** - * - * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * Unique identifier for clients to trace their request/response.
    * 
* * string trace_id = 5; - * * @return The traceId. */ java.lang.String getTraceId(); /** - * - * *
    * Unique identifier for clients to trace their request/response.
    * 
* * string trace_id = 5; - * * @return The bytes for traceId. */ - com.google.protobuf.ByteString getTraceIdBytes(); + com.google.protobuf.ByteString + getTraceIdBytes(); /** - * - * *
    * Timeout for the HTTP request.
    * 
* * .google.protobuf.Duration timeout = 6; - * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** - * - * *
    * Timeout for the HTTP request.
    * 
* * .google.protobuf.Duration timeout = 6; - * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** - * - * *
    * Timeout for the HTTP request.
    * 
diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java similarity index 72% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java index a1594ad..b0d25db 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * gRPC response payload for tether.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.EgressResponse} */ -public final class EgressResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class EgressResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.EgressResponse) EgressResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use EgressResponse.newBuilder() to construct. private EgressResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private EgressResponse() { id_ = ""; project_ = ""; @@ -47,15 +29,16 @@ private EgressResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new EgressResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private EgressResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,78 +57,69 @@ private EgressResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: - { - com.google.cloud.apigeeconnect.v1.HttpResponse.Builder subBuilder = null; - if (httpResponse_ != null) { - subBuilder = httpResponse_.toBuilder(); - } - httpResponse_ = - input.readMessage( - com.google.cloud.apigeeconnect.v1.HttpResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpResponse_); - httpResponse_ = subBuilder.buildPartial(); - } - - break; + id_ = s; + break; + } + case 18: { + com.google.cloud.apigeeconnect.v1.HttpResponse.Builder subBuilder = null; + if (httpResponse_ != null) { + subBuilder = httpResponse_.toBuilder(); } - case 26: - { - com.google.rpc.Status.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); - } - - break; + httpResponse_ = input.readMessage(com.google.cloud.apigeeconnect.v1.HttpResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpResponse_); + httpResponse_ = subBuilder.buildPartial(); } - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; + break; + } + case 26: { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); } - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - - traceId_ = s; - break; + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); } - case 48: - { - int rawValue = input.readEnum(); - endpoint_ = rawValue; - break; - } - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + project_ = s; + break; + } + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + + traceId_ = s; + break; + } + case 48: { + int rawValue = input.readEnum(); + + endpoint_ = rawValue; + break; + } + case 58: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -153,39 +127,34 @@ private EgressResponse( } 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.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.EgressResponse.class, - com.google.cloud.apigeeconnect.v1.EgressResponse.Builder.class); + com.google.cloud.apigeeconnect.v1.EgressResponse.class, com.google.cloud.apigeeconnect.v1.EgressResponse.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * Unique identifier for the response. Matches the EgressRequest's id.
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -194,29 +163,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** - * - * *
    * Unique identifier for the response. Matches the EgressRequest's id.
    * 
* * string id = 1; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -227,14 +196,11 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int HTTP_RESPONSE_FIELD_NUMBER = 2; private com.google.cloud.apigeeconnect.v1.HttpResponse httpResponse_; /** - * - * *
    * HttpResponse.
    * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; - * * @return Whether the httpResponse field is set. */ @java.lang.Override @@ -242,25 +208,18 @@ public boolean hasHttpResponse() { return httpResponse_ != null; } /** - * - * *
    * HttpResponse.
    * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; - * * @return The httpResponse. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.HttpResponse getHttpResponse() { - return httpResponse_ == null - ? com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() - : httpResponse_; + return httpResponse_ == null ? com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() : httpResponse_; } /** - * - * *
    * HttpResponse.
    * 
@@ -275,14 +234,11 @@ public com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder getHttpResponseOr public static final int STATUS_FIELD_NUMBER = 3; private com.google.rpc.Status status_; /** - * - * *
    * Errors from application when handling the http request.
    * 
* * .google.rpc.Status status = 3; - * * @return Whether the status field is set. */ @java.lang.Override @@ -290,14 +246,11 @@ public boolean hasStatus() { return status_ != null; } /** - * - * *
    * Errors from application when handling the http request.
    * 
* * .google.rpc.Status status = 3; - * * @return The status. */ @java.lang.Override @@ -305,8 +258,6 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** - * - * *
    * Errors from application when handling the http request.
    * 
@@ -321,15 +272,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { public static final int PROJECT_FIELD_NUMBER = 4; private volatile java.lang.Object project_; /** - * - * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; - * * @return The project. */ @java.lang.Override @@ -338,30 +286,30 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** - * - * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; - * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -372,15 +320,12 @@ public com.google.protobuf.ByteString getProjectBytes() { public static final int TRACE_ID_FIELD_NUMBER = 5; private volatile java.lang.Object traceId_; /** - * - * *
    * Unique identifier for clients to trace their request/response. Matches the
    * EgressRequest's trace id
    * 
* * string trace_id = 5; - * * @return The traceId. */ @java.lang.Override @@ -389,30 +334,30 @@ public java.lang.String getTraceId() { 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(); traceId_ = s; return s; } } /** - * - * *
    * Unique identifier for clients to trace their request/response. Matches the
    * EgressRequest's trace id
    * 
* * string trace_id = 5; - * * @return The bytes for traceId. */ @java.lang.Override - public com.google.protobuf.ByteString getTraceIdBytes() { + public com.google.protobuf.ByteString + getTraceIdBytes() { java.lang.Object ref = traceId_; 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); traceId_ = b; return b; } else { @@ -423,51 +368,39 @@ public com.google.protobuf.ByteString getTraceIdBytes() { public static final int ENDPOINT_FIELD_NUMBER = 6; private int endpoint_; /** - * - * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * * @return The enum numeric value on the wire for endpoint. */ - @java.lang.Override - public int getEndpointValue() { + @java.lang.Override public int getEndpointValue() { return endpoint_; } /** - * - * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * * @return The endpoint. */ - @java.lang.Override - public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { + @java.lang.Override public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.TetherEndpoint result = - com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); + com.google.cloud.apigeeconnect.v1.TetherEndpoint result = com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); return result == null ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED : result; } public static final int NAME_FIELD_NUMBER = 7; private volatile java.lang.Object name_; /** - * - * *
    * Name is the full resource path of endpoint.
    * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
    * 
* * string name = 7; - * * @return The name. */ @java.lang.Override @@ -476,30 +409,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** - * - * *
    * Name is the full resource path of endpoint.
    * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
    * 
* * string name = 7; - * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -508,7 +441,6 @@ public com.google.protobuf.ByteString getNameBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -520,7 +452,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -536,9 +469,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, traceId_); } - if (endpoint_ - != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED - .getNumber()) { + if (endpoint_ != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED.getNumber()) { output.writeEnum(6, endpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { @@ -557,10 +488,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (httpResponse_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHttpResponse()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getHttpResponse()); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, project_); @@ -568,10 +501,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, traceId_); } - if (endpoint_ - != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, endpoint_); + if (endpoint_ != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, endpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); @@ -584,27 +516,32 @@ 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.apigeeconnect.v1.EgressResponse)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.EgressResponse other = - (com.google.cloud.apigeeconnect.v1.EgressResponse) obj; + com.google.cloud.apigeeconnect.v1.EgressResponse other = (com.google.cloud.apigeeconnect.v1.EgressResponse) obj; - if (!getId().equals(other.getId())) return false; + if (!getId() + .equals(other.getId())) return false; if (hasHttpResponse() != other.hasHttpResponse()) return false; if (hasHttpResponse()) { - if (!getHttpResponse().equals(other.getHttpResponse())) return false; + if (!getHttpResponse() + .equals(other.getHttpResponse())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; } - if (!getProject().equals(other.getProject())) return false; - if (!getTraceId().equals(other.getTraceId())) return false; + if (!getProject() + .equals(other.getProject())) return false; + if (!getTraceId() + .equals(other.getTraceId())) return false; if (endpoint_ != other.endpoint_) return false; - if (!getName().equals(other.getName())) return false; + if (!getName() + .equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -639,127 +576,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.EgressResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.EgressResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.EgressResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.EgressResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse 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; } /** - * - * *
    * gRPC response payload for tether.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.EgressResponse} */ - 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.apigeeconnect.v1.EgressResponse) com.google.cloud.apigeeconnect.v1.EgressResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.EgressResponse.class, - com.google.cloud.apigeeconnect.v1.EgressResponse.Builder.class); + com.google.cloud.apigeeconnect.v1.EgressResponse.class, com.google.cloud.apigeeconnect.v1.EgressResponse.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.EgressResponse.newBuilder() @@ -767,15 +695,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(); @@ -805,9 +734,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; } @java.lang.Override @@ -826,8 +755,7 @@ public com.google.cloud.apigeeconnect.v1.EgressResponse build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.EgressResponse buildPartial() { - com.google.cloud.apigeeconnect.v1.EgressResponse result = - new com.google.cloud.apigeeconnect.v1.EgressResponse(this); + com.google.cloud.apigeeconnect.v1.EgressResponse result = new com.google.cloud.apigeeconnect.v1.EgressResponse(this); result.id_ = id_; if (httpResponseBuilder_ == null) { result.httpResponse_ = httpResponse_; @@ -851,39 +779,38 @@ public com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.EgressResponse) other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.EgressResponse)other); } else { super.mergeFrom(other); return this; @@ -891,8 +818,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.EgressResponse other) { - if (other == com.google.cloud.apigeeconnect.v1.EgressResponse.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigeeconnect.v1.EgressResponse.getDefaultInstance()) return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -949,20 +875,18 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** - * - * *
      * Unique identifier for the response. Matches the EgressRequest's id.
      * 
* * string id = 1; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -971,21 +895,20 @@ public java.lang.String getId() { } } /** - * - * *
      * Unique identifier for the response. Matches the EgressRequest's id.
      * 
* * string id = 1; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -993,61 +916,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Unique identifier for the response. Matches the EgressRequest's id.
      * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * Unique identifier for the response. Matches the EgressRequest's id.
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * Unique identifier for the response. Matches the EgressRequest's id.
      * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -1055,47 +971,34 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private com.google.cloud.apigeeconnect.v1.HttpResponse httpResponse_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpResponse, - com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, - com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder> - httpResponseBuilder_; + com.google.cloud.apigeeconnect.v1.HttpResponse, com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder> httpResponseBuilder_; /** - * - * *
      * HttpResponse.
      * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; - * * @return Whether the httpResponse field is set. */ public boolean hasHttpResponse() { return httpResponseBuilder_ != null || httpResponse_ != null; } /** - * - * *
      * HttpResponse.
      * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; - * * @return The httpResponse. */ public com.google.cloud.apigeeconnect.v1.HttpResponse getHttpResponse() { if (httpResponseBuilder_ == null) { - return httpResponse_ == null - ? com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() - : httpResponse_; + return httpResponse_ == null ? com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() : httpResponse_; } else { return httpResponseBuilder_.getMessage(); } } /** - * - * *
      * HttpResponse.
      * 
@@ -1116,8 +1019,6 @@ public Builder setHttpResponse(com.google.cloud.apigeeconnect.v1.HttpResponse va return this; } /** - * - * *
      * HttpResponse.
      * 
@@ -1136,8 +1037,6 @@ public Builder setHttpResponse( return this; } /** - * - * *
      * HttpResponse.
      * 
@@ -1148,9 +1047,7 @@ public Builder mergeHttpResponse(com.google.cloud.apigeeconnect.v1.HttpResponse if (httpResponseBuilder_ == null) { if (httpResponse_ != null) { httpResponse_ = - com.google.cloud.apigeeconnect.v1.HttpResponse.newBuilder(httpResponse_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.apigeeconnect.v1.HttpResponse.newBuilder(httpResponse_).mergeFrom(value).buildPartial(); } else { httpResponse_ = value; } @@ -1162,8 +1059,6 @@ public Builder mergeHttpResponse(com.google.cloud.apigeeconnect.v1.HttpResponse return this; } /** - * - * *
      * HttpResponse.
      * 
@@ -1182,8 +1077,6 @@ public Builder clearHttpResponse() { return this; } /** - * - * *
      * HttpResponse.
      * 
@@ -1191,13 +1084,11 @@ public Builder clearHttpResponse() { * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; */ public com.google.cloud.apigeeconnect.v1.HttpResponse.Builder getHttpResponseBuilder() { - + onChanged(); return getHttpResponseFieldBuilder().getBuilder(); } /** - * - * *
      * HttpResponse.
      * 
@@ -1208,14 +1099,11 @@ public com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder getHttpResponseOr if (httpResponseBuilder_ != null) { return httpResponseBuilder_.getMessageOrBuilder(); } else { - return httpResponse_ == null - ? com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() - : httpResponse_; + return httpResponse_ == null ? + com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() : httpResponse_; } } /** - * - * *
      * HttpResponse.
      * 
@@ -1223,17 +1111,14 @@ public com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder getHttpResponseOr * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpResponse, - com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, - com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder> + com.google.cloud.apigeeconnect.v1.HttpResponse, com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder> getHttpResponseFieldBuilder() { if (httpResponseBuilder_ == null) { - httpResponseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpResponse, - com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, - com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder>( - getHttpResponse(), getParentForChildren(), isClean()); + httpResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.HttpResponse, com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder>( + getHttpResponse(), + getParentForChildren(), + isClean()); httpResponse_ = null; } return httpResponseBuilder_; @@ -1241,31 +1126,24 @@ public com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder getHttpResponseOr private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; /** - * - * *
      * Errors from application when handling the http request.
      * 
* * .google.rpc.Status status = 3; - * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** - * - * *
      * Errors from application when handling the http request.
      * 
* * .google.rpc.Status status = 3; - * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -1276,8 +1154,6 @@ public com.google.rpc.Status getStatus() { } } /** - * - * *
      * Errors from application when handling the http request.
      * 
@@ -1298,15 +1174,14 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** - * - * *
      * Errors from application when handling the http request.
      * 
* * .google.rpc.Status status = 3; */ - public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus( + com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -1317,8 +1192,6 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { return this; } /** - * - * *
      * Errors from application when handling the http request.
      * 
@@ -1328,7 +1201,8 @@ public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (status_ != null) { - status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + status_ = + com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } @@ -1340,8 +1214,6 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** - * - * *
      * Errors from application when handling the http request.
      * 
@@ -1360,8 +1232,6 @@ public Builder clearStatus() { return this; } /** - * - * *
      * Errors from application when handling the http request.
      * 
@@ -1369,13 +1239,11 @@ public Builder clearStatus() { * .google.rpc.Status status = 3; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** - * - * *
      * Errors from application when handling the http request.
      * 
@@ -1386,12 +1254,11 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? + com.google.rpc.Status.getDefaultInstance() : status_; } } /** - * - * *
      * Errors from application when handling the http request.
      * 
@@ -1399,14 +1266,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); + statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( + getStatus(), + getParentForChildren(), + isClean()); status_ = null; } return statusBuilder_; @@ -1414,21 +1281,19 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { private java.lang.Object project_ = ""; /** - * - * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; - * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -1437,22 +1302,21 @@ public java.lang.String getProject() { } } /** - * - * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; - * * @return The bytes for project. */ - public com.google.protobuf.ByteString getProjectBytes() { + public com.google.protobuf.ByteString + getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -1460,64 +1324,57 @@ public com.google.protobuf.ByteString getProjectBytes() { } } /** - * - * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; - * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject(java.lang.String value) { + public Builder setProject( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** - * - * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; - * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** - * - * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; - * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes(com.google.protobuf.ByteString value) { + public Builder setProjectBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1525,21 +1382,19 @@ public Builder setProjectBytes(com.google.protobuf.ByteString value) { private java.lang.Object traceId_ = ""; /** - * - * *
      * Unique identifier for clients to trace their request/response. Matches the
      * EgressRequest's trace id
      * 
* * string trace_id = 5; - * * @return The traceId. */ public java.lang.String getTraceId() { java.lang.Object ref = traceId_; 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(); traceId_ = s; return s; @@ -1548,22 +1403,21 @@ public java.lang.String getTraceId() { } } /** - * - * *
      * Unique identifier for clients to trace their request/response. Matches the
      * EgressRequest's trace id
      * 
* * string trace_id = 5; - * * @return The bytes for traceId. */ - public com.google.protobuf.ByteString getTraceIdBytes() { + public com.google.protobuf.ByteString + getTraceIdBytes() { java.lang.Object ref = traceId_; 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); traceId_ = b; return b; } else { @@ -1571,64 +1425,57 @@ public com.google.protobuf.ByteString getTraceIdBytes() { } } /** - * - * *
      * Unique identifier for clients to trace their request/response. Matches the
      * EgressRequest's trace id
      * 
* * string trace_id = 5; - * * @param value The traceId to set. * @return This builder for chaining. */ - public Builder setTraceId(java.lang.String value) { + public Builder setTraceId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + traceId_ = value; onChanged(); return this; } /** - * - * *
      * Unique identifier for clients to trace their request/response. Matches the
      * EgressRequest's trace id
      * 
* * string trace_id = 5; - * * @return This builder for chaining. */ public Builder clearTraceId() { - + traceId_ = getDefaultInstance().getTraceId(); onChanged(); return this; } /** - * - * *
      * Unique identifier for clients to trace their request/response. Matches the
      * EgressRequest's trace id
      * 
* * string trace_id = 5; - * * @param value The bytes for traceId to set. * @return This builder for chaining. */ - public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { + public Builder setTraceIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + traceId_ = value; onChanged(); return this; @@ -1636,67 +1483,51 @@ public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { private int endpoint_ = 0; /** - * - * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * * @return The enum numeric value on the wire for endpoint. */ - @java.lang.Override - public int getEndpointValue() { + @java.lang.Override public int getEndpointValue() { return endpoint_; } /** - * - * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * * @param value The enum numeric value on the wire for endpoint to set. * @return This builder for chaining. */ public Builder setEndpointValue(int value) { - + endpoint_ = value; onChanged(); return this; } /** - * - * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * * @return The endpoint. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.TetherEndpoint result = - com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); - return result == null - ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED - : result; + com.google.cloud.apigeeconnect.v1.TetherEndpoint result = com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); + return result == null ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED : result; } /** - * - * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * * @param value The endpoint to set. * @return This builder for chaining. */ @@ -1704,24 +1535,21 @@ public Builder setEndpoint(com.google.cloud.apigeeconnect.v1.TetherEndpoint valu if (value == null) { throw new NullPointerException(); } - + endpoint_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * * @return This builder for chaining. */ public Builder clearEndpoint() { - + endpoint_ = 0; onChanged(); return this; @@ -1729,21 +1557,19 @@ public Builder clearEndpoint() { private java.lang.Object name_ = ""; /** - * - * *
      * Name is the full resource path of endpoint.
      * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
      * 
* * string name = 7; - * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1752,22 +1578,21 @@ public java.lang.String getName() { } } /** - * - * *
      * Name is the full resource path of endpoint.
      * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
      * 
* * string name = 7; - * * @return The bytes for name. */ - public com.google.protobuf.ByteString getNameBytes() { + public com.google.protobuf.ByteString + getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); name_ = b; return b; } else { @@ -1775,71 +1600,64 @@ public com.google.protobuf.ByteString getNameBytes() { } } /** - * - * *
      * Name is the full resource path of endpoint.
      * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
      * 
* * string name = 7; - * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setName( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** - * - * *
      * Name is the full resource path of endpoint.
      * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
      * 
* * string name = 7; - * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** - * - * *
      * Name is the full resource path of endpoint.
      * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
      * 
* * string name = 7; - * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1849,12 +1667,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.EgressResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.EgressResponse) private static final com.google.cloud.apigeeconnect.v1.EgressResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.EgressResponse(); } @@ -1863,16 +1681,16 @@ public static com.google.cloud.apigeeconnect.v1.EgressResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EgressResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EgressResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EgressResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EgressResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1887,4 +1705,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.EgressResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java similarity index 77% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java index a01adda..b1b2fe0 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java @@ -1,80 +1,51 @@ -/* - * 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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface EgressResponseOrBuilder - extends +public interface EgressResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.EgressResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Unique identifier for the response. Matches the EgressRequest's id.
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * Unique identifier for the response. Matches the EgressRequest's id.
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * HttpResponse.
    * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; - * * @return Whether the httpResponse field is set. */ boolean hasHttpResponse(); /** - * - * *
    * HttpResponse.
    * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; - * * @return The httpResponse. */ com.google.cloud.apigeeconnect.v1.HttpResponse getHttpResponse(); /** - * - * *
    * HttpResponse.
    * 
@@ -84,32 +55,24 @@ public interface EgressResponseOrBuilder com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder getHttpResponseOrBuilder(); /** - * - * *
    * Errors from application when handling the http request.
    * 
* * .google.rpc.Status status = 3; - * * @return Whether the status field is set. */ boolean hasStatus(); /** - * - * *
    * Errors from application when handling the http request.
    * 
* * .google.rpc.Status status = 3; - * * @return The status. */ com.google.rpc.Status getStatus(); /** - * - * *
    * Errors from application when handling the http request.
    * 
@@ -119,108 +82,87 @@ public interface EgressResponseOrBuilder com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** - * - * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; - * * @return The project. */ java.lang.String getProject(); /** - * - * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; - * * @return The bytes for project. */ - com.google.protobuf.ByteString getProjectBytes(); + com.google.protobuf.ByteString + getProjectBytes(); /** - * - * *
    * Unique identifier for clients to trace their request/response. Matches the
    * EgressRequest's trace id
    * 
* * string trace_id = 5; - * * @return The traceId. */ java.lang.String getTraceId(); /** - * - * *
    * Unique identifier for clients to trace their request/response. Matches the
    * EgressRequest's trace id
    * 
* * string trace_id = 5; - * * @return The bytes for traceId. */ - com.google.protobuf.ByteString getTraceIdBytes(); + com.google.protobuf.ByteString + getTraceIdBytes(); /** - * - * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * * @return The enum numeric value on the wire for endpoint. */ int getEndpointValue(); /** - * - * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; - * * @return The endpoint. */ com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint(); /** - * - * *
    * Name is the full resource path of endpoint.
    * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
    * 
* * string name = 7; - * * @return The name. */ java.lang.String getName(); /** - * - * *
    * Name is the full resource path of endpoint.
    * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
    * 
* * string name = 7; - * * @return The bytes for name. */ - com.google.protobuf.ByteString getNameBytes(); + com.google.protobuf.ByteString + getNameBytes(); } diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java similarity index 100% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java similarity index 69% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java index af21519..adc104e 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * The http headers.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.Header} */ -public final class Header extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Header extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.Header) HeaderOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Header() { key_ = ""; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -44,15 +26,16 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -72,30 +55,28 @@ private Header( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - values_.add(s); - break; + key_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + values_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -103,7 +84,8 @@ private Header( } 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)) { values_ = values_.getUnmodifiableView(); @@ -112,27 +94,23 @@ private Header( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Header.class, - com.google.cloud.apigeeconnect.v1.Header.Builder.class); + com.google.cloud.apigeeconnect.v1.Header.class, com.google.cloud.apigeeconnect.v1.Header.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * string key = 1; - * * @return The key. */ @java.lang.Override @@ -141,7 +119,8 @@ public java.lang.String getKey() { 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(); key_ = s; return s; @@ -149,15 +128,16 @@ public java.lang.String getKey() { } /** * string key = 1; - * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; 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); key_ = b; return b; } else { @@ -169,15 +149,14 @@ public com.google.protobuf.ByteString getKeyBytes() { private com.google.protobuf.LazyStringList values_; /** * repeated string values = 2; - * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList getValuesList() { + public com.google.protobuf.ProtocolStringList + getValuesList() { return values_; } /** * repeated string values = 2; - * * @return The count of values. */ public int getValuesCount() { @@ -185,7 +164,6 @@ public int getValuesCount() { } /** * repeated string values = 2; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -194,16 +172,15 @@ public java.lang.String getValues(int index) { } /** * repeated string values = 2; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString getValuesBytes(int index) { + public com.google.protobuf.ByteString + getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -215,7 +192,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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -250,15 +228,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.apigeeconnect.v1.Header)) { return super.equals(obj); } com.google.cloud.apigeeconnect.v1.Header other = (com.google.cloud.apigeeconnect.v1.Header) obj; - if (!getKey().equals(other.getKey())) return false; - if (!getValuesList().equals(other.getValuesList())) return false; + if (!getKey() + .equals(other.getKey())) return false; + if (!getValuesList() + .equals(other.getValuesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -281,127 +261,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.Header parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.Header parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.Header parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header 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 http headers.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.Header} */ - 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.apigeeconnect.v1.Header) com.google.cloud.apigeeconnect.v1.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Header.class, - com.google.cloud.apigeeconnect.v1.Header.Builder.class); + com.google.cloud.apigeeconnect.v1.Header.class, com.google.cloud.apigeeconnect.v1.Header.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.Header.newBuilder() @@ -409,15 +380,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(); @@ -429,9 +401,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; } @java.lang.Override @@ -450,8 +422,7 @@ public com.google.cloud.apigeeconnect.v1.Header build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.Header buildPartial() { - com.google.cloud.apigeeconnect.v1.Header result = - new com.google.cloud.apigeeconnect.v1.Header(this); + com.google.cloud.apigeeconnect.v1.Header result = new com.google.cloud.apigeeconnect.v1.Header(this); int from_bitField0_ = bitField0_; result.key_ = key_; if (((bitField0_ & 0x00000001) != 0)) { @@ -467,39 +438,38 @@ public com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.Header) other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.Header)other); } else { super.mergeFrom(other); return this; @@ -550,19 +520,18 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object key_ = ""; /** * string key = 1; - * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; @@ -572,14 +541,15 @@ public java.lang.String getKey() { } /** * string key = 1; - * * @return The bytes for key. */ - public com.google.protobuf.ByteString getKeyBytes() { + public com.google.protobuf.ByteString + getKeyBytes() { java.lang.Object ref = key_; 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); key_ = b; return b; } else { @@ -588,67 +558,63 @@ public com.google.protobuf.ByteString getKeyBytes() { } /** * string key = 1; - * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey(java.lang.String value) { + public Builder setKey( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** * string key = 1; - * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * string key = 1; - * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes(com.google.protobuf.ByteString value) { + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList values_ = - com.google.protobuf.LazyStringArrayList.EMPTY; - + private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; - } + } } /** * repeated string values = 2; - * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList getValuesList() { + public com.google.protobuf.ProtocolStringList + getValuesList() { return values_.getUnmodifiableView(); } /** * repeated string values = 2; - * * @return The count of values. */ public int getValuesCount() { @@ -656,7 +622,6 @@ public int getValuesCount() { } /** * repeated string values = 2; - * * @param index The index of the element to return. * @return The values at the given index. */ @@ -665,59 +630,59 @@ public java.lang.String getValues(int index) { } /** * repeated string values = 2; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString getValuesBytes(int index) { + public com.google.protobuf.ByteString + getValuesBytes(int index) { return values_.getByteString(index); } /** * repeated string values = 2; - * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues(int index, java.lang.String value) { + public Builder setValues( + int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * repeated string values = 2; - * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues(java.lang.String value) { + public Builder addValues( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * repeated string values = 2; - * * @param values The values to add. * @return This builder for chaining. */ - public Builder addAllValues(java.lang.Iterable values) { + public Builder addAllValues( + java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, values_); onChanged(); return this; } /** * repeated string values = 2; - * * @return This builder for chaining. */ public Builder clearValues() { @@ -728,23 +693,23 @@ public Builder clearValues() { } /** * repeated string values = 2; - * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes(com.google.protobuf.ByteString value) { + public Builder addValuesBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -754,12 +719,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.Header) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.Header) private static final com.google.cloud.apigeeconnect.v1.Header DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.Header(); } @@ -768,16 +733,16 @@ public static com.google.cloud.apigeeconnect.v1.Header getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
PARSER = - new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -792,4 +757,6 @@ public com.google.protobuf.Parser
getParserForType() { public com.google.cloud.apigeeconnect.v1.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java similarity index 55% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java index dbf01d0..bbb5d0b 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java @@ -1,65 +1,46 @@ -/* - * 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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface HeaderOrBuilder - extends +public interface HeaderOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.Header) com.google.protobuf.MessageOrBuilder { /** * string key = 1; - * * @return The key. */ java.lang.String getKey(); /** * string key = 1; - * * @return The bytes for key. */ - com.google.protobuf.ByteString getKeyBytes(); + com.google.protobuf.ByteString + getKeyBytes(); /** * repeated string values = 2; - * * @return A list containing the values. */ - java.util.List getValuesList(); + java.util.List + getValuesList(); /** * repeated string values = 2; - * * @return The count of values. */ int getValuesCount(); /** * repeated string values = 2; - * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** * repeated string values = 2; - * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString getValuesBytes(int index); + com.google.protobuf.ByteString + getValuesBytes(int index); } diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java similarity index 73% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java index a592352..ebb082d 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * The proto definition of http request.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.HttpRequest} */ -public final class HttpRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HttpRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.HttpRequest) HttpRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HttpRequest.newBuilder() to construct. private HttpRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HttpRequest() { id_ = ""; method_ = ""; @@ -46,15 +28,16 @@ private HttpRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HttpRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HttpRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,59 +57,52 @@ private HttpRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - method_ = s; - break; - } - case 26: - { - com.google.cloud.apigeeconnect.v1.Url.Builder subBuilder = null; - if (url_ != null) { - subBuilder = url_.toBuilder(); - } - url_ = - input.readMessage( - com.google.cloud.apigeeconnect.v1.Url.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(url_); - url_ = subBuilder.buildPartial(); - } + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - break; + method_ = s; + break; + } + case 26: { + com.google.cloud.apigeeconnect.v1.Url.Builder subBuilder = null; + if (url_ != null) { + subBuilder = url_.toBuilder(); } - case 34: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.apigeeconnect.v1.Header.parser(), extensionRegistry)); - break; + url_ = input.readMessage(com.google.cloud.apigeeconnect.v1.Url.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(url_); + url_ = subBuilder.buildPartial(); } - case 42: - { - body_ = input.readBytes(); - break; + + break; + } + case 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + headers_.add( + input.readMessage(com.google.cloud.apigeeconnect.v1.Header.parser(), extensionRegistry)); + break; + } + case 42: { + + body_ = input.readBytes(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -134,7 +110,8 @@ private HttpRequest( } 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)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -143,33 +120,27 @@ private HttpRequest( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.HttpRequest.class, - com.google.cloud.apigeeconnect.v1.HttpRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.HttpRequest.class, com.google.cloud.apigeeconnect.v1.HttpRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * A unique identifier for the request.
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -178,29 +149,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** - * - * *
    * A unique identifier for the request.
    * 
* * string id = 1; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -211,15 +182,12 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int METHOD_FIELD_NUMBER = 2; private volatile java.lang.Object method_; /** - * - * *
    * The HTTP request method.
    * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
    * 
* * string method = 2; - * * @return The method. */ @java.lang.Override @@ -228,30 +196,30 @@ public java.lang.String getMethod() { 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(); method_ = s; return s; } } /** - * - * *
    * The HTTP request method.
    * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
    * 
* * string method = 2; - * * @return The bytes for method. */ @java.lang.Override - public com.google.protobuf.ByteString getMethodBytes() { + public com.google.protobuf.ByteString + getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -262,14 +230,11 @@ public com.google.protobuf.ByteString getMethodBytes() { public static final int URL_FIELD_NUMBER = 3; private com.google.cloud.apigeeconnect.v1.Url url_; /** - * - * *
    * The HTTP request URL.
    * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; - * * @return Whether the url field is set. */ @java.lang.Override @@ -277,14 +242,11 @@ public boolean hasUrl() { return url_ != null; } /** - * - * *
    * The HTTP request URL.
    * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; - * * @return The url. */ @java.lang.Override @@ -292,8 +254,6 @@ public com.google.cloud.apigeeconnect.v1.Url getUrl() { return url_ == null ? com.google.cloud.apigeeconnect.v1.Url.getDefaultInstance() : url_; } /** - * - * *
    * The HTTP request URL.
    * 
@@ -308,8 +268,6 @@ public com.google.cloud.apigeeconnect.v1.UrlOrBuilder getUrlOrBuilder() { public static final int HEADERS_FIELD_NUMBER = 4; private java.util.List headers_; /** - * - * *
    * The HTTP request headers.
    * 
@@ -321,8 +279,6 @@ public java.util.List getHeadersList() return headers_; } /** - * - * *
    * The HTTP request headers.
    * 
@@ -330,13 +286,11 @@ public java.util.List getHeadersList() * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ @java.lang.Override - public java.util.List + public java.util.List getHeadersOrBuilderList() { return headers_; } /** - * - * *
    * The HTTP request headers.
    * 
@@ -348,8 +302,6 @@ public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * The HTTP request headers.
    * 
@@ -361,8 +313,6 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { return headers_.get(index); } /** - * - * *
    * The HTTP request headers.
    * 
@@ -370,21 +320,19 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ @java.lang.Override - public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index) { + public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( + int index) { return headers_.get(index); } public static final int BODY_FIELD_NUMBER = 5; private com.google.protobuf.ByteString body_; /** - * - * *
    * HTTP request body.
    * 
* * bytes body = 5; - * * @return The body. */ @java.lang.Override @@ -393,7 +341,6 @@ public com.google.protobuf.ByteString getBody() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -405,7 +352,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -437,13 +385,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); } if (url_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUrl()); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getUrl()); } for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, headers_.get(i)); } if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, body_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(5, body_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -453,22 +404,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.HttpRequest)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.HttpRequest other = - (com.google.cloud.apigeeconnect.v1.HttpRequest) obj; + com.google.cloud.apigeeconnect.v1.HttpRequest other = (com.google.cloud.apigeeconnect.v1.HttpRequest) obj; - if (!getId().equals(other.getId())) return false; - if (!getMethod().equals(other.getMethod())) return false; + if (!getId() + .equals(other.getId())) return false; + if (!getMethod() + .equals(other.getMethod())) return false; if (hasUrl() != other.hasUrl()) return false; if (hasUrl()) { - if (!getUrl().equals(other.getUrl())) return false; + if (!getUrl() + .equals(other.getUrl())) return false; } - if (!getHeadersList().equals(other.getHeadersList())) return false; - if (!getBody().equals(other.getBody())) return false; + if (!getHeadersList() + .equals(other.getHeadersList())) return false; + if (!getBody() + .equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -499,127 +454,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.HttpRequest parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.HttpRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.HttpRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest 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 proto definition of http request.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.HttpRequest} */ - 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.apigeeconnect.v1.HttpRequest) com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.HttpRequest.class, - com.google.cloud.apigeeconnect.v1.HttpRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.HttpRequest.class, com.google.cloud.apigeeconnect.v1.HttpRequest.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.HttpRequest.newBuilder() @@ -627,17 +573,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) { getHeadersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -663,9 +609,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; } @java.lang.Override @@ -684,8 +630,7 @@ public com.google.cloud.apigeeconnect.v1.HttpRequest build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.HttpRequest buildPartial() { - com.google.cloud.apigeeconnect.v1.HttpRequest result = - new com.google.cloud.apigeeconnect.v1.HttpRequest(this); + com.google.cloud.apigeeconnect.v1.HttpRequest result = new com.google.cloud.apigeeconnect.v1.HttpRequest(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.method_ = method_; @@ -712,39 +657,38 @@ public com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.HttpRequest) other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.HttpRequest)other); } else { super.mergeFrom(other); return this; @@ -782,10 +726,9 @@ public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.HttpRequest other) { headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHeadersFieldBuilder() - : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -822,25 +765,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
      * A unique identifier for the request.
      * 
* * string id = 1; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -849,21 +789,20 @@ public java.lang.String getId() { } } /** - * - * *
      * A unique identifier for the request.
      * 
* * string id = 1; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -871,61 +810,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * A unique identifier for the request.
      * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * A unique identifier for the request.
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * A unique identifier for the request.
      * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -933,21 +865,19 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object method_ = ""; /** - * - * *
      * The HTTP request method.
      * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
      * 
* * string method = 2; - * * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; 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(); method_ = s; return s; @@ -956,22 +886,21 @@ public java.lang.String getMethod() { } } /** - * - * *
      * The HTTP request method.
      * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
      * 
* * string method = 2; - * * @return The bytes for method. */ - public com.google.protobuf.ByteString getMethodBytes() { + public com.google.protobuf.ByteString + getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -979,64 +908,57 @@ public com.google.protobuf.ByteString getMethodBytes() { } } /** - * - * *
      * The HTTP request method.
      * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
      * 
* * string method = 2; - * * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod(java.lang.String value) { + public Builder setMethod( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + method_ = value; onChanged(); return this; } /** - * - * *
      * The HTTP request method.
      * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
      * 
* * string method = 2; - * * @return This builder for chaining. */ public Builder clearMethod() { - + method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** - * - * *
      * The HTTP request method.
      * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
      * 
* * string method = 2; - * * @param value The bytes for method to set. * @return This builder for chaining. */ - public Builder setMethodBytes(com.google.protobuf.ByteString value) { + public Builder setMethodBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + method_ = value; onChanged(); return this; @@ -1044,33 +966,24 @@ public Builder setMethodBytes(com.google.protobuf.ByteString value) { private com.google.cloud.apigeeconnect.v1.Url url_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Url, - com.google.cloud.apigeeconnect.v1.Url.Builder, - com.google.cloud.apigeeconnect.v1.UrlOrBuilder> - urlBuilder_; + com.google.cloud.apigeeconnect.v1.Url, com.google.cloud.apigeeconnect.v1.Url.Builder, com.google.cloud.apigeeconnect.v1.UrlOrBuilder> urlBuilder_; /** - * - * *
      * The HTTP request URL.
      * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; - * * @return Whether the url field is set. */ public boolean hasUrl() { return urlBuilder_ != null || url_ != null; } /** - * - * *
      * The HTTP request URL.
      * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; - * * @return The url. */ public com.google.cloud.apigeeconnect.v1.Url getUrl() { @@ -1081,8 +994,6 @@ public com.google.cloud.apigeeconnect.v1.Url getUrl() { } } /** - * - * *
      * The HTTP request URL.
      * 
@@ -1103,15 +1014,14 @@ public Builder setUrl(com.google.cloud.apigeeconnect.v1.Url value) { return this; } /** - * - * *
      * The HTTP request URL.
      * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; */ - public Builder setUrl(com.google.cloud.apigeeconnect.v1.Url.Builder builderForValue) { + public Builder setUrl( + com.google.cloud.apigeeconnect.v1.Url.Builder builderForValue) { if (urlBuilder_ == null) { url_ = builderForValue.build(); onChanged(); @@ -1122,8 +1032,6 @@ public Builder setUrl(com.google.cloud.apigeeconnect.v1.Url.Builder builderForVa return this; } /** - * - * *
      * The HTTP request URL.
      * 
@@ -1134,9 +1042,7 @@ public Builder mergeUrl(com.google.cloud.apigeeconnect.v1.Url value) { if (urlBuilder_ == null) { if (url_ != null) { url_ = - com.google.cloud.apigeeconnect.v1.Url.newBuilder(url_) - .mergeFrom(value) - .buildPartial(); + com.google.cloud.apigeeconnect.v1.Url.newBuilder(url_).mergeFrom(value).buildPartial(); } else { url_ = value; } @@ -1148,8 +1054,6 @@ public Builder mergeUrl(com.google.cloud.apigeeconnect.v1.Url value) { return this; } /** - * - * *
      * The HTTP request URL.
      * 
@@ -1168,8 +1072,6 @@ public Builder clearUrl() { return this; } /** - * - * *
      * The HTTP request URL.
      * 
@@ -1177,13 +1079,11 @@ public Builder clearUrl() { * .google.cloud.apigeeconnect.v1.Url url = 3; */ public com.google.cloud.apigeeconnect.v1.Url.Builder getUrlBuilder() { - + onChanged(); return getUrlFieldBuilder().getBuilder(); } /** - * - * *
      * The HTTP request URL.
      * 
@@ -1194,12 +1094,11 @@ public com.google.cloud.apigeeconnect.v1.UrlOrBuilder getUrlOrBuilder() { if (urlBuilder_ != null) { return urlBuilder_.getMessageOrBuilder(); } else { - return url_ == null ? com.google.cloud.apigeeconnect.v1.Url.getDefaultInstance() : url_; + return url_ == null ? + com.google.cloud.apigeeconnect.v1.Url.getDefaultInstance() : url_; } } /** - * - * *
      * The HTTP request URL.
      * 
@@ -1207,41 +1106,32 @@ public com.google.cloud.apigeeconnect.v1.UrlOrBuilder getUrlOrBuilder() { * .google.cloud.apigeeconnect.v1.Url url = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Url, - com.google.cloud.apigeeconnect.v1.Url.Builder, - com.google.cloud.apigeeconnect.v1.UrlOrBuilder> + com.google.cloud.apigeeconnect.v1.Url, com.google.cloud.apigeeconnect.v1.Url.Builder, com.google.cloud.apigeeconnect.v1.UrlOrBuilder> getUrlFieldBuilder() { if (urlBuilder_ == null) { - urlBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Url, - com.google.cloud.apigeeconnect.v1.Url.Builder, - com.google.cloud.apigeeconnect.v1.UrlOrBuilder>( - getUrl(), getParentForChildren(), isClean()); + urlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Url, com.google.cloud.apigeeconnect.v1.Url.Builder, com.google.cloud.apigeeconnect.v1.UrlOrBuilder>( + getUrl(), + getParentForChildren(), + isClean()); url_ = null; } return urlBuilder_; } private java.util.List headers_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, - com.google.cloud.apigeeconnect.v1.Header.Builder, - com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> - headersBuilder_; + com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> headersBuilder_; /** - * - * *
      * The HTTP request headers.
      * 
@@ -1256,8 +1146,6 @@ public java.util.List getHeadersList() } } /** - * - * *
      * The HTTP request headers.
      * 
@@ -1272,8 +1160,6 @@ public int getHeadersCount() { } } /** - * - * *
      * The HTTP request headers.
      * 
@@ -1288,15 +1174,14 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { } } /** - * - * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public Builder setHeaders(int index, com.google.cloud.apigeeconnect.v1.Header value) { + public Builder setHeaders( + int index, com.google.cloud.apigeeconnect.v1.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1310,8 +1195,6 @@ public Builder setHeaders(int index, com.google.cloud.apigeeconnect.v1.Header va return this; } /** - * - * *
      * The HTTP request headers.
      * 
@@ -1330,8 +1213,6 @@ public Builder setHeaders( return this; } /** - * - * *
      * The HTTP request headers.
      * 
@@ -1352,15 +1233,14 @@ public Builder addHeaders(com.google.cloud.apigeeconnect.v1.Header value) { return this; } /** - * - * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public Builder addHeaders(int index, com.google.cloud.apigeeconnect.v1.Header value) { + public Builder addHeaders( + int index, com.google.cloud.apigeeconnect.v1.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1374,15 +1254,14 @@ public Builder addHeaders(int index, com.google.cloud.apigeeconnect.v1.Header va return this; } /** - * - * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public Builder addHeaders(com.google.cloud.apigeeconnect.v1.Header.Builder builderForValue) { + public Builder addHeaders( + com.google.cloud.apigeeconnect.v1.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); @@ -1393,8 +1272,6 @@ public Builder addHeaders(com.google.cloud.apigeeconnect.v1.Header.Builder build return this; } /** - * - * *
      * The HTTP request headers.
      * 
@@ -1413,8 +1290,6 @@ public Builder addHeaders( return this; } /** - * - * *
      * The HTTP request headers.
      * 
@@ -1425,7 +1300,8 @@ public Builder addAllHeaders( java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1433,8 +1309,6 @@ public Builder addAllHeaders( return this; } /** - * - * *
      * The HTTP request headers.
      * 
@@ -1452,8 +1326,6 @@ public Builder clearHeaders() { return this; } /** - * - * *
      * The HTTP request headers.
      * 
@@ -1471,44 +1343,39 @@ public Builder removeHeaders(int index) { return this; } /** - * - * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public com.google.cloud.apigeeconnect.v1.Header.Builder getHeadersBuilder(int index) { + public com.google.cloud.apigeeconnect.v1.Header.Builder getHeadersBuilder( + int index) { return getHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index) { + public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( + int index) { if (headersBuilder_ == null) { - return headers_.get(index); - } else { + return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public java.util.List - getHeadersOrBuilderList() { + public java.util.List + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1516,8 +1383,6 @@ public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int } } /** - * - * *
      * The HTTP request headers.
      * 
@@ -1525,48 +1390,42 @@ public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder() { - return getHeadersFieldBuilder() - .addBuilder(com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); + return getHeadersFieldBuilder().addBuilder( + com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); } /** - * - * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder(int index) { - return getHeadersFieldBuilder() - .addBuilder(index, com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); + public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder( + int index) { + return getHeadersFieldBuilder().addBuilder( + index, com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); } /** - * - * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public java.util.List - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, - com.google.cloud.apigeeconnect.v1.Header.Builder, - com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> + com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, - com.google.cloud.apigeeconnect.v1.Header.Builder, - com.google.cloud.apigeeconnect.v1.HeaderOrBuilder>( - headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder>( + headers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); headers_ = null; } return headersBuilder_; @@ -1574,14 +1433,11 @@ public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder(int in private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * HTTP request body.
      * 
* * bytes body = 5; - * * @return The body. */ @java.lang.Override @@ -1589,46 +1445,40 @@ public com.google.protobuf.ByteString getBody() { return body_; } /** - * - * *
      * HTTP request body.
      * 
* * bytes body = 5; - * * @param value The body to set. * @return This builder for chaining. */ public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * HTTP request body.
      * 
* * bytes body = 5; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1638,12 +1488,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.HttpRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.HttpRequest) private static final com.google.cloud.apigeeconnect.v1.HttpRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.HttpRequest(); } @@ -1652,16 +1502,16 @@ public static com.google.cloud.apigeeconnect.v1.HttpRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1676,4 +1526,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.HttpRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java similarity index 73% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java index 318c3ec..7cdec7b 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java @@ -1,107 +1,73 @@ -/* - * 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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface HttpRequestOrBuilder - extends +public interface HttpRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.HttpRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A unique identifier for the request.
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * A unique identifier for the request.
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * The HTTP request method.
    * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
    * 
* * string method = 2; - * * @return The method. */ java.lang.String getMethod(); /** - * - * *
    * The HTTP request method.
    * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
    * 
* * string method = 2; - * * @return The bytes for method. */ - com.google.protobuf.ByteString getMethodBytes(); + com.google.protobuf.ByteString + getMethodBytes(); /** - * - * *
    * The HTTP request URL.
    * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; - * * @return Whether the url field is set. */ boolean hasUrl(); /** - * - * *
    * The HTTP request URL.
    * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; - * * @return The url. */ com.google.cloud.apigeeconnect.v1.Url getUrl(); /** - * - * *
    * The HTTP request URL.
    * 
@@ -111,18 +77,15 @@ public interface HttpRequestOrBuilder com.google.cloud.apigeeconnect.v1.UrlOrBuilder getUrlOrBuilder(); /** - * - * *
    * The HTTP request headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - java.util.List getHeadersList(); + java.util.List + getHeadersList(); /** - * - * *
    * The HTTP request headers.
    * 
@@ -131,8 +94,6 @@ public interface HttpRequestOrBuilder */ com.google.cloud.apigeeconnect.v1.Header getHeaders(int index); /** - * - * *
    * The HTTP request headers.
    * 
@@ -141,36 +102,30 @@ public interface HttpRequestOrBuilder */ int getHeadersCount(); /** - * - * *
    * The HTTP request headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - java.util.List + java.util.List getHeadersOrBuilderList(); /** - * - * *
    * The HTTP request headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index); + com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( + int index); /** - * - * *
    * HTTP request body.
    * 
* * bytes body = 5; - * * @return The body. */ com.google.protobuf.ByteString getBody(); diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java similarity index 74% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java index b3b3d3f..1914be7 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * The proto definition of http response.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.HttpResponse} */ -public final class HttpResponse extends com.google.protobuf.GeneratedMessageV3 - implements +public final class HttpResponse extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.HttpResponse) HttpResponseOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use HttpResponse.newBuilder() to construct. private HttpResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private HttpResponse() { id_ = ""; status_ = ""; @@ -46,15 +28,16 @@ private HttpResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new HttpResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private HttpResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -74,53 +57,49 @@ private HttpResponse( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); - status_ = s; - break; - } - case 24: - { - statusCode_ = input.readInt32(); - break; - } - case 34: - { - body_ = input.readBytes(); - break; - } - case 42: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - headers_.add( - input.readMessage( - com.google.cloud.apigeeconnect.v1.Header.parser(), extensionRegistry)); - break; - } - case 48: - { - contentLength_ = input.readInt64(); - break; + status_ = s; + break; + } + case 24: { + + statusCode_ = input.readInt32(); + break; + } + case 34: { + + body_ = input.readBytes(); + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + headers_.add( + input.readMessage(com.google.cloud.apigeeconnect.v1.Header.parser(), extensionRegistry)); + break; + } + case 48: { + + contentLength_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -128,7 +107,8 @@ private HttpResponse( } 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)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -137,33 +117,27 @@ private HttpResponse( makeExtensionsImmutable(); } } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.HttpResponse.class, - com.google.cloud.apigeeconnect.v1.HttpResponse.Builder.class); + com.google.cloud.apigeeconnect.v1.HttpResponse.class, com.google.cloud.apigeeconnect.v1.HttpResponse.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * A unique identifier that matches the request ID.
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -172,29 +146,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** - * - * *
    * A unique identifier that matches the request ID.
    * 
* * string id = 1; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -205,14 +179,11 @@ public com.google.protobuf.ByteString getIdBytes() { public static final int STATUS_FIELD_NUMBER = 2; private volatile java.lang.Object status_; /** - * - * *
    * Status of http response, e.g. "200 OK".
    * 
* * string status = 2; - * * @return The status. */ @java.lang.Override @@ -221,29 +192,29 @@ public java.lang.String getStatus() { 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(); status_ = s; return s; } } /** - * - * *
    * Status of http response, e.g. "200 OK".
    * 
* * string status = 2; - * * @return The bytes for status. */ @java.lang.Override - public com.google.protobuf.ByteString getStatusBytes() { + public com.google.protobuf.ByteString + getStatusBytes() { java.lang.Object ref = status_; 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); status_ = b; return b; } else { @@ -254,14 +225,11 @@ public com.google.protobuf.ByteString getStatusBytes() { public static final int STATUS_CODE_FIELD_NUMBER = 3; private int statusCode_; /** - * - * *
    * Status code of http response, e.g. 200.
    * 
* * int32 status_code = 3; - * * @return The statusCode. */ @java.lang.Override @@ -272,14 +240,11 @@ public int getStatusCode() { public static final int BODY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString body_; /** - * - * *
    * The HTTP 1.1 response body.
    * 
* * bytes body = 4; - * * @return The body. */ @java.lang.Override @@ -290,8 +255,6 @@ public com.google.protobuf.ByteString getBody() { public static final int HEADERS_FIELD_NUMBER = 5; private java.util.List headers_; /** - * - * *
    * The HTTP response headers.
    * 
@@ -303,8 +266,6 @@ public java.util.List getHeadersList() return headers_; } /** - * - * *
    * The HTTP response headers.
    * 
@@ -312,13 +273,11 @@ public java.util.List getHeadersList() * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ @java.lang.Override - public java.util.List + public java.util.List getHeadersOrBuilderList() { return headers_; } /** - * - * *
    * The HTTP response headers.
    * 
@@ -330,8 +289,6 @@ public int getHeadersCount() { return headers_.size(); } /** - * - * *
    * The HTTP response headers.
    * 
@@ -343,8 +300,6 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { return headers_.get(index); } /** - * - * *
    * The HTTP response headers.
    * 
@@ -352,15 +307,14 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ @java.lang.Override - public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index) { + public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( + int index) { return headers_.get(index); } public static final int CONTENT_LENGTH_FIELD_NUMBER = 6; private long contentLength_; /** - * - * *
    * Content length records the length of the associated content. The
    * value -1 indicates that the length is unknown. Unless http method
@@ -369,7 +323,6 @@ public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int
    * 
* * int64 content_length = 6; - * * @return The contentLength. */ @java.lang.Override @@ -378,7 +331,6 @@ public long getContentLength() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -390,7 +342,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -425,16 +378,20 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); } if (statusCode_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, statusCode_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, statusCode_); } if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, body_); + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, body_); } for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, headers_.get(i)); } if (contentLength_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, contentLength_); + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, contentLength_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -444,20 +401,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.HttpResponse)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.HttpResponse other = - (com.google.cloud.apigeeconnect.v1.HttpResponse) obj; - - if (!getId().equals(other.getId())) return false; - if (!getStatus().equals(other.getStatus())) return false; - if (getStatusCode() != other.getStatusCode()) return false; - if (!getBody().equals(other.getBody())) return false; - if (!getHeadersList().equals(other.getHeadersList())) return false; - if (getContentLength() != other.getContentLength()) return false; + com.google.cloud.apigeeconnect.v1.HttpResponse other = (com.google.cloud.apigeeconnect.v1.HttpResponse) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; + if (getStatusCode() + != other.getStatusCode()) return false; + if (!getBody() + .equals(other.getBody())) return false; + if (!getHeadersList() + .equals(other.getHeadersList())) return false; + if (getContentLength() + != other.getContentLength()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -482,133 +444,125 @@ public int hashCode() { hash = (53 * hash) + getHeadersList().hashCode(); } hash = (37 * hash) + CONTENT_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getContentLength()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getContentLength()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.apigeeconnect.v1.HttpResponse parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.HttpResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.HttpResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse 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 proto definition of http response.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.HttpResponse} */ - 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.apigeeconnect.v1.HttpResponse) com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.HttpResponse.class, - com.google.cloud.apigeeconnect.v1.HttpResponse.Builder.class); + com.google.cloud.apigeeconnect.v1.HttpResponse.class, com.google.cloud.apigeeconnect.v1.HttpResponse.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.HttpResponse.newBuilder() @@ -616,17 +570,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) { getHeadersFieldBuilder(); } } - @java.lang.Override public Builder clear() { super.clear(); @@ -650,9 +604,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; } @java.lang.Override @@ -671,8 +625,7 @@ public com.google.cloud.apigeeconnect.v1.HttpResponse build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.HttpResponse buildPartial() { - com.google.cloud.apigeeconnect.v1.HttpResponse result = - new com.google.cloud.apigeeconnect.v1.HttpResponse(this); + com.google.cloud.apigeeconnect.v1.HttpResponse result = new com.google.cloud.apigeeconnect.v1.HttpResponse(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.status_ = status_; @@ -696,39 +649,38 @@ public com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.HttpResponse) other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.HttpResponse)other); } else { super.mergeFrom(other); return this; @@ -769,10 +721,9 @@ public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.HttpResponse other) { headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getHeadersFieldBuilder() - : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getHeadersFieldBuilder() : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -809,25 +760,22 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object id_ = ""; /** - * - * *
      * A unique identifier that matches the request ID.
      * 
* * string id = 1; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -836,21 +784,20 @@ public java.lang.String getId() { } } /** - * - * *
      * A unique identifier that matches the request ID.
      * 
* * string id = 1; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -858,61 +805,54 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * A unique identifier that matches the request ID.
      * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * A unique identifier that matches the request ID.
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * A unique identifier that matches the request ID.
      * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -920,20 +860,18 @@ public Builder setIdBytes(com.google.protobuf.ByteString value) { private java.lang.Object status_ = ""; /** - * - * *
      * Status of http response, e.g. "200 OK".
      * 
* * string status = 2; - * * @return The status. */ public java.lang.String getStatus() { java.lang.Object ref = status_; 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(); status_ = s; return s; @@ -942,21 +880,20 @@ public java.lang.String getStatus() { } } /** - * - * *
      * Status of http response, e.g. "200 OK".
      * 
* * string status = 2; - * * @return The bytes for status. */ - public com.google.protobuf.ByteString getStatusBytes() { + public com.google.protobuf.ByteString + getStatusBytes() { java.lang.Object ref = status_; 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); status_ = b; return b; } else { @@ -964,76 +901,66 @@ public com.google.protobuf.ByteString getStatusBytes() { } } /** - * - * *
      * Status of http response, e.g. "200 OK".
      * 
* * string status = 2; - * * @param value The status to set. * @return This builder for chaining. */ - public Builder setStatus(java.lang.String value) { + public Builder setStatus( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + status_ = value; onChanged(); return this; } /** - * - * *
      * Status of http response, e.g. "200 OK".
      * 
* * string status = 2; - * * @return This builder for chaining. */ public Builder clearStatus() { - + status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** - * - * *
      * Status of http response, e.g. "200 OK".
      * 
* * string status = 2; - * * @param value The bytes for status to set. * @return This builder for chaining. */ - public Builder setStatusBytes(com.google.protobuf.ByteString value) { + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; onChanged(); return this; } - private int statusCode_; + private int statusCode_ ; /** - * - * *
      * Status code of http response, e.g. 200.
      * 
* * int32 status_code = 3; - * * @return The statusCode. */ @java.lang.Override @@ -1041,36 +968,30 @@ public int getStatusCode() { return statusCode_; } /** - * - * *
      * Status code of http response, e.g. 200.
      * 
* * int32 status_code = 3; - * * @param value The statusCode to set. * @return This builder for chaining. */ public Builder setStatusCode(int value) { - + statusCode_ = value; onChanged(); return this; } /** - * - * *
      * Status code of http response, e.g. 200.
      * 
* * int32 status_code = 3; - * * @return This builder for chaining. */ public Builder clearStatusCode() { - + statusCode_ = 0; onChanged(); return this; @@ -1078,14 +999,11 @@ public Builder clearStatusCode() { private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** - * - * *
      * The HTTP 1.1 response body.
      * 
* * bytes body = 4; - * * @return The body. */ @java.lang.Override @@ -1093,63 +1011,51 @@ public com.google.protobuf.ByteString getBody() { return body_; } /** - * - * *
      * The HTTP 1.1 response body.
      * 
* * bytes body = 4; - * * @param value The body to set. * @return This builder for chaining. */ public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** - * - * *
      * The HTTP 1.1 response body.
      * 
* * bytes body = 4; - * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } private java.util.List headers_ = - java.util.Collections.emptyList(); - + java.util.Collections.emptyList(); private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, - com.google.cloud.apigeeconnect.v1.Header.Builder, - com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> - headersBuilder_; + com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> headersBuilder_; /** - * - * *
      * The HTTP response headers.
      * 
@@ -1164,8 +1070,6 @@ public java.util.List getHeadersList() } } /** - * - * *
      * The HTTP response headers.
      * 
@@ -1180,8 +1084,6 @@ public int getHeadersCount() { } } /** - * - * *
      * The HTTP response headers.
      * 
@@ -1196,15 +1098,14 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { } } /** - * - * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public Builder setHeaders(int index, com.google.cloud.apigeeconnect.v1.Header value) { + public Builder setHeaders( + int index, com.google.cloud.apigeeconnect.v1.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1218,8 +1119,6 @@ public Builder setHeaders(int index, com.google.cloud.apigeeconnect.v1.Header va return this; } /** - * - * *
      * The HTTP response headers.
      * 
@@ -1238,8 +1137,6 @@ public Builder setHeaders( return this; } /** - * - * *
      * The HTTP response headers.
      * 
@@ -1260,15 +1157,14 @@ public Builder addHeaders(com.google.cloud.apigeeconnect.v1.Header value) { return this; } /** - * - * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public Builder addHeaders(int index, com.google.cloud.apigeeconnect.v1.Header value) { + public Builder addHeaders( + int index, com.google.cloud.apigeeconnect.v1.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1282,15 +1178,14 @@ public Builder addHeaders(int index, com.google.cloud.apigeeconnect.v1.Header va return this; } /** - * - * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public Builder addHeaders(com.google.cloud.apigeeconnect.v1.Header.Builder builderForValue) { + public Builder addHeaders( + com.google.cloud.apigeeconnect.v1.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); @@ -1301,8 +1196,6 @@ public Builder addHeaders(com.google.cloud.apigeeconnect.v1.Header.Builder build return this; } /** - * - * *
      * The HTTP response headers.
      * 
@@ -1321,8 +1214,6 @@ public Builder addHeaders( return this; } /** - * - * *
      * The HTTP response headers.
      * 
@@ -1333,7 +1224,8 @@ public Builder addAllHeaders( java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1341,8 +1233,6 @@ public Builder addAllHeaders( return this; } /** - * - * *
      * The HTTP response headers.
      * 
@@ -1360,8 +1250,6 @@ public Builder clearHeaders() { return this; } /** - * - * *
      * The HTTP response headers.
      * 
@@ -1379,44 +1267,39 @@ public Builder removeHeaders(int index) { return this; } /** - * - * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public com.google.cloud.apigeeconnect.v1.Header.Builder getHeadersBuilder(int index) { + public com.google.cloud.apigeeconnect.v1.Header.Builder getHeadersBuilder( + int index) { return getHeadersFieldBuilder().getBuilder(index); } /** - * - * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index) { + public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( + int index) { if (headersBuilder_ == null) { - return headers_.get(index); - } else { + return headers_.get(index); } else { return headersBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public java.util.List - getHeadersOrBuilderList() { + public java.util.List + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1424,8 +1307,6 @@ public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int } } /** - * - * *
      * The HTTP response headers.
      * 
@@ -1433,57 +1314,49 @@ public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder() { - return getHeadersFieldBuilder() - .addBuilder(com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); + return getHeadersFieldBuilder().addBuilder( + com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); } /** - * - * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder(int index) { - return getHeadersFieldBuilder() - .addBuilder(index, com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); + public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder( + int index) { + return getHeadersFieldBuilder().addBuilder( + index, com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); } /** - * - * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public java.util.List - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, - com.google.cloud.apigeeconnect.v1.Header.Builder, - com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> + com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, - com.google.cloud.apigeeconnect.v1.Header.Builder, - com.google.cloud.apigeeconnect.v1.HeaderOrBuilder>( - headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder>( + headers_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); headers_ = null; } return headersBuilder_; } - private long contentLength_; + private long contentLength_ ; /** - * - * *
      * Content length records the length of the associated content. The
      * value -1 indicates that the length is unknown. Unless http method
@@ -1492,7 +1365,6 @@ public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder(int in
      * 
* * int64 content_length = 6; - * * @return The contentLength. */ @java.lang.Override @@ -1500,8 +1372,6 @@ public long getContentLength() { return contentLength_; } /** - * - * *
      * Content length records the length of the associated content. The
      * value -1 indicates that the length is unknown. Unless http method
@@ -1510,19 +1380,16 @@ public long getContentLength() {
      * 
* * int64 content_length = 6; - * * @param value The contentLength to set. * @return This builder for chaining. */ public Builder setContentLength(long value) { - + contentLength_ = value; onChanged(); return this; } /** - * - * *
      * Content length records the length of the associated content. The
      * value -1 indicates that the length is unknown. Unless http method
@@ -1531,18 +1398,17 @@ public Builder setContentLength(long value) {
      * 
* * int64 content_length = 6; - * * @return This builder for chaining. */ public Builder clearContentLength() { - + contentLength_ = 0L; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1552,12 +1418,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.HttpResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.HttpResponse) private static final com.google.cloud.apigeeconnect.v1.HttpResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.HttpResponse(); } @@ -1566,16 +1432,16 @@ public static com.google.cloud.apigeeconnect.v1.HttpResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1590,4 +1456,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.HttpResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java similarity index 72% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java index 3609f7b..6a4a23e 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java @@ -1,117 +1,82 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface HttpResponseOrBuilder - extends +public interface HttpResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.HttpResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A unique identifier that matches the request ID.
    * 
* * string id = 1; - * * @return The id. */ java.lang.String getId(); /** - * - * *
    * A unique identifier that matches the request ID.
    * 
* * string id = 1; - * * @return The bytes for id. */ - com.google.protobuf.ByteString getIdBytes(); + com.google.protobuf.ByteString + getIdBytes(); /** - * - * *
    * Status of http response, e.g. "200 OK".
    * 
* * string status = 2; - * * @return The status. */ java.lang.String getStatus(); /** - * - * *
    * Status of http response, e.g. "200 OK".
    * 
* * string status = 2; - * * @return The bytes for status. */ - com.google.protobuf.ByteString getStatusBytes(); + com.google.protobuf.ByteString + getStatusBytes(); /** - * - * *
    * Status code of http response, e.g. 200.
    * 
* * int32 status_code = 3; - * * @return The statusCode. */ int getStatusCode(); /** - * - * *
    * The HTTP 1.1 response body.
    * 
* * bytes body = 4; - * * @return The body. */ com.google.protobuf.ByteString getBody(); /** - * - * *
    * The HTTP response headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - java.util.List getHeadersList(); + java.util.List + getHeadersList(); /** - * - * *
    * The HTTP response headers.
    * 
@@ -120,8 +85,6 @@ public interface HttpResponseOrBuilder */ com.google.cloud.apigeeconnect.v1.Header getHeaders(int index); /** - * - * *
    * The HTTP response headers.
    * 
@@ -130,30 +93,25 @@ public interface HttpResponseOrBuilder */ int getHeadersCount(); /** - * - * *
    * The HTTP response headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - java.util.List + java.util.List getHeadersOrBuilderList(); /** - * - * *
    * The HTTP response headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index); + com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( + int index); /** - * - * *
    * Content length records the length of the associated content. The
    * value -1 indicates that the length is unknown. Unless http method
@@ -162,7 +120,6 @@ public interface HttpResponseOrBuilder
    * 
* * int64 content_length = 6; - * * @return The contentLength. */ long getContentLength(); diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java similarity index 70% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java index f220cb0..438c76d 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.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/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * The request for [ListConnections][Management.ListConnections].
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.ListConnectionsRequest} */ -public final class ListConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 - implements +public final class ListConnectionsRequest extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.ListConnectionsRequest) ListConnectionsRequestOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use ListConnectionsRequest.newBuilder() to construct. private ListConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ListConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -44,15 +26,16 @@ private ListConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new ListConnectionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private ListConnectionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -71,32 +54,30 @@ private ListConnectionsRequest( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - parent_ = s; - break; - } - case 16: - { - pageSize_ = input.readInt32(); - break; - } - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: { - pageToken_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + pageSize_ = input.readInt32(); + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -104,42 +85,35 @@ private ListConnectionsRequest( } 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.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.class, - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.class, com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** - * - * *
    * Required. Parent name of the form:
    *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ @java.lang.Override @@ -148,32 +122,30 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** - * - * *
    * Required. Parent name of the form:
    *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -184,8 +156,6 @@ public com.google.protobuf.ByteString getParentBytes() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** - * - * *
    * The maximum number of connections to return. The service may return fewer
    * than this value. If unspecified, at most 100 connections will be returned.
@@ -193,7 +163,6 @@ public com.google.protobuf.ByteString getParentBytes() {
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -204,8 +173,6 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** - * - * *
    * A page token, received from a previous `ListConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -214,7 +181,6 @@ public int getPageSize() {
    * 
* * string page_token = 3; - * * @return The pageToken. */ @java.lang.Override @@ -223,15 +189,14 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** - * - * *
    * A page token, received from a previous `ListConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -240,15 +205,16 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -257,7 +223,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -269,7 +234,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -292,7 +258,8 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -305,17 +272,19 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.ListConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest other = - (com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) obj; + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest other = (com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) obj; - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; + if (!getParent() + .equals(other.getParent())) return false; + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -339,127 +308,117 @@ public int hashCode() { } public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest prototype) { + public static Builder newBuilder(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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 for [ListConnections][Management.ListConnections].
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.ListConnectionsRequest} */ - 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.apigeeconnect.v1.ListConnectionsRequest) com.google.cloud.apigeeconnect.v1.ListConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.class, - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.class, com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.newBuilder() @@ -467,15 +426,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(); @@ -489,9 +449,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto - .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; } @java.lang.Override @@ -510,8 +470,7 @@ public com.google.cloud.apigeeconnect.v1.ListConnectionsRequest build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.ListConnectionsRequest buildPartial() { - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest result = - new com.google.cloud.apigeeconnect.v1.ListConnectionsRequest(this); + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest result = new com.google.cloud.apigeeconnect.v1.ListConnectionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -523,39 +482,38 @@ public com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.ListConnectionsRequest)other); } else { super.mergeFrom(other); return this; @@ -563,8 +521,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest other) { - if (other == com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.getDefaultInstance()) - return this; + if (other == com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -595,8 +552,7 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) e.getUnfinishedMessage(); + parsedMessage = (com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -608,23 +564,19 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** - * - * *
      * Required. Parent name of the form:
      *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -633,24 +585,21 @@ public java.lang.String getParent() { } } /** - * - * *
      * Required. Parent name of the form:
      *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - public com.google.protobuf.ByteString getParentBytes() { + public com.google.protobuf.ByteString + getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); parent_ = b; return b; } else { @@ -658,79 +607,64 @@ public com.google.protobuf.ByteString getParentBytes() { } } /** - * - * *
      * Required. Parent name of the form:
      *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent(java.lang.String value) { + public Builder setParent( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** - * - * *
      * Required. Parent name of the form:
      *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** - * - * *
      * Required. Parent name of the form:
      *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
      * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_; + private int pageSize_ ; /** - * - * *
      * The maximum number of connections to return. The service may return fewer
      * than this value. If unspecified, at most 100 connections will be returned.
@@ -738,7 +672,6 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
      * 
* * int32 page_size = 2; - * * @return The pageSize. */ @java.lang.Override @@ -746,8 +679,6 @@ public int getPageSize() { return pageSize_; } /** - * - * *
      * The maximum number of connections to return. The service may return fewer
      * than this value. If unspecified, at most 100 connections will be returned.
@@ -755,19 +686,16 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; - * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** - * - * *
      * The maximum number of connections to return. The service may return fewer
      * than this value. If unspecified, at most 100 connections will be returned.
@@ -775,11 +703,10 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; - * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -787,8 +714,6 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** - * - * *
      * A page token, received from a previous `ListConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -797,13 +722,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; - * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -812,8 +737,6 @@ public java.lang.String getPageToken() { } } /** - * - * *
      * A page token, received from a previous `ListConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -822,14 +745,15 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getPageTokenBytes() { + public com.google.protobuf.ByteString + getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); pageToken_ = b; return b; } else { @@ -837,8 +761,6 @@ public com.google.protobuf.ByteString getPageTokenBytes() { } } /** - * - * *
      * A page token, received from a previous `ListConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -847,22 +769,20 @@ public com.google.protobuf.ByteString getPageTokenBytes() {
      * 
* * string page_token = 3; - * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken(java.lang.String value) { + public Builder setPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -871,18 +791,15 @@ public Builder setPageToken(java.lang.String value) {
      * 
* * string page_token = 3; - * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** - * - * *
      * A page token, received from a previous `ListConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -891,23 +808,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; - * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -917,12 +834,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.ListConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.ListConnectionsRequest) private static final com.google.cloud.apigeeconnect.v1.ListConnectionsRequest DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.ListConnectionsRequest(); } @@ -931,16 +848,16 @@ public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -955,4 +872,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.ListConnectionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java similarity index 62% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java index a59d32c..7c7ab0a 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java @@ -1,62 +1,35 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -public interface ListConnectionsRequestOrBuilder - extends +public interface ListConnectionsRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.ListConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Required. Parent name of the form:
    *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The parent. */ java.lang.String getParent(); /** - * - * *
    * Required. Parent name of the form:
    *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
    * 
* - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } * @return The bytes for parent. */ - com.google.protobuf.ByteString getParentBytes(); + com.google.protobuf.ByteString + getParentBytes(); /** - * - * *
    * The maximum number of connections to return. The service may return fewer
    * than this value. If unspecified, at most 100 connections will be returned.
@@ -64,14 +37,11 @@ public interface ListConnectionsRequestOrBuilder
    * 
* * int32 page_size = 2; - * * @return The pageSize. */ int getPageSize(); /** - * - * *
    * A page token, received from a previous `ListConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -80,13 +50,10 @@ public interface ListConnectionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The pageToken. */ java.lang.String getPageToken(); /** - * - * *
    * A page token, received from a previous `ListConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -95,8 +62,8 @@ public interface ListConnectionsRequestOrBuilder
    * 
* * string page_token = 3; - * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString getPageTokenBytes(); + com.google.protobuf.ByteString + getPageTokenBytes(); } diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java similarity index 73% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java index ac21671..0a53f99 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * The response for
  * [ListConnections][Management.ListConnections].
@@ -28,16 +11,15 @@
  *
  * Protobuf type {@code google.cloud.apigeeconnect.v1.ListConnectionsResponse}
  */
-public final class ListConnectionsResponse extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class ListConnectionsResponse extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.ListConnectionsResponse)
     ListConnectionsResponseOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use ListConnectionsResponse.newBuilder() to construct.
   private ListConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private ListConnectionsResponse() {
     connections_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -45,15 +27,16 @@ private ListConnectionsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new ListConnectionsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private ListConnectionsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -73,32 +56,28 @@ private ListConnectionsResponse(
           case 0:
             done = true;
             break;
-          case 10:
-            {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                connections_ =
-                    new java.util.ArrayList();
-                mutable_bitField0_ |= 0x00000001;
-              }
-              connections_.add(
-                  input.readMessage(
-                      com.google.cloud.apigeeconnect.v1.Connection.parser(), extensionRegistry));
-              break;
+          case 10: {
+            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+              connections_ = new java.util.ArrayList();
+              mutable_bitField0_ |= 0x00000001;
             }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            connections_.add(
+                input.readMessage(com.google.cloud.apigeeconnect.v1.Connection.parser(), extensionRegistry));
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              nextPageToken_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            nextPageToken_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -106,7 +85,8 @@ private ListConnectionsResponse(
     } 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)) {
         connections_ = java.util.Collections.unmodifiableList(connections_);
@@ -115,27 +95,22 @@ private ListConnectionsResponse(
       makeExtensionsImmutable();
     }
   }
-
-  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-    return com.google.cloud.apigeeconnect.v1.ConnectionProto
-        .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.apigeeconnect.v1.ConnectionProto
-        .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable
+    return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.class,
-            com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.Builder.class);
+            com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.class, com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.Builder.class);
   }
 
   public static final int CONNECTIONS_FIELD_NUMBER = 1;
   private java.util.List connections_;
   /**
-   *
-   *
    * 
    * A list of clients.
    * 
@@ -147,8 +122,6 @@ public java.util.List getConnectio return connections_; } /** - * - * *
    * A list of clients.
    * 
@@ -156,13 +129,11 @@ public java.util.List getConnectio * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionsOrBuilderList() { return connections_; } /** - * - * *
    * A list of clients.
    * 
@@ -174,8 +145,6 @@ public int getConnectionsCount() { return connections_.size(); } /** - * - * *
    * A list of clients.
    * 
@@ -187,8 +156,6 @@ public com.google.cloud.apigeeconnect.v1.Connection getConnections(int index) { return connections_.get(index); } /** - * - * *
    * A list of clients.
    * 
@@ -196,22 +163,20 @@ public com.google.cloud.apigeeconnect.v1.Connection getConnections(int index) { * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ @java.lang.Override - public com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index) { + public com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBuilder( + int index) { return connections_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ @java.lang.Override @@ -220,30 +185,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -252,7 +217,6 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -264,7 +228,8 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { for (int i = 0; i < connections_.size(); i++) { output.writeMessage(1, connections_.get(i)); } @@ -281,7 +246,8 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, connections_.get(i)); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, connections_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -294,16 +260,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.apigeeconnect.v1.ListConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse other = - (com.google.cloud.apigeeconnect.v1.ListConnectionsResponse) obj; + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse other = (com.google.cloud.apigeeconnect.v1.ListConnectionsResponse) obj; - if (!getConnectionsList().equals(other.getConnectionsList())) return false; - if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getConnectionsList() + .equals(other.getConnectionsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -327,104 +294,96 @@ public int hashCode() { } public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse prototype) { + public static Builder newBuilder(com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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 for
    * [ListConnections][Management.ListConnections].
@@ -432,23 +391,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.apigeeconnect.v1.ListConnectionsResponse}
    */
-  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.apigeeconnect.v1.ListConnectionsResponse)
       com.google.cloud.apigeeconnect.v1.ListConnectionsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.apigeeconnect.v1.ConnectionProto
-          .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.apigeeconnect.v1.ConnectionProto
-          .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable
+      return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.class,
-              com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.Builder.class);
+              com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.class, com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.newBuilder()
@@ -456,17 +413,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(
+        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
-
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3
+              .alwaysUseFieldBuilders) {
         getConnectionsFieldBuilder();
       }
     }
-
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -482,9 +439,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.apigeeconnect.v1.ConnectionProto
-          .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -503,8 +460,7 @@ public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse buildPartial() {
-      com.google.cloud.apigeeconnect.v1.ListConnectionsResponse result =
-          new com.google.cloud.apigeeconnect.v1.ListConnectionsResponse(this);
+      com.google.cloud.apigeeconnect.v1.ListConnectionsResponse result = new com.google.cloud.apigeeconnect.v1.ListConnectionsResponse(this);
       int from_bitField0_ = bitField0_;
       if (connectionsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -524,39 +480,38 @@ public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse) {
-        return mergeFrom((com.google.cloud.apigeeconnect.v1.ListConnectionsResponse) other);
+        return mergeFrom((com.google.cloud.apigeeconnect.v1.ListConnectionsResponse)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -564,8 +519,7 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.ListConnectionsResponse other) {
-      if (other == com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.getDefaultInstance())
-        return this;
+      if (other == com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.getDefaultInstance()) return this;
       if (connectionsBuilder_ == null) {
         if (!other.connections_.isEmpty()) {
           if (connections_.isEmpty()) {
@@ -584,10 +538,9 @@ public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.ListConnectionsRespon
             connectionsBuilder_ = null;
             connections_ = other.connections_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            connectionsBuilder_ =
-                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
-                    ? getConnectionsFieldBuilder()
-                    : null;
+            connectionsBuilder_ = 
+              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+                 getConnectionsFieldBuilder() : null;
           } else {
             connectionsBuilder_.addAllMessages(other.connections_);
           }
@@ -616,8 +569,7 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage =
-            (com.google.cloud.apigeeconnect.v1.ListConnectionsResponse) e.getUnfinishedMessage();
+        parsedMessage = (com.google.cloud.apigeeconnect.v1.ListConnectionsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -626,29 +578,21 @@ public Builder mergeFrom(
       }
       return this;
     }
-
     private int bitField0_;
 
     private java.util.List connections_ =
-        java.util.Collections.emptyList();
-
+      java.util.Collections.emptyList();
     private void ensureConnectionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        connections_ =
-            new java.util.ArrayList(connections_);
+        connections_ = new java.util.ArrayList(connections_);
         bitField0_ |= 0x00000001;
-      }
+       }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-            com.google.cloud.apigeeconnect.v1.Connection,
-            com.google.cloud.apigeeconnect.v1.Connection.Builder,
-            com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder>
-        connectionsBuilder_;
+        com.google.cloud.apigeeconnect.v1.Connection, com.google.cloud.apigeeconnect.v1.Connection.Builder, com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder> connectionsBuilder_;
 
     /**
-     *
-     *
      * 
      * A list of clients.
      * 
@@ -663,8 +607,6 @@ public java.util.List getConnectio } } /** - * - * *
      * A list of clients.
      * 
@@ -679,8 +621,6 @@ public int getConnectionsCount() { } } /** - * - * *
      * A list of clients.
      * 
@@ -695,15 +635,14 @@ public com.google.cloud.apigeeconnect.v1.Connection getConnections(int index) { } } /** - * - * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public Builder setConnections(int index, com.google.cloud.apigeeconnect.v1.Connection value) { + public Builder setConnections( + int index, com.google.cloud.apigeeconnect.v1.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -717,8 +656,6 @@ public Builder setConnections(int index, com.google.cloud.apigeeconnect.v1.Conne return this; } /** - * - * *
      * A list of clients.
      * 
@@ -737,8 +674,6 @@ public Builder setConnections( return this; } /** - * - * *
      * A list of clients.
      * 
@@ -759,15 +694,14 @@ public Builder addConnections(com.google.cloud.apigeeconnect.v1.Connection value return this; } /** - * - * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public Builder addConnections(int index, com.google.cloud.apigeeconnect.v1.Connection value) { + public Builder addConnections( + int index, com.google.cloud.apigeeconnect.v1.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -781,8 +715,6 @@ public Builder addConnections(int index, com.google.cloud.apigeeconnect.v1.Conne return this; } /** - * - * *
      * A list of clients.
      * 
@@ -801,8 +733,6 @@ public Builder addConnections( return this; } /** - * - * *
      * A list of clients.
      * 
@@ -821,8 +751,6 @@ public Builder addConnections( return this; } /** - * - * *
      * A list of clients.
      * 
@@ -833,7 +761,8 @@ public Builder addAllConnections( java.lang.Iterable values) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connections_); onChanged(); } else { connectionsBuilder_.addAllMessages(values); @@ -841,8 +770,6 @@ public Builder addAllConnections( return this; } /** - * - * *
      * A list of clients.
      * 
@@ -860,8 +787,6 @@ public Builder clearConnections() { return this; } /** - * - * *
      * A list of clients.
      * 
@@ -879,20 +804,17 @@ public Builder removeConnections(int index) { return this; } /** - * - * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public com.google.cloud.apigeeconnect.v1.Connection.Builder getConnectionsBuilder(int index) { + public com.google.cloud.apigeeconnect.v1.Connection.Builder getConnectionsBuilder( + int index) { return getConnectionsFieldBuilder().getBuilder(index); } /** - * - * *
      * A list of clients.
      * 
@@ -902,22 +824,19 @@ public com.google.cloud.apigeeconnect.v1.Connection.Builder getConnectionsBuilde public com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBuilder( int index) { if (connectionsBuilder_ == null) { - return connections_.get(index); - } else { + return connections_.get(index); } else { return connectionsBuilder_.getMessageOrBuilder(index); } } /** - * - * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public java.util.List - getConnectionsOrBuilderList() { + public java.util.List + getConnectionsOrBuilderList() { if (connectionsBuilder_ != null) { return connectionsBuilder_.getMessageOrBuilderList(); } else { @@ -925,8 +844,6 @@ public com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBui } } /** - * - * *
      * A list of clients.
      * 
@@ -934,48 +851,42 @@ public com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBui * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ public com.google.cloud.apigeeconnect.v1.Connection.Builder addConnectionsBuilder() { - return getConnectionsFieldBuilder() - .addBuilder(com.google.cloud.apigeeconnect.v1.Connection.getDefaultInstance()); + return getConnectionsFieldBuilder().addBuilder( + com.google.cloud.apigeeconnect.v1.Connection.getDefaultInstance()); } /** - * - * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public com.google.cloud.apigeeconnect.v1.Connection.Builder addConnectionsBuilder(int index) { - return getConnectionsFieldBuilder() - .addBuilder(index, com.google.cloud.apigeeconnect.v1.Connection.getDefaultInstance()); + public com.google.cloud.apigeeconnect.v1.Connection.Builder addConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder().addBuilder( + index, com.google.cloud.apigeeconnect.v1.Connection.getDefaultInstance()); } /** - * - * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public java.util.List - getConnectionsBuilderList() { + public java.util.List + getConnectionsBuilderList() { return getConnectionsFieldBuilder().getBuilderList(); } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Connection, - com.google.cloud.apigeeconnect.v1.Connection.Builder, - com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder> + com.google.cloud.apigeeconnect.v1.Connection, com.google.cloud.apigeeconnect.v1.Connection.Builder, com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder> getConnectionsFieldBuilder() { if (connectionsBuilder_ == null) { - connectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Connection, - com.google.cloud.apigeeconnect.v1.Connection.Builder, - com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder>( - connections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Connection, com.google.cloud.apigeeconnect.v1.Connection.Builder, com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder>( + connections_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); connections_ = null; } return connectionsBuilder_; @@ -983,21 +894,19 @@ public com.google.cloud.apigeeconnect.v1.Connection.Builder addConnectionsBuilde private java.lang.Object nextPageToken_ = ""; /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -1006,22 +915,21 @@ public java.lang.String getNextPageToken() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { + public com.google.protobuf.ByteString + getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -1029,71 +937,64 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { } } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken(java.lang.String value) { + public Builder setNextPageToken( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** - * - * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; - * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1103,12 +1004,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.ListConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.ListConnectionsResponse) private static final com.google.cloud.apigeeconnect.v1.ListConnectionsResponse DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.ListConnectionsResponse(); } @@ -1117,16 +1018,16 @@ public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1141,4 +1042,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java similarity index 67% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java index 453aa34..cc21161 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java @@ -1,41 +1,22 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -public interface ListConnectionsResponseOrBuilder - extends +public interface ListConnectionsResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.ListConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * A list of clients.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - java.util.List getConnectionsList(); + java.util.List + getConnectionsList(); /** - * - * *
    * A list of clients.
    * 
@@ -44,8 +25,6 @@ public interface ListConnectionsResponseOrBuilder */ com.google.cloud.apigeeconnect.v1.Connection getConnections(int index); /** - * - * *
    * A list of clients.
    * 
@@ -54,51 +33,43 @@ public interface ListConnectionsResponseOrBuilder */ int getConnectionsCount(); /** - * - * *
    * A list of clients.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - java.util.List + java.util.List getConnectionsOrBuilderList(); /** - * - * *
    * A list of clients.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index); + com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBuilder( + int index); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** - * - * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; - * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString getNextPageTokenBytes(); + com.google.protobuf.ByteString + getNextPageTokenBytes(); } diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java similarity index 71% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java index 0905264..75b46d0 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * Payload for EgressRequest.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.Payload} */ -public final class Payload extends com.google.protobuf.GeneratedMessageV3 - implements +public final class Payload extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.Payload) PayloadOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use Payload.newBuilder() to construct. private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - - private Payload() {} + private Payload() { + } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new Payload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private Payload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -68,52 +52,47 @@ private Payload( case 0: done = true; break; - case 10: - { - com.google.cloud.apigeeconnect.v1.HttpRequest.Builder subBuilder = null; - if (kindCase_ == 1) { - subBuilder = ((com.google.cloud.apigeeconnect.v1.HttpRequest) kind_).toBuilder(); - } - kind_ = - input.readMessage( - com.google.cloud.apigeeconnect.v1.HttpRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.apigeeconnect.v1.HttpRequest) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 1; - break; + case 10: { + com.google.cloud.apigeeconnect.v1.HttpRequest.Builder subBuilder = null; + if (kindCase_ == 1) { + subBuilder = ((com.google.cloud.apigeeconnect.v1.HttpRequest) kind_).toBuilder(); } - case 18: - { - com.google.cloud.apigeeconnect.v1.StreamInfo.Builder subBuilder = null; - if (kindCase_ == 2) { - subBuilder = ((com.google.cloud.apigeeconnect.v1.StreamInfo) kind_).toBuilder(); - } - kind_ = - input.readMessage( - com.google.cloud.apigeeconnect.v1.StreamInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.apigeeconnect.v1.StreamInfo) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 2; - break; + kind_ = + input.readMessage(com.google.cloud.apigeeconnect.v1.HttpRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.apigeeconnect.v1.HttpRequest) kind_); + kind_ = subBuilder.buildPartial(); + } + kindCase_ = 1; + break; + } + case 18: { + com.google.cloud.apigeeconnect.v1.StreamInfo.Builder subBuilder = null; + if (kindCase_ == 2) { + subBuilder = ((com.google.cloud.apigeeconnect.v1.StreamInfo) kind_).toBuilder(); } - case 24: - { - int rawValue = input.readEnum(); - kindCase_ = 3; - kind_ = rawValue; - break; + kind_ = + input.readMessage(com.google.cloud.apigeeconnect.v1.StreamInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.apigeeconnect.v1.StreamInfo) kind_); + kind_ = subBuilder.buildPartial(); } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + kindCase_ = 2; + break; + } + case 24: { + int rawValue = input.readEnum(); + kindCase_ = 3; + kind_ = rawValue; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -121,41 +100,36 @@ private Payload( } 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.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Payload.class, - com.google.cloud.apigeeconnect.v1.Payload.Builder.class); + com.google.cloud.apigeeconnect.v1.Payload.class, com.google.cloud.apigeeconnect.v1.Payload.Builder.class); } private int kindCase_ = 0; private java.lang.Object kind_; - public enum KindCase - implements - com.google.protobuf.Internal.EnumLite, + implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { HTTP_REQUEST(1), STREAM_INFO(2), ACTION(3), KIND_NOT_SET(0); private final int value; - private KindCase(int value) { this.value = value; } @@ -171,38 +145,31 @@ public static KindCase valueOf(int value) { public static KindCase forNumber(int value) { switch (value) { - case 1: - return HTTP_REQUEST; - case 2: - return STREAM_INFO; - case 3: - return ACTION; - case 0: - return KIND_NOT_SET; - default: - return null; + case 1: return HTTP_REQUEST; + case 2: return STREAM_INFO; + case 3: return ACTION; + case 0: return KIND_NOT_SET; + default: return null; } } - public int getNumber() { return this.value; } }; - public KindCase getKindCase() { - return KindCase.forNumber(kindCase_); + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); } public static final int HTTP_REQUEST_FIELD_NUMBER = 1; /** - * - * *
    * The HttpRequest proto.
    * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; - * * @return Whether the httpRequest field is set. */ @java.lang.Override @@ -210,26 +177,21 @@ public boolean hasHttpRequest() { return kindCase_ == 1; } /** - * - * *
    * The HttpRequest proto.
    * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; - * * @return The httpRequest. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.HttpRequest getHttpRequest() { if (kindCase_ == 1) { - return (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_; + return (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_; } return com.google.cloud.apigeeconnect.v1.HttpRequest.getDefaultInstance(); } /** - * - * *
    * The HttpRequest proto.
    * 
@@ -239,21 +201,18 @@ public com.google.cloud.apigeeconnect.v1.HttpRequest getHttpRequest() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder getHttpRequestOrBuilder() { if (kindCase_ == 1) { - return (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_; + return (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_; } return com.google.cloud.apigeeconnect.v1.HttpRequest.getDefaultInstance(); } public static final int STREAM_INFO_FIELD_NUMBER = 2; /** - * - * *
    * The information of stream.
    * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; - * * @return Whether the streamInfo field is set. */ @java.lang.Override @@ -261,26 +220,21 @@ public boolean hasStreamInfo() { return kindCase_ == 2; } /** - * - * *
    * The information of stream.
    * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; - * * @return The streamInfo. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.StreamInfo getStreamInfo() { if (kindCase_ == 2) { - return (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_; + return (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_; } return com.google.cloud.apigeeconnect.v1.StreamInfo.getDefaultInstance(); } /** - * - * *
    * The information of stream.
    * 
@@ -290,35 +244,29 @@ public com.google.cloud.apigeeconnect.v1.StreamInfo getStreamInfo() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder getStreamInfoOrBuilder() { if (kindCase_ == 2) { - return (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_; + return (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_; } return com.google.cloud.apigeeconnect.v1.StreamInfo.getDefaultInstance(); } public static final int ACTION_FIELD_NUMBER = 3; /** - * - * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @return Whether the action field is set. */ public boolean hasAction() { return kindCase_ == 3; } /** - * - * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @return The enum numeric value on the wire for action. */ public int getActionValue() { @@ -328,28 +276,24 @@ public int getActionValue() { return 0; } /** - * - * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @return The action. */ public com.google.cloud.apigeeconnect.v1.Action getAction() { if (kindCase_ == 3) { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.Action result = - com.google.cloud.apigeeconnect.v1.Action.valueOf((java.lang.Integer) kind_); + com.google.cloud.apigeeconnect.v1.Action result = com.google.cloud.apigeeconnect.v1.Action.valueOf( + (java.lang.Integer) kind_); return result == null ? com.google.cloud.apigeeconnect.v1.Action.UNRECOGNIZED : result; } return com.google.cloud.apigeeconnect.v1.Action.ACTION_UNSPECIFIED; } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -361,7 +305,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 (kindCase_ == 1) { output.writeMessage(1, (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_); } @@ -381,17 +326,16 @@ public int getSerializedSize() { size = 0; if (kindCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_); } if (kindCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_); } if (kindCase_ == 3) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ((java.lang.Integer) kind_)); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, ((java.lang.Integer) kind_)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -401,24 +345,26 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.Payload)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.Payload other = - (com.google.cloud.apigeeconnect.v1.Payload) obj; + com.google.cloud.apigeeconnect.v1.Payload other = (com.google.cloud.apigeeconnect.v1.Payload) obj; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 1: - if (!getHttpRequest().equals(other.getHttpRequest())) return false; + if (!getHttpRequest() + .equals(other.getHttpRequest())) return false; break; case 2: - if (!getStreamInfo().equals(other.getStreamInfo())) return false; + if (!getStreamInfo() + .equals(other.getStreamInfo())) return false; break; case 3: - if (getActionValue() != other.getActionValue()) return false; + if (getActionValue() + != other.getActionValue()) return false; break; case 0: default: @@ -455,127 +401,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.Payload parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.Payload parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.Payload parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload 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; } /** - * - * *
    * Payload for EgressRequest.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.Payload} */ - 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.apigeeconnect.v1.Payload) com.google.cloud.apigeeconnect.v1.PayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Payload.class, - com.google.cloud.apigeeconnect.v1.Payload.Builder.class); + com.google.cloud.apigeeconnect.v1.Payload.class, com.google.cloud.apigeeconnect.v1.Payload.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.Payload.newBuilder() @@ -583,15 +520,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(); @@ -601,9 +539,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; } @java.lang.Override @@ -622,8 +560,7 @@ public com.google.cloud.apigeeconnect.v1.Payload build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.Payload buildPartial() { - com.google.cloud.apigeeconnect.v1.Payload result = - new com.google.cloud.apigeeconnect.v1.Payload(this); + com.google.cloud.apigeeconnect.v1.Payload result = new com.google.cloud.apigeeconnect.v1.Payload(this); if (kindCase_ == 1) { if (httpRequestBuilder_ == null) { result.kind_ = kind_; @@ -650,39 +587,38 @@ public com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.Payload) other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.Payload)other); } else { super.mergeFrom(other); return this; @@ -692,25 +628,21 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.Payload other) { if (other == com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance()) return this; switch (other.getKindCase()) { - case HTTP_REQUEST: - { - mergeHttpRequest(other.getHttpRequest()); - break; - } - case STREAM_INFO: - { - mergeStreamInfo(other.getStreamInfo()); - break; - } - case ACTION: - { - setActionValue(other.getActionValue()); - break; - } - case KIND_NOT_SET: - { - break; - } + case HTTP_REQUEST: { + mergeHttpRequest(other.getHttpRequest()); + break; + } + case STREAM_INFO: { + mergeStreamInfo(other.getStreamInfo()); + break; + } + case ACTION: { + setActionValue(other.getActionValue()); + break; + } + case KIND_NOT_SET: { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -740,12 +672,12 @@ public Builder mergeFrom( } return this; } - private int kindCase_ = 0; private java.lang.Object kind_; - - public KindCase getKindCase() { - return KindCase.forNumber(kindCase_); + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); } public Builder clearKind() { @@ -755,20 +687,15 @@ public Builder clearKind() { return this; } + private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpRequest, - com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, - com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder> - httpRequestBuilder_; + com.google.cloud.apigeeconnect.v1.HttpRequest, com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder> httpRequestBuilder_; /** - * - * *
      * The HttpRequest proto.
      * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; - * * @return Whether the httpRequest field is set. */ @java.lang.Override @@ -776,14 +703,11 @@ public boolean hasHttpRequest() { return kindCase_ == 1; } /** - * - * *
      * The HttpRequest proto.
      * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; - * * @return The httpRequest. */ @java.lang.Override @@ -801,8 +725,6 @@ public com.google.cloud.apigeeconnect.v1.HttpRequest getHttpRequest() { } } /** - * - * *
      * The HttpRequest proto.
      * 
@@ -823,8 +745,6 @@ public Builder setHttpRequest(com.google.cloud.apigeeconnect.v1.HttpRequest valu return this; } /** - * - * *
      * The HttpRequest proto.
      * 
@@ -843,8 +763,6 @@ public Builder setHttpRequest( return this; } /** - * - * *
      * The HttpRequest proto.
      * 
@@ -853,13 +771,10 @@ public Builder setHttpRequest( */ public Builder mergeHttpRequest(com.google.cloud.apigeeconnect.v1.HttpRequest value) { if (httpRequestBuilder_ == null) { - if (kindCase_ == 1 - && kind_ != com.google.cloud.apigeeconnect.v1.HttpRequest.getDefaultInstance()) { - kind_ = - com.google.cloud.apigeeconnect.v1.HttpRequest.newBuilder( - (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_) - .mergeFrom(value) - .buildPartial(); + if (kindCase_ == 1 && + kind_ != com.google.cloud.apigeeconnect.v1.HttpRequest.getDefaultInstance()) { + kind_ = com.google.cloud.apigeeconnect.v1.HttpRequest.newBuilder((com.google.cloud.apigeeconnect.v1.HttpRequest) kind_) + .mergeFrom(value).buildPartial(); } else { kind_ = value; } @@ -875,8 +790,6 @@ public Builder mergeHttpRequest(com.google.cloud.apigeeconnect.v1.HttpRequest va return this; } /** - * - * *
      * The HttpRequest proto.
      * 
@@ -900,8 +813,6 @@ public Builder clearHttpRequest() { return this; } /** - * - * *
      * The HttpRequest proto.
      * 
@@ -912,8 +823,6 @@ public com.google.cloud.apigeeconnect.v1.HttpRequest.Builder getHttpRequestBuild return getHttpRequestFieldBuilder().getBuilder(); } /** - * - * *
      * The HttpRequest proto.
      * 
@@ -932,8 +841,6 @@ public com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder getHttpRequestOrBu } } /** - * - * *
      * The HttpRequest proto.
      * 
@@ -941,44 +848,32 @@ public com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder getHttpRequestOrBu * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpRequest, - com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, - com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder> + com.google.cloud.apigeeconnect.v1.HttpRequest, com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder> getHttpRequestFieldBuilder() { if (httpRequestBuilder_ == null) { if (!(kindCase_ == 1)) { kind_ = com.google.cloud.apigeeconnect.v1.HttpRequest.getDefaultInstance(); } - httpRequestBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpRequest, - com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, - com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder>( + httpRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.HttpRequest, com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder>( (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 1; - onChanged(); - ; + onChanged();; return httpRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.StreamInfo, - com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, - com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder> - streamInfoBuilder_; + com.google.cloud.apigeeconnect.v1.StreamInfo, com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder> streamInfoBuilder_; /** - * - * *
      * The information of stream.
      * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; - * * @return Whether the streamInfo field is set. */ @java.lang.Override @@ -986,14 +881,11 @@ public boolean hasStreamInfo() { return kindCase_ == 2; } /** - * - * *
      * The information of stream.
      * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; - * * @return The streamInfo. */ @java.lang.Override @@ -1011,8 +903,6 @@ public com.google.cloud.apigeeconnect.v1.StreamInfo getStreamInfo() { } } /** - * - * *
      * The information of stream.
      * 
@@ -1033,8 +923,6 @@ public Builder setStreamInfo(com.google.cloud.apigeeconnect.v1.StreamInfo value) return this; } /** - * - * *
      * The information of stream.
      * 
@@ -1053,8 +941,6 @@ public Builder setStreamInfo( return this; } /** - * - * *
      * The information of stream.
      * 
@@ -1063,13 +949,10 @@ public Builder setStreamInfo( */ public Builder mergeStreamInfo(com.google.cloud.apigeeconnect.v1.StreamInfo value) { if (streamInfoBuilder_ == null) { - if (kindCase_ == 2 - && kind_ != com.google.cloud.apigeeconnect.v1.StreamInfo.getDefaultInstance()) { - kind_ = - com.google.cloud.apigeeconnect.v1.StreamInfo.newBuilder( - (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_) - .mergeFrom(value) - .buildPartial(); + if (kindCase_ == 2 && + kind_ != com.google.cloud.apigeeconnect.v1.StreamInfo.getDefaultInstance()) { + kind_ = com.google.cloud.apigeeconnect.v1.StreamInfo.newBuilder((com.google.cloud.apigeeconnect.v1.StreamInfo) kind_) + .mergeFrom(value).buildPartial(); } else { kind_ = value; } @@ -1085,8 +968,6 @@ public Builder mergeStreamInfo(com.google.cloud.apigeeconnect.v1.StreamInfo valu return this; } /** - * - * *
      * The information of stream.
      * 
@@ -1110,8 +991,6 @@ public Builder clearStreamInfo() { return this; } /** - * - * *
      * The information of stream.
      * 
@@ -1122,8 +1001,6 @@ public com.google.cloud.apigeeconnect.v1.StreamInfo.Builder getStreamInfoBuilder return getStreamInfoFieldBuilder().getBuilder(); } /** - * - * *
      * The information of stream.
      * 
@@ -1142,8 +1019,6 @@ public com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder getStreamInfoOrBuil } } /** - * - * *
      * The information of stream.
      * 
@@ -1151,39 +1026,30 @@ public com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder getStreamInfoOrBuil * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.StreamInfo, - com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, - com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder> + com.google.cloud.apigeeconnect.v1.StreamInfo, com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder> getStreamInfoFieldBuilder() { if (streamInfoBuilder_ == null) { if (!(kindCase_ == 2)) { kind_ = com.google.cloud.apigeeconnect.v1.StreamInfo.getDefaultInstance(); } - streamInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.StreamInfo, - com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, - com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder>( + streamInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.StreamInfo, com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder>( (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 2; - onChanged(); - ; + onChanged();; return streamInfoBuilder_; } /** - * - * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @return Whether the action field is set. */ @java.lang.Override @@ -1191,14 +1057,11 @@ public boolean hasAction() { return kindCase_ == 3; } /** - * - * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @return The enum numeric value on the wire for action. */ @java.lang.Override @@ -1209,14 +1072,11 @@ public int getActionValue() { return 0; } /** - * - * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ @@ -1227,35 +1087,29 @@ public Builder setActionValue(int value) { return this; } /** - * - * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @return The action. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.Action getAction() { if (kindCase_ == 3) { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.Action result = - com.google.cloud.apigeeconnect.v1.Action.valueOf((java.lang.Integer) kind_); + com.google.cloud.apigeeconnect.v1.Action result = com.google.cloud.apigeeconnect.v1.Action.valueOf( + (java.lang.Integer) kind_); return result == null ? com.google.cloud.apigeeconnect.v1.Action.UNRECOGNIZED : result; } return com.google.cloud.apigeeconnect.v1.Action.ACTION_UNSPECIFIED; } /** - * - * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @param value The action to set. * @return This builder for chaining. */ @@ -1269,14 +1123,11 @@ public Builder setAction(com.google.cloud.apigeeconnect.v1.Action value) { return this; } /** - * - * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @return This builder for chaining. */ public Builder clearAction() { @@ -1287,9 +1138,9 @@ public Builder clearAction() { } 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); } @@ -1299,12 +1150,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.Payload) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.Payload) private static final com.google.cloud.apigeeconnect.v1.Payload DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.Payload(); } @@ -1313,16 +1164,16 @@ public static com.google.cloud.apigeeconnect.v1.Payload getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Payload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Payload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Payload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Payload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1337,4 +1188,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.Payload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java similarity index 75% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java index 15f138d..85d5973 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java @@ -1,55 +1,31 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface PayloadOrBuilder - extends +public interface PayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.Payload) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * The HttpRequest proto.
    * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; - * * @return Whether the httpRequest field is set. */ boolean hasHttpRequest(); /** - * - * *
    * The HttpRequest proto.
    * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; - * * @return The httpRequest. */ com.google.cloud.apigeeconnect.v1.HttpRequest getHttpRequest(); /** - * - * *
    * The HttpRequest proto.
    * 
@@ -59,32 +35,24 @@ public interface PayloadOrBuilder com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder getHttpRequestOrBuilder(); /** - * - * *
    * The information of stream.
    * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; - * * @return Whether the streamInfo field is set. */ boolean hasStreamInfo(); /** - * - * *
    * The information of stream.
    * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; - * * @return The streamInfo. */ com.google.cloud.apigeeconnect.v1.StreamInfo getStreamInfo(); /** - * - * *
    * The information of stream.
    * 
@@ -94,38 +62,29 @@ public interface PayloadOrBuilder com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder getStreamInfoOrBuilder(); /** - * - * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @return Whether the action field is set. */ boolean hasAction(); /** - * - * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** - * - * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; - * * @return The action. */ com.google.cloud.apigeeconnect.v1.Action getAction(); diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java similarity index 65% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java index 4acc6df..7b80d34 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * HTTP Scheme.
  * 
* * Protobuf enum {@code google.cloud.apigeeconnect.v1.Scheme} */ -public enum Scheme implements com.google.protobuf.ProtocolMessageEnum { +public enum Scheme + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified scheme.
    * 
@@ -39,8 +21,6 @@ public enum Scheme implements com.google.protobuf.ProtocolMessageEnum { */ SCHEME_UNSPECIFIED(0), /** - * - * *
    * HTTPS protocol.
    * 
@@ -52,8 +32,6 @@ public enum Scheme implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified scheme.
    * 
@@ -62,8 +40,6 @@ public enum Scheme implements com.google.protobuf.ProtocolMessageEnum { */ public static final int SCHEME_UNSPECIFIED_VALUE = 0; /** - * - * *
    * HTTPS protocol.
    * 
@@ -72,6 +48,7 @@ public enum Scheme implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HTTPS_VALUE = 1; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -96,47 +73,48 @@ public static Scheme valueOf(int value) { */ public static Scheme forNumber(int value) { switch (value) { - case 0: - return SCHEME_UNSPECIFIED; - case 1: - return HTTPS; - default: - return null; + case 0: return SCHEME_UNSPECIFIED; + case 1: return HTTPS; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Scheme findValueByNumber(int number) { - return Scheme.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + Scheme> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scheme findValueByNumber(int number) { + return Scheme.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.apigeeconnect.v1.TetherProto.getDescriptor().getEnumTypes().get(2); } private static final Scheme[] VALUES = values(); - public static Scheme valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Scheme valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -152,3 +130,4 @@ private Scheme(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.apigeeconnect.v1.Scheme) } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java similarity index 68% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java index 6a0f232..d251c13 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java @@ -1,57 +1,40 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * The Information of bi-directional stream.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.StreamInfo} */ -public final class StreamInfo extends com.google.protobuf.GeneratedMessageV3 - implements +public final class StreamInfo extends + com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.StreamInfo) StreamInfoOrBuilder { - private static final long serialVersionUID = 0L; +private static final long serialVersionUID = 0L; // Use StreamInfo.newBuilder() to construct. private StreamInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private StreamInfo() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { return new StreamInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { return this.unknownFields; } - private StreamInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -70,20 +53,19 @@ private StreamInfo( case 0: done = true; break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); + case 10: { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; + id_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; } + break; + } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -91,39 +73,34 @@ private StreamInfo( } 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.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.StreamInfo.class, - com.google.cloud.apigeeconnect.v1.StreamInfo.Builder.class); + com.google.cloud.apigeeconnect.v1.StreamInfo.class, com.google.cloud.apigeeconnect.v1.StreamInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** - * - * *
    * Unique identifier for the stream.
    * 
* * string id = 1; - * * @return The id. */ @java.lang.Override @@ -132,29 +109,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** - * - * *
    * Unique identifier for the stream.
    * 
* * string id = 1; - * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -163,7 +140,6 @@ public com.google.protobuf.ByteString getIdBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -175,7 +151,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -199,15 +176,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.apigeeconnect.v1.StreamInfo)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.StreamInfo other = - (com.google.cloud.apigeeconnect.v1.StreamInfo) obj; + com.google.cloud.apigeeconnect.v1.StreamInfo other = (com.google.cloud.apigeeconnect.v1.StreamInfo) obj; - if (!getId().equals(other.getId())) return false; + if (!getId() + .equals(other.getId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -226,127 +203,118 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.StreamInfo parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.StreamInfo parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + public static com.google.cloud.apigeeconnect.v1.StreamInfo parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo 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 Information of bi-directional stream.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.StreamInfo} */ - 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.apigeeconnect.v1.StreamInfo) com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.StreamInfo.class, - com.google.cloud.apigeeconnect.v1.StreamInfo.Builder.class); + com.google.cloud.apigeeconnect.v1.StreamInfo.class, com.google.cloud.apigeeconnect.v1.StreamInfo.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.StreamInfo.newBuilder() @@ -354,15 +322,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(); @@ -372,9 +341,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto - .internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; } @java.lang.Override @@ -393,8 +362,7 @@ public com.google.cloud.apigeeconnect.v1.StreamInfo build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.StreamInfo buildPartial() { - com.google.cloud.apigeeconnect.v1.StreamInfo result = - new com.google.cloud.apigeeconnect.v1.StreamInfo(this); + com.google.cloud.apigeeconnect.v1.StreamInfo result = new com.google.cloud.apigeeconnect.v1.StreamInfo(this); result.id_ = id_; onBuilt(); return result; @@ -404,39 +372,38 @@ public com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.StreamInfo) other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.StreamInfo)other); } else { super.mergeFrom(other); return this; @@ -480,20 +447,18 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** - * - * *
      * Unique identifier for the stream.
      * 
* * string id = 1; - * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -502,21 +467,20 @@ public java.lang.String getId() { } } /** - * - * *
      * Unique identifier for the stream.
      * 
* * string id = 1; - * * @return The bytes for id. */ - public com.google.protobuf.ByteString getIdBytes() { + public com.google.protobuf.ByteString + getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -524,68 +488,61 @@ public com.google.protobuf.ByteString getIdBytes() { } } /** - * - * *
      * Unique identifier for the stream.
      * 
* * string id = 1; - * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId(java.lang.String value) { + public Builder setId( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** - * - * *
      * Unique identifier for the stream.
      * 
* * string id = 1; - * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** - * - * *
      * Unique identifier for the stream.
      * 
* * string id = 1; - * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes(com.google.protobuf.ByteString value) { + public Builder setIdBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -595,12 +552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.StreamInfo) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.StreamInfo) private static final com.google.cloud.apigeeconnect.v1.StreamInfo DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.StreamInfo(); } @@ -609,16 +566,16 @@ public static com.google.cloud.apigeeconnect.v1.StreamInfo getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -633,4 +590,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.StreamInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java new file mode 100644 index 0000000..8a2aa2e --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java @@ -0,0 +1,29 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/apigeeconnect/v1/tether.proto + +package com.google.cloud.apigeeconnect.v1; + +public interface StreamInfoOrBuilder extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.StreamInfo) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Unique identifier for the stream.
+   * 
+ * + * string id = 1; + * @return The id. + */ + java.lang.String getId(); + /** + *
+   * Unique identifier for the stream.
+   * 
+ * + * string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); +} diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java similarity index 67% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java index 8b78e05..81087f9 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java @@ -1,36 +1,18 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * Endpoint indicates where the messages will be delivered.
  * 
* * Protobuf enum {@code google.cloud.apigeeconnect.v1.TetherEndpoint} */ -public enum TetherEndpoint implements com.google.protobuf.ProtocolMessageEnum { +public enum TetherEndpoint + implements com.google.protobuf.ProtocolMessageEnum { /** - * - * *
    * Unspecified tether endpoint.
    * 
@@ -39,8 +21,6 @@ public enum TetherEndpoint implements com.google.protobuf.ProtocolMessageEnum { */ TETHER_ENDPOINT_UNSPECIFIED(0), /** - * - * *
    * Apigee MART endpoint.
    * 
@@ -49,8 +29,6 @@ public enum TetherEndpoint implements com.google.protobuf.ProtocolMessageEnum { */ APIGEE_MART(1), /** - * - * *
    * Apigee Runtime endpoint.
    * 
@@ -59,8 +37,6 @@ public enum TetherEndpoint implements com.google.protobuf.ProtocolMessageEnum { */ APIGEE_RUNTIME(2), /** - * - * *
    * Apigee Mint Rating endpoint.
    * 
@@ -72,8 +48,6 @@ public enum TetherEndpoint implements com.google.protobuf.ProtocolMessageEnum { ; /** - * - * *
    * Unspecified tether endpoint.
    * 
@@ -82,8 +56,6 @@ public enum TetherEndpoint implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TETHER_ENDPOINT_UNSPECIFIED_VALUE = 0; /** - * - * *
    * Apigee MART endpoint.
    * 
@@ -92,8 +64,6 @@ public enum TetherEndpoint implements com.google.protobuf.ProtocolMessageEnum { */ public static final int APIGEE_MART_VALUE = 1; /** - * - * *
    * Apigee Runtime endpoint.
    * 
@@ -102,8 +72,6 @@ public enum TetherEndpoint implements com.google.protobuf.ProtocolMessageEnum { */ public static final int APIGEE_RUNTIME_VALUE = 2; /** - * - * *
    * Apigee Mint Rating endpoint.
    * 
@@ -112,6 +80,7 @@ public enum TetherEndpoint implements com.google.protobuf.ProtocolMessageEnum { */ public static final int APIGEE_MINT_RATING_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -136,51 +105,50 @@ public static TetherEndpoint valueOf(int value) { */ public static TetherEndpoint forNumber(int value) { switch (value) { - case 0: - return TETHER_ENDPOINT_UNSPECIFIED; - case 1: - return APIGEE_MART; - case 2: - return APIGEE_RUNTIME; - case 3: - return APIGEE_MINT_RATING; - default: - return null; + case 0: return TETHER_ENDPOINT_UNSPECIFIED; + case 1: return APIGEE_MART; + case 2: return APIGEE_RUNTIME; + case 3: return APIGEE_MINT_RATING; + default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { return internalValueMap; } - - private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TetherEndpoint findValueByNumber(int number) { - return TetherEndpoint.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + private static final com.google.protobuf.Internal.EnumLiteMap< + TetherEndpoint> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TetherEndpoint findValueByNumber(int number) { + return TetherEndpoint.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { return getDescriptor(); } - - public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { return com.google.cloud.apigeeconnect.v1.TetherProto.getDescriptor().getEnumTypes().get(1); } private static final TetherEndpoint[] VALUES = values(); - public static TetherEndpoint valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TetherEndpoint valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -196,3 +164,4 @@ private TetherEndpoint(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.apigeeconnect.v1.TetherEndpoint) } + diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java new file mode 100644 index 0000000..d3e9601 --- /dev/null +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java @@ -0,0 +1,184 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/cloud/apigeeconnect/v1/tether.proto + +package com.google.cloud.apigeeconnect.v1; + +public final class TetherProto { + private TetherProto() {} + 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_apigeeconnect_v1_EgressRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_Url_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/apigeeconnect/v1/tether.p" + + "roto\022\035google.cloud.apigeeconnect.v1\032\036goo" + + "gle/protobuf/duration.proto\032\027google/rpc/" + + "status.proto\032\027google/api/client.proto\"\344\001" + + "\n\rEgressRequest\022\n\n\002id\030\001 \001(\t\0227\n\007payload\030\002" + + " \001(\0132&.google.cloud.apigeeconnect.v1.Pay" + + "load\022?\n\010endpoint\030\003 \001(\0162-.google.cloud.ap" + + "igeeconnect.v1.TetherEndpoint\022\017\n\007project" + + "\030\004 \001(\t\022\020\n\010trace_id\030\005 \001(\t\022*\n\007timeout\030\006 \001(" + + "\0132\031.google.protobuf.Duration\"\320\001\n\007Payload" + + "\022B\n\014http_request\030\001 \001(\0132*.google.cloud.ap" + + "igeeconnect.v1.HttpRequestH\000\022@\n\013stream_i" + + "nfo\030\002 \001(\0132).google.cloud.apigeeconnect.v" + + "1.StreamInfoH\000\0227\n\006action\030\003 \001(\0162%.google." + + "cloud.apigeeconnect.v1.ActionH\000B\006\n\004kind\"" + + "\030\n\nStreamInfo\022\n\n\002id\030\001 \001(\t\"\366\001\n\016EgressResp" + + "onse\022\n\n\002id\030\001 \001(\t\022B\n\rhttp_response\030\002 \001(\0132" + + "+.google.cloud.apigeeconnect.v1.HttpResp" + + "onse\022\"\n\006status\030\003 \001(\0132\022.google.rpc.Status" + + "\022\017\n\007project\030\004 \001(\t\022\020\n\010trace_id\030\005 \001(\t\022?\n\010e" + + "ndpoint\030\006 \001(\0162-.google.cloud.apigeeconne" + + "ct.v1.TetherEndpoint\022\014\n\004name\030\007 \001(\t\"\240\001\n\013H" + + "ttpRequest\022\n\n\002id\030\001 \001(\t\022\016\n\006method\030\002 \001(\t\022/" + + "\n\003url\030\003 \001(\0132\".google.cloud.apigeeconnect" + + ".v1.Url\0226\n\007headers\030\004 \003(\0132%.google.cloud." + + "apigeeconnect.v1.Header\022\014\n\004body\030\005 \001(\014\"X\n" + + "\003Url\0225\n\006scheme\030\001 \001(\0162%.google.cloud.apig" + + "eeconnect.v1.Scheme\022\014\n\004host\030\002 \001(\t\022\014\n\004pat" + + "h\030\003 \001(\t\"%\n\006Header\022\013\n\003key\030\001 \001(\t\022\016\n\006values" + + "\030\002 \003(\t\"\235\001\n\014HttpResponse\022\n\n\002id\030\001 \001(\t\022\016\n\006s" + + "tatus\030\002 \001(\t\022\023\n\013status_code\030\003 \001(\005\022\014\n\004body" + + "\030\004 \001(\014\0226\n\007headers\030\005 \003(\0132%.google.cloud.a" + + "pigeeconnect.v1.Header\022\026\n\016content_length" + + "\030\006 \001(\003*5\n\006Action\022\026\n\022ACTION_UNSPECIFIED\020\000" + + "\022\023\n\017OPEN_NEW_STREAM\020\001*n\n\016TetherEndpoint\022" + + "\037\n\033TETHER_ENDPOINT_UNSPECIFIED\020\000\022\017\n\013APIG" + + "EE_MART\020\001\022\022\n\016APIGEE_RUNTIME\020\002\022\026\n\022APIGEE_" + + "MINT_RATING\020\003*+\n\006Scheme\022\026\n\022SCHEME_UNSPEC" + + "IFIED\020\000\022\t\n\005HTTPS\020\0012\307\001\n\006Tether\022k\n\006Egress\022" + + "-.google.cloud.apigeeconnect.v1.EgressRe" + + "sponse\032,.google.cloud.apigeeconnect.v1.E" + + "gressRequest\"\000(\0010\001\032P\312A\034apigeeconnect.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\341\001\n!com.google.clou" + + "d.apigeeconnect.v1B\013TetherProtoP\001ZJgoogl" + + "e.golang.org/genproto/googleapis/cloud/a" + + "pigeeconnect/v1;apigeeconnect\252\002\035Google.C" + + "loud.ApigeeConnect.V1\312\002\035Google\\Cloud\\Api" + + "geeConnect\\V1\352\002 Google::Cloud::ApigeeCon" + + "nect::V1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor, + new java.lang.String[] { "Id", "Payload", "Endpoint", "Project", "TraceId", "Timeout", }); + internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor, + new java.lang.String[] { "HttpRequest", "StreamInfo", "Action", "Kind", }); + internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor, + new java.lang.String[] { "Id", }); + internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor, + new java.lang.String[] { "Id", "HttpResponse", "Status", "Project", "TraceId", "Endpoint", "Name", }); + internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor, + new java.lang.String[] { "Id", "Method", "Url", "Headers", "Body", }); + internal_static_google_cloud_apigeeconnect_v1_Url_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_Url_descriptor, + new java.lang.String[] { "Scheme", "Host", "Path", }); + internal_static_google_cloud_apigeeconnect_v1_Header_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_Header_descriptor, + new java.lang.String[] { "Key", "Values", }); + internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor, + new java.lang.String[] { "Id", "Status", "StatusCode", "Body", "Headers", "ContentLength", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java similarity index 70% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java index 427f9d7..44b90ea 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java @@ -1,26 +1,9 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** - * - * *
  * The proto definition of url.
  * A url represents a URL and the general form represented is:
@@ -29,16 +12,15 @@
  *
  * Protobuf type {@code google.cloud.apigeeconnect.v1.Url}
  */
-public final class Url extends com.google.protobuf.GeneratedMessageV3
-    implements
+public final class Url extends
+    com.google.protobuf.GeneratedMessageV3 implements
     // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.Url)
     UrlOrBuilder {
-  private static final long serialVersionUID = 0L;
+private static final long serialVersionUID = 0L;
   // Use Url.newBuilder() to construct.
   private Url(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
-
   private Url() {
     scheme_ = 0;
     host_ = "";
@@ -47,15 +29,16 @@ private Url() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(
+      UnusedPrivateParameter unused) {
     return new Url();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet
+  getUnknownFields() {
     return this.unknownFields;
   }
-
   private Url(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -74,34 +57,31 @@ private Url(
           case 0:
             done = true;
             break;
-          case 8:
-            {
-              int rawValue = input.readEnum();
+          case 8: {
+            int rawValue = input.readEnum();
 
-              scheme_ = rawValue;
-              break;
-            }
-          case 18:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            scheme_ = rawValue;
+            break;
+          }
+          case 18: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              host_ = s;
-              break;
-            }
-          case 26:
-            {
-              java.lang.String s = input.readStringRequireUtf8();
+            host_ = s;
+            break;
+          }
+          case 26: {
+            java.lang.String s = input.readStringRequireUtf8();
 
-              path_ = s;
-              break;
-            }
-          default:
-            {
-              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
+            path_ = s;
+            break;
+          }
+          default: {
+            if (!parseUnknownField(
+                input, unknownFields, extensionRegistry, tag)) {
+              done = true;
             }
+            break;
+          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -109,75 +89,61 @@ private Url(
     } 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.apigeeconnect.v1.TetherProto
-        .internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
+  public static final com.google.protobuf.Descriptors.Descriptor
+      getDescriptor() {
+    return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.apigeeconnect.v1.TetherProto
-        .internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable
+    return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.apigeeconnect.v1.Url.class,
-            com.google.cloud.apigeeconnect.v1.Url.Builder.class);
+            com.google.cloud.apigeeconnect.v1.Url.class, com.google.cloud.apigeeconnect.v1.Url.Builder.class);
   }
 
   public static final int SCHEME_FIELD_NUMBER = 1;
   private int scheme_;
   /**
-   *
-   *
    * 
    * Scheme.
    * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * * @return The enum numeric value on the wire for scheme. */ - @java.lang.Override - public int getSchemeValue() { + @java.lang.Override public int getSchemeValue() { return scheme_; } /** - * - * *
    * Scheme.
    * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * * @return The scheme. */ - @java.lang.Override - public com.google.cloud.apigeeconnect.v1.Scheme getScheme() { + @java.lang.Override public com.google.cloud.apigeeconnect.v1.Scheme getScheme() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.Scheme result = - com.google.cloud.apigeeconnect.v1.Scheme.valueOf(scheme_); + com.google.cloud.apigeeconnect.v1.Scheme result = com.google.cloud.apigeeconnect.v1.Scheme.valueOf(scheme_); return result == null ? com.google.cloud.apigeeconnect.v1.Scheme.UNRECOGNIZED : result; } public static final int HOST_FIELD_NUMBER = 2; private volatile java.lang.Object host_; /** - * - * *
    * Host or Host:Port.
    * 
* * string host = 2; - * * @return The host. */ @java.lang.Override @@ -186,29 +152,29 @@ public java.lang.String getHost() { 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(); host_ = s; return s; } } /** - * - * *
    * Host or Host:Port.
    * 
* * string host = 2; - * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; 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); host_ = b; return b; } else { @@ -219,14 +185,11 @@ public com.google.protobuf.ByteString getHostBytes() { public static final int PATH_FIELD_NUMBER = 3; private volatile java.lang.Object path_; /** - * - * *
    * Path starts with `/`.
    * 
* * string path = 3; - * * @return The path. */ @java.lang.Override @@ -235,29 +198,29 @@ public java.lang.String getPath() { 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(); path_ = s; return s; } } /** - * - * *
    * Path starts with `/`.
    * 
* * string path = 3; - * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; 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); path_ = b; return b; } else { @@ -266,7 +229,6 @@ public com.google.protobuf.ByteString getPathBytes() { } private byte memoizedIsInitialized = -1; - @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -278,7 +240,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 (scheme_ != com.google.cloud.apigeeconnect.v1.Scheme.SCHEME_UNSPECIFIED.getNumber()) { output.writeEnum(1, scheme_); } @@ -298,7 +261,8 @@ public int getSerializedSize() { size = 0; if (scheme_ != com.google.cloud.apigeeconnect.v1.Scheme.SCHEME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scheme_); + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, scheme_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, host_); @@ -314,7 +278,7 @@ 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.apigeeconnect.v1.Url)) { return super.equals(obj); @@ -322,8 +286,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.apigeeconnect.v1.Url other = (com.google.cloud.apigeeconnect.v1.Url) obj; if (scheme_ != other.scheme_) return false; - if (!getHost().equals(other.getHost())) return false; - if (!getPath().equals(other.getPath())) return false; + if (!getHost() + .equals(other.getHost())) return false; + if (!getPath() + .equals(other.getPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -346,103 +312,97 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.Url parseFrom(java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.Url parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url parseFrom(com.google.protobuf.ByteString data) + public static com.google.cloud.apigeeconnect.v1.Url parseFrom( + com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url 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 proto definition of url.
    * A url represents a URL and the general form represented is:
@@ -451,23 +411,21 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
    *
    * Protobuf type {@code google.cloud.apigeeconnect.v1.Url}
    */
-  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.apigeeconnect.v1.Url)
       com.google.cloud.apigeeconnect.v1.UrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
-      return com.google.cloud.apigeeconnect.v1.TetherProto
-          .internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor
+        getDescriptor() {
+      return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.apigeeconnect.v1.TetherProto
-          .internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable
+      return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.apigeeconnect.v1.Url.class,
-              com.google.cloud.apigeeconnect.v1.Url.Builder.class);
+              com.google.cloud.apigeeconnect.v1.Url.class, com.google.cloud.apigeeconnect.v1.Url.Builder.class);
     }
 
     // Construct using com.google.cloud.apigeeconnect.v1.Url.newBuilder()
@@ -475,15 +433,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();
@@ -497,9 +456,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
-      return com.google.cloud.apigeeconnect.v1.TetherProto
-          .internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor
+        getDescriptorForType() {
+      return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
     }
 
     @java.lang.Override
@@ -518,8 +477,7 @@ public com.google.cloud.apigeeconnect.v1.Url build() {
 
     @java.lang.Override
     public com.google.cloud.apigeeconnect.v1.Url buildPartial() {
-      com.google.cloud.apigeeconnect.v1.Url result =
-          new com.google.cloud.apigeeconnect.v1.Url(this);
+      com.google.cloud.apigeeconnect.v1.Url result = new com.google.cloud.apigeeconnect.v1.Url(this);
       result.scheme_ = scheme_;
       result.host_ = host_;
       result.path_ = path_;
@@ -531,39 +489,38 @@ public com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url) {
-        return mergeFrom((com.google.cloud.apigeeconnect.v1.Url) other);
+        return mergeFrom((com.google.cloud.apigeeconnect.v1.Url)other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -614,65 +571,51 @@ public Builder mergeFrom(
 
     private int scheme_ = 0;
     /**
-     *
-     *
      * 
      * Scheme.
      * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * * @return The enum numeric value on the wire for scheme. */ - @java.lang.Override - public int getSchemeValue() { + @java.lang.Override public int getSchemeValue() { return scheme_; } /** - * - * *
      * Scheme.
      * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * * @param value The enum numeric value on the wire for scheme to set. * @return This builder for chaining. */ public Builder setSchemeValue(int value) { - + scheme_ = value; onChanged(); return this; } /** - * - * *
      * Scheme.
      * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * * @return The scheme. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.Scheme getScheme() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.Scheme result = - com.google.cloud.apigeeconnect.v1.Scheme.valueOf(scheme_); + com.google.cloud.apigeeconnect.v1.Scheme result = com.google.cloud.apigeeconnect.v1.Scheme.valueOf(scheme_); return result == null ? com.google.cloud.apigeeconnect.v1.Scheme.UNRECOGNIZED : result; } /** - * - * *
      * Scheme.
      * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * * @param value The scheme to set. * @return This builder for chaining. */ @@ -680,24 +623,21 @@ public Builder setScheme(com.google.cloud.apigeeconnect.v1.Scheme value) { if (value == null) { throw new NullPointerException(); } - + scheme_ = value.getNumber(); onChanged(); return this; } /** - * - * *
      * Scheme.
      * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * * @return This builder for chaining. */ public Builder clearScheme() { - + scheme_ = 0; onChanged(); return this; @@ -705,20 +645,18 @@ public Builder clearScheme() { private java.lang.Object host_ = ""; /** - * - * *
      * Host or Host:Port.
      * 
* * string host = 2; - * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; 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(); host_ = s; return s; @@ -727,21 +665,20 @@ public java.lang.String getHost() { } } /** - * - * *
      * Host or Host:Port.
      * 
* * string host = 2; - * * @return The bytes for host. */ - public com.google.protobuf.ByteString getHostBytes() { + public com.google.protobuf.ByteString + getHostBytes() { java.lang.Object ref = host_; 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); host_ = b; return b; } else { @@ -749,61 +686,54 @@ public com.google.protobuf.ByteString getHostBytes() { } } /** - * - * *
      * Host or Host:Port.
      * 
* * string host = 2; - * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost(java.lang.String value) { + public Builder setHost( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + host_ = value; onChanged(); return this; } /** - * - * *
      * Host or Host:Port.
      * 
* * string host = 2; - * * @return This builder for chaining. */ public Builder clearHost() { - + host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** - * - * *
      * Host or Host:Port.
      * 
* * string host = 2; - * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes(com.google.protobuf.ByteString value) { + public Builder setHostBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; onChanged(); return this; @@ -811,20 +741,18 @@ public Builder setHostBytes(com.google.protobuf.ByteString value) { private java.lang.Object path_ = ""; /** - * - * *
      * Path starts with `/`.
      * 
* * string path = 3; - * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; @@ -833,21 +761,20 @@ public java.lang.String getPath() { } } /** - * - * *
      * Path starts with `/`.
      * 
* * string path = 3; - * * @return The bytes for path. */ - public com.google.protobuf.ByteString getPathBytes() { + public com.google.protobuf.ByteString + getPathBytes() { java.lang.Object ref = path_; 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); path_ = b; return b; } else { @@ -855,68 +782,61 @@ public com.google.protobuf.ByteString getPathBytes() { } } /** - * - * *
      * Path starts with `/`.
      * 
* * string path = 3; - * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath(java.lang.String value) { + public Builder setPath( + java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** - * - * *
      * Path starts with `/`.
      * 
* * string path = 3; - * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** - * - * *
      * Path starts with `/`.
      * 
* * string path = 3; - * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes(com.google.protobuf.ByteString value) { + public Builder setPathBytes( + com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -926,12 +846,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } + // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.Url) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.Url) private static final com.google.cloud.apigeeconnect.v1.Url DEFAULT_INSTANCE; - static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.Url(); } @@ -940,16 +860,16 @@ public static com.google.cloud.apigeeconnect.v1.Url getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Url parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Url(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Url parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Url(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -964,4 +884,6 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.Url getDefaultInstanceForType() { return DEFAULT_INSTANCE; } + } + diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java similarity index 60% rename from proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java index a6be2b1..68cc565 100644 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java +++ b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java @@ -1,100 +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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface UrlOrBuilder - extends +public interface UrlOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.Url) com.google.protobuf.MessageOrBuilder { /** - * - * *
    * Scheme.
    * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * * @return The enum numeric value on the wire for scheme. */ int getSchemeValue(); /** - * - * *
    * Scheme.
    * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; - * * @return The scheme. */ com.google.cloud.apigeeconnect.v1.Scheme getScheme(); /** - * - * *
    * Host or Host:Port.
    * 
* * string host = 2; - * * @return The host. */ java.lang.String getHost(); /** - * - * *
    * Host or Host:Port.
    * 
* * string host = 2; - * * @return The bytes for host. */ - com.google.protobuf.ByteString getHostBytes(); + com.google.protobuf.ByteString + getHostBytes(); /** - * - * *
    * Path starts with `/`.
    * 
* * string path = 3; - * * @return The path. */ java.lang.String getPath(); /** - * - * *
    * Path starts with `/`.
    * 
* * string path = 3; - * * @return The bytes for path. */ - com.google.protobuf.ByteString getPathBytes(); + com.google.protobuf.ByteString + getPathBytes(); } diff --git a/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/connection.proto b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/connection.proto similarity index 100% rename from proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/connection.proto rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/connection.proto diff --git a/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/tether.proto b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/tether.proto similarity index 100% rename from proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/tether.proto rename to owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/tether.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000..b163415 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_connectionserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient; +import com.google.cloud.apigeeconnect.v1.ConnectionServiceSettings; +import com.google.cloud.apigeeconnect.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ConnectionServiceSettings connectionServiceSettings = + ConnectionServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + ConnectionServiceClient connectionServiceClient = + ConnectionServiceClient.create(connectionServiceSettings); + } +} +// [END apigeeconnect_v1_generated_connectionserviceclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 0000000..9cf2fff --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_connectionserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient; +import com.google.cloud.apigeeconnect.v1.ConnectionServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ConnectionServiceSettings connectionServiceSettings = + ConnectionServiceSettings.newBuilder() + .setTransportChannelProvider( + ConnectionServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + ConnectionServiceClient connectionServiceClient = + ConnectionServiceClient.create(connectionServiceSettings); + } +} +// [END apigeeconnect_v1_generated_connectionserviceclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000..6997871 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_connectionserviceclient_create_setendpoint_sync] +import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient; +import com.google.cloud.apigeeconnect.v1.ConnectionServiceSettings; +import com.google.cloud.apigeeconnect.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ConnectionServiceSettings connectionServiceSettings = + ConnectionServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + ConnectionServiceClient connectionServiceClient = + ConnectionServiceClient.create(connectionServiceSettings); + } +} +// [END apigeeconnect_v1_generated_connectionserviceclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnections.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnections.java new file mode 100644 index 0000000..90a4fe6 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnections.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_connectionserviceclient_listconnections_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.apigeeconnect.v1.Connection; +import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient; +import com.google.cloud.apigeeconnect.v1.EndpointName; +import com.google.cloud.apigeeconnect.v1.ListConnectionsRequest; + +public class AsyncListConnections { + + public static void main(String[] args) throws Exception { + asyncListConnections(); + } + + public static void asyncListConnections() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { + ListConnectionsRequest request = + ListConnectionsRequest.newBuilder() + .setParent(EndpointName.of("[PROJECT]", "[ENDPOINT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + connectionServiceClient.listConnectionsPagedCallable().futureCall(request); + // Do something. + for (Connection element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigeeconnect_v1_generated_connectionserviceclient_listconnections_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnectionsPaged.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnectionsPaged.java new file mode 100644 index 0000000..64b5276 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnectionsPaged.java @@ -0,0 +1,59 @@ +/* + * 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.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_connectionserviceclient_listconnections_paged_async] +import com.google.cloud.apigeeconnect.v1.Connection; +import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient; +import com.google.cloud.apigeeconnect.v1.EndpointName; +import com.google.cloud.apigeeconnect.v1.ListConnectionsRequest; +import com.google.cloud.apigeeconnect.v1.ListConnectionsResponse; +import com.google.common.base.Strings; + +public class AsyncListConnectionsPaged { + + public static void main(String[] args) throws Exception { + asyncListConnectionsPaged(); + } + + public static void asyncListConnectionsPaged() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { + ListConnectionsRequest request = + ListConnectionsRequest.newBuilder() + .setParent(EndpointName.of("[PROJECT]", "[ENDPOINT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListConnectionsResponse response = + connectionServiceClient.listConnectionsCallable().call(request); + for (Connection element : response.getConnectionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END apigeeconnect_v1_generated_connectionserviceclient_listconnections_paged_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnections.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnections.java new file mode 100644 index 0000000..50ce913 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnections.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_connectionserviceclient_listconnections_sync] +import com.google.cloud.apigeeconnect.v1.Connection; +import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient; +import com.google.cloud.apigeeconnect.v1.EndpointName; +import com.google.cloud.apigeeconnect.v1.ListConnectionsRequest; + +public class SyncListConnections { + + public static void main(String[] args) throws Exception { + syncListConnections(); + } + + public static void syncListConnections() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { + ListConnectionsRequest request = + ListConnectionsRequest.newBuilder() + .setParent(EndpointName.of("[PROJECT]", "[ENDPOINT]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Connection element : connectionServiceClient.listConnections(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigeeconnect_v1_generated_connectionserviceclient_listconnections_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsEndpointname.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsEndpointname.java new file mode 100644 index 0000000..bd5f579 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsEndpointname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_connectionserviceclient_listconnections_endpointname_sync] +import com.google.cloud.apigeeconnect.v1.Connection; +import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient; +import com.google.cloud.apigeeconnect.v1.EndpointName; + +public class SyncListConnectionsEndpointname { + + public static void main(String[] args) throws Exception { + syncListConnectionsEndpointname(); + } + + public static void syncListConnectionsEndpointname() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { + EndpointName parent = EndpointName.of("[PROJECT]", "[ENDPOINT]"); + for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigeeconnect_v1_generated_connectionserviceclient_listconnections_endpointname_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsString.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsString.java new file mode 100644 index 0000000..2f0f455 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_connectionserviceclient_listconnections_string_sync] +import com.google.cloud.apigeeconnect.v1.Connection; +import com.google.cloud.apigeeconnect.v1.ConnectionServiceClient; +import com.google.cloud.apigeeconnect.v1.EndpointName; + +public class SyncListConnectionsString { + + public static void main(String[] args) throws Exception { + syncListConnectionsString(); + } + + public static void syncListConnectionsString() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (ConnectionServiceClient connectionServiceClient = ConnectionServiceClient.create()) { + String parent = EndpointName.of("[PROJECT]", "[ENDPOINT]").toString(); + for (Connection element : connectionServiceClient.listConnections(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END apigeeconnect_v1_generated_connectionserviceclient_listconnections_string_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java new file mode 100644 index 0000000..4981885 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java @@ -0,0 +1,46 @@ +/* + * 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.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_connectionservicesettings_listconnections_sync] +import com.google.cloud.apigeeconnect.v1.ConnectionServiceSettings; +import java.time.Duration; + +public class SyncListConnections { + + public static void main(String[] args) throws Exception { + syncListConnections(); + } + + public static void syncListConnections() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ConnectionServiceSettings.Builder connectionServiceSettingsBuilder = + ConnectionServiceSettings.newBuilder(); + connectionServiceSettingsBuilder + .listConnectionsSettings() + .setRetrySettings( + connectionServiceSettingsBuilder + .listConnectionsSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ConnectionServiceSettings connectionServiceSettings = connectionServiceSettingsBuilder.build(); + } +} +// [END apigeeconnect_v1_generated_connectionservicesettings_listconnections_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java new file mode 100644 index 0000000..1f3b9f7 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.stub.samples; + +// [START apigeeconnect_v1_generated_connectionservicestubsettings_listconnections_sync] +import com.google.cloud.apigeeconnect.v1.stub.ConnectionServiceStubSettings; +import java.time.Duration; + +public class SyncListConnections { + + public static void main(String[] args) throws Exception { + syncListConnections(); + } + + public static void syncListConnections() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + ConnectionServiceStubSettings.Builder connectionServiceSettingsBuilder = + ConnectionServiceStubSettings.newBuilder(); + connectionServiceSettingsBuilder + .listConnectionsSettings() + .setRetrySettings( + connectionServiceSettingsBuilder + .listConnectionsSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + ConnectionServiceStubSettings connectionServiceSettings = + connectionServiceSettingsBuilder.build(); + } +} +// [END apigeeconnect_v1_generated_connectionservicestubsettings_listconnections_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java new file mode 100644 index 0000000..7db481b --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.stub.samples; + +// [START apigeeconnect_v1_generated_tetherstubsettings_egress_sync] +import com.google.cloud.apigeeconnect.v1.stub.TetherStubSettings; +import java.time.Duration; + +public class SyncEgress { + + public static void main(String[] args) throws Exception { + syncEgress(); + } + + public static void syncEgress() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + TetherStubSettings.Builder tetherSettingsBuilder = TetherStubSettings.newBuilder(); + tetherSettingsBuilder + .egressSettings() + .setRetrySettings( + tetherSettingsBuilder + .egressSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TetherStubSettings tetherSettings = tetherSettingsBuilder.build(); + } +} +// [END apigeeconnect_v1_generated_tetherstubsettings_egress_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 0000000..b43cb84 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_tetherclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.apigeeconnect.v1.TetherClient; +import com.google.cloud.apigeeconnect.v1.TetherSettings; +import com.google.cloud.apigeeconnect.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + TetherSettings tetherSettings = + TetherSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + TetherClient tetherClient = TetherClient.create(tetherSettings); + } +} +// [END apigeeconnect_v1_generated_tetherclient_create_setcredentialsprovider_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider1.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider1.java new file mode 100644 index 0000000..1661a95 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_tetherclient_create_setcredentialsprovider1_sync] +import com.google.cloud.apigeeconnect.v1.TetherClient; +import com.google.cloud.apigeeconnect.v1.TetherSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + public static void syncCreateSetCredentialsProvider1() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + TetherSettings tetherSettings = + TetherSettings.newBuilder() + .setTransportChannelProvider( + TetherSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + TetherClient tetherClient = TetherClient.create(tetherSettings); + } +} +// [END apigeeconnect_v1_generated_tetherclient_create_setcredentialsprovider1_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetEndpoint.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetEndpoint.java new file mode 100644 index 0000000..817d02f --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,37 @@ +/* + * 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.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_tetherclient_create_setendpoint_sync] +import com.google.cloud.apigeeconnect.v1.TetherClient; +import com.google.cloud.apigeeconnect.v1.TetherSettings; +import com.google.cloud.apigeeconnect.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + TetherSettings tetherSettings = TetherSettings.newBuilder().setEndpoint(myEndpoint).build(); + TetherClient tetherClient = TetherClient.create(tetherSettings); + } +} +// [END apigeeconnect_v1_generated_tetherclient_create_setendpoint_sync] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/egress/AsyncEgress.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/egress/AsyncEgress.java new file mode 100644 index 0000000..a91cac9 --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/egress/AsyncEgress.java @@ -0,0 +1,56 @@ +/* + * 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.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_tetherclient_egress_async] +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.apigeeconnect.v1.EgressRequest; +import com.google.cloud.apigeeconnect.v1.EgressResponse; +import com.google.cloud.apigeeconnect.v1.HttpResponse; +import com.google.cloud.apigeeconnect.v1.TetherClient; +import com.google.cloud.apigeeconnect.v1.TetherEndpoint; +import com.google.rpc.Status; + +public class AsyncEgress { + + public static void main(String[] args) throws Exception { + asyncEgress(); + } + + public static void asyncEgress() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + try (TetherClient tetherClient = TetherClient.create()) { + BidiStream bidiStream = tetherClient.egressCallable().call(); + EgressResponse request = + EgressResponse.newBuilder() + .setId("id3355") + .setHttpResponse(HttpResponse.newBuilder().build()) + .setStatus(Status.newBuilder().build()) + .setProject("project-309310695") + .setTraceId("traceId-1067401920") + .setEndpoint(TetherEndpoint.forNumber(0)) + .setName("name3373707") + .build(); + bidiStream.send(request); + for (EgressRequest response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END apigeeconnect_v1_generated_tetherclient_egress_async] diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java new file mode 100644 index 0000000..7666eef --- /dev/null +++ b/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.apigeeconnect.v1.samples; + +// [START apigeeconnect_v1_generated_tethersettings_egress_sync] +import com.google.cloud.apigeeconnect.v1.TetherSettings; +import java.time.Duration; + +public class SyncEgress { + + public static void main(String[] args) throws Exception { + syncEgress(); + } + + public static void syncEgress() throws Exception { + // This snippet has been automatically generated for illustrative purposes only. + // It may require modifications to work in your environment. + TetherSettings.Builder tetherSettingsBuilder = TetherSettings.newBuilder(); + tetherSettingsBuilder + .egressSettings() + .setRetrySettings( + tetherSettingsBuilder + .egressSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TetherSettings tetherSettings = tetherSettingsBuilder.build(); + } +} +// [END apigeeconnect_v1_generated_tethersettings_egress_sync] diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java deleted file mode 100644 index 64e1ca9..0000000 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java +++ /dev/null @@ -1,146 +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/apigeeconnect/v1/connection.proto - -package com.google.cloud.apigeeconnect.v1; - -public final class ConnectionProto { - private ConnectionProto() {} - - 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_apigeeconnect_v1_ListConnectionsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n.google/cloud/apigeeconnect/v1/connecti" - + "on.proto\022\035google.cloud.apigeeconnect.v1\032" - + "\034google/api/annotations.proto\032\027google/ap" - + "i/client.proto\032\037google/api/field_behavio" - + "r.proto\032\031google/api/resource.proto\"~\n\026Li" - + "stConnectionsRequest\022=\n\006parent\030\001 \001(\tB-\340A" - + "\002\372A\'\n%apigeeconnect.googleapis.com/Endpo" - + "int\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" - + "(\t\"r\n\027ListConnectionsResponse\022>\n\013connect" - + "ions\030\001 \003(\0132).google.cloud.apigeeconnect." - + "v1.Connection\022\027\n\017next_page_token\030\002 \001(\t\"m" - + "\n\nConnection\022\020\n\010endpoint\030\001 \001(\t\0227\n\007cluste" - + "r\030\002 \001(\0132&.google.cloud.apigeeconnect.v1." - + "Cluster\022\024\n\014stream_count\030\003 \001(\005\"\'\n\007Cluster" - + "\022\014\n\004name\030\001 \001(\t\022\016\n\006region\030\002 \001(\t2\252\002\n\021Conne" - + "ctionService\022\302\001\n\017ListConnections\0225.googl" - + "e.cloud.apigeeconnect.v1.ListConnections" - + "Request\0326.google.cloud.apigeeconnect.v1." - + "ListConnectionsResponse\"@\202\323\344\223\0021\022//v1/{pa" - + "rent=projects/*/endpoints/*}/connections" - + "\332A\006parent\032P\312A\034apigeeconnect.googleapis.c" - + "om\322A.https://www.googleapis.com/auth/clo" - + "ud-platformB\270\002\n!com.google.cloud.apigeec" - + "onnect.v1B\017ConnectionProtoP\001ZJgoogle.gol" - + "ang.org/genproto/googleapis/cloud/apigee" - + "connect/v1;apigeeconnect\252\002\035Google.Cloud." - + "ApigeeConnect.V1\312\002\035Google\\Cloud\\ApigeeCo" - + "nnect\\V1\352\002 Google::Cloud::ApigeeConnect:" - + ":V1\352AP\n%apigeeconnect.googleapis.com/End" - + "point\022\'projects/{project}/endpoints/{end" - + "point}b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor, - new java.lang.String[] { - "Connections", "NextPageToken", - }); - internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor, - new java.lang.String[] { - "Endpoint", "Cluster", "StreamCount", - }); - internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor, - new java.lang.String[] { - "Name", "Region", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java deleted file mode 100644 index 878493a..0000000 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java +++ /dev/null @@ -1,50 +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/apigeeconnect/v1/tether.proto - -package com.google.cloud.apigeeconnect.v1; - -public interface StreamInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.StreamInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Unique identifier for the stream.
-   * 
- * - * string id = 1; - * - * @return The id. - */ - java.lang.String getId(); - /** - * - * - *
-   * Unique identifier for the stream.
-   * 
- * - * string id = 1; - * - * @return The bytes for id. - */ - com.google.protobuf.ByteString getIdBytes(); -} diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java deleted file mode 100644 index 881c127..0000000 --- a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java +++ /dev/null @@ -1,206 +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/apigeeconnect/v1/tether.proto - -package com.google.cloud.apigeeconnect.v1; - -public final class TetherProto { - private TetherProto() {} - - 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_apigeeconnect_v1_EgressRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_Url_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/apigeeconnect/v1/tether.p" - + "roto\022\035google.cloud.apigeeconnect.v1\032\036goo" - + "gle/protobuf/duration.proto\032\027google/rpc/" - + "status.proto\032\027google/api/client.proto\"\344\001" - + "\n\rEgressRequest\022\n\n\002id\030\001 \001(\t\0227\n\007payload\030\002" - + " \001(\0132&.google.cloud.apigeeconnect.v1.Pay" - + "load\022?\n\010endpoint\030\003 \001(\0162-.google.cloud.ap" - + "igeeconnect.v1.TetherEndpoint\022\017\n\007project" - + "\030\004 \001(\t\022\020\n\010trace_id\030\005 \001(\t\022*\n\007timeout\030\006 \001(" - + "\0132\031.google.protobuf.Duration\"\320\001\n\007Payload" - + "\022B\n\014http_request\030\001 \001(\0132*.google.cloud.ap" - + "igeeconnect.v1.HttpRequestH\000\022@\n\013stream_i" - + "nfo\030\002 \001(\0132).google.cloud.apigeeconnect.v" - + "1.StreamInfoH\000\0227\n\006action\030\003 \001(\0162%.google." - + "cloud.apigeeconnect.v1.ActionH\000B\006\n\004kind\"" - + "\030\n\nStreamInfo\022\n\n\002id\030\001 \001(\t\"\366\001\n\016EgressResp" - + "onse\022\n\n\002id\030\001 \001(\t\022B\n\rhttp_response\030\002 \001(\0132" - + "+.google.cloud.apigeeconnect.v1.HttpResp" - + "onse\022\"\n\006status\030\003 \001(\0132\022.google.rpc.Status" - + "\022\017\n\007project\030\004 \001(\t\022\020\n\010trace_id\030\005 \001(\t\022?\n\010e" - + "ndpoint\030\006 \001(\0162-.google.cloud.apigeeconne" - + "ct.v1.TetherEndpoint\022\014\n\004name\030\007 \001(\t\"\240\001\n\013H" - + "ttpRequest\022\n\n\002id\030\001 \001(\t\022\016\n\006method\030\002 \001(\t\022/" - + "\n\003url\030\003 \001(\0132\".google.cloud.apigeeconnect" - + ".v1.Url\0226\n\007headers\030\004 \003(\0132%.google.cloud." - + "apigeeconnect.v1.Header\022\014\n\004body\030\005 \001(\014\"X\n" - + "\003Url\0225\n\006scheme\030\001 \001(\0162%.google.cloud.apig" - + "eeconnect.v1.Scheme\022\014\n\004host\030\002 \001(\t\022\014\n\004pat" - + "h\030\003 \001(\t\"%\n\006Header\022\013\n\003key\030\001 \001(\t\022\016\n\006values" - + "\030\002 \003(\t\"\235\001\n\014HttpResponse\022\n\n\002id\030\001 \001(\t\022\016\n\006s" - + "tatus\030\002 \001(\t\022\023\n\013status_code\030\003 \001(\005\022\014\n\004body" - + "\030\004 \001(\014\0226\n\007headers\030\005 \003(\0132%.google.cloud.a" - + "pigeeconnect.v1.Header\022\026\n\016content_length" - + "\030\006 \001(\003*5\n\006Action\022\026\n\022ACTION_UNSPECIFIED\020\000" - + "\022\023\n\017OPEN_NEW_STREAM\020\001*n\n\016TetherEndpoint\022" - + "\037\n\033TETHER_ENDPOINT_UNSPECIFIED\020\000\022\017\n\013APIG" - + "EE_MART\020\001\022\022\n\016APIGEE_RUNTIME\020\002\022\026\n\022APIGEE_" - + "MINT_RATING\020\003*+\n\006Scheme\022\026\n\022SCHEME_UNSPEC" - + "IFIED\020\000\022\t\n\005HTTPS\020\0012\307\001\n\006Tether\022k\n\006Egress\022" - + "-.google.cloud.apigeeconnect.v1.EgressRe" - + "sponse\032,.google.cloud.apigeeconnect.v1.E" - + "gressRequest\"\000(\0010\001\032P\312A\034apigeeconnect.goo" - + "gleapis.com\322A.https://www.googleapis.com" - + "/auth/cloud-platformB\341\001\n!com.google.clou" - + "d.apigeeconnect.v1B\013TetherProtoP\001ZJgoogl" - + "e.golang.org/genproto/googleapis/cloud/a" - + "pigeeconnect/v1;apigeeconnect\252\002\035Google.C" - + "loud.ApigeeConnect.V1\312\002\035Google\\Cloud\\Api" - + "geeConnect\\V1\352\002 Google::Cloud::ApigeeCon" - + "nect::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor, - new java.lang.String[] { - "Id", "Payload", "Endpoint", "Project", "TraceId", "Timeout", - }); - internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor, - new java.lang.String[] { - "HttpRequest", "StreamInfo", "Action", "Kind", - }); - internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor, - new java.lang.String[] { - "Id", - }); - internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor, - new java.lang.String[] { - "Id", "HttpResponse", "Status", "Project", "TraceId", "Endpoint", "Name", - }); - internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor, - new java.lang.String[] { - "Id", "Method", "Url", "Headers", "Body", - }); - internal_static_google_cloud_apigeeconnect_v1_Url_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_Url_descriptor, - new java.lang.String[] { - "Scheme", "Host", "Path", - }); - internal_static_google_cloud_apigeeconnect_v1_Header_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_Header_descriptor, - new java.lang.String[] { - "Key", "Values", - }); - internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor, - new java.lang.String[] { - "Id", "Status", "StatusCode", "Body", "Headers", "ContentLength", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} From 0ce29ad401a4ada084ae0ae9565c161e195278f8 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 23 Jun 2022 03:08:51 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20po?= =?UTF-8?q?st-processor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- .../v1/ConnectionServiceClient.java | 16 +- .../v1/ConnectionServiceSettings.java | 8 +- .../cloud/apigeeconnect/v1/TetherClient.java | 6 +- .../apigeeconnect/v1/TetherSettings.java | 8 +- .../apigeeconnect/v1/gapic_metadata.json | 0 .../cloud/apigeeconnect/v1/package-info.java | 0 .../v1/stub/ConnectionServiceStub.java | 0 .../stub/ConnectionServiceStubSettings.java | 7 +- .../GrpcConnectionServiceCallableFactory.java | 0 .../v1/stub/GrpcConnectionServiceStub.java | 1 - .../v1/stub/GrpcTetherCallableFactory.java | 0 .../apigeeconnect/v1/stub/GrpcTetherStub.java | 0 ...pJsonConnectionServiceCallableFactory.java | 0 .../stub/HttpJsonConnectionServiceStub.java | 0 .../stub/HttpJsonTetherCallableFactory.java | 0 .../v1/stub/HttpJsonTetherStub.java | 0 .../apigeeconnect/v1/stub/TetherStub.java | 0 .../v1/stub/TetherStubSettings.java | 7 +- .../ConnectionServiceClientHttpJsonTest.java | 0 .../v1/ConnectionServiceClientTest.java | 0 .../v1/MockConnectionService.java | 0 .../v1/MockConnectionServiceImpl.java | 0 .../cloud/apigeeconnect/v1/MockTether.java | 0 .../apigeeconnect/v1/MockTetherImpl.java | 0 .../v1/TetherClientHttpJsonTest.java | 2 +- .../apigeeconnect/v1/TetherClientTest.java | 0 .../v1/ConnectionServiceGrpc.java | 225 +++-- .../cloud/apigeeconnect/v1/TetherGrpc.java | 213 +++-- .../apigeeconnect/v1/ConnectionProto.java | 128 --- .../apigeeconnect/v1/StreamInfoOrBuilder.java | 29 - .../cloud/apigeeconnect/v1/TetherProto.java | 184 ---- .../google/cloud/apigeeconnect/v1/Action.java | 75 +- .../cloud/apigeeconnect/v1/Cluster.java | 384 +++++---- .../apigeeconnect/v1/ClusterOrBuilder.java | 36 +- .../cloud/apigeeconnect/v1/Connection.java | 440 ++++++---- .../apigeeconnect/v1/ConnectionOrBuilder.java | 38 +- .../apigeeconnect/v1/ConnectionProto.java | 146 ++++ .../cloud/apigeeconnect/v1/EgressRequest.java | 719 ++++++++++------ .../v1/EgressRequestOrBuilder.java | 67 +- .../apigeeconnect/v1/EgressResponse.java | 796 +++++++++++------- .../v1/EgressResponseOrBuilder.java | 76 +- .../cloud/apigeeconnect/v1/EndpointName.java | 0 .../google/cloud/apigeeconnect/v1/Header.java | 369 ++++---- .../apigeeconnect/v1/HeaderOrBuilder.java | 33 +- .../cloud/apigeeconnect/v1/HttpRequest.java | 656 +++++++++------ .../v1/HttpRequestOrBuilder.java | 65 +- .../cloud/apigeeconnect/v1/HttpResponse.java | 638 ++++++++------ .../v1/HttpResponseOrBuilder.java | 63 +- .../v1/ListConnectionsRequest.java | 455 ++++++---- .../v1/ListConnectionsRequestOrBuilder.java | 47 +- .../v1/ListConnectionsResponse.java | 461 ++++++---- .../v1/ListConnectionsResponseOrBuilder.java | 45 +- .../cloud/apigeeconnect/v1/Payload.java | 543 +++++++----- .../apigeeconnect/v1/PayloadOrBuilder.java | 43 +- .../google/cloud/apigeeconnect/v1/Scheme.java | 75 +- .../cloud/apigeeconnect/v1/StreamInfo.java | 301 ++++--- .../apigeeconnect/v1/StreamInfoOrBuilder.java | 50 ++ .../apigeeconnect/v1/TetherEndpoint.java | 89 +- .../cloud/apigeeconnect/v1/TetherProto.java | 206 +++++ .../google/cloud/apigeeconnect/v1/Url.java | 432 ++++++---- .../cloud/apigeeconnect/v1/UrlOrBuilder.java | 42 +- .../cloud/apigeeconnect/v1/connection.proto | 0 .../cloud/apigeeconnect/v1/tether.proto | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../listconnections/AsyncListConnections.java | 0 .../AsyncListConnectionsPaged.java | 0 .../listconnections/SyncListConnections.java | 0 .../SyncListConnectionsEndpointname.java | 0 .../SyncListConnectionsString.java | 0 .../listconnections/SyncListConnections.java | 0 .../listconnections/SyncListConnections.java | 0 .../tetherstubsettings/egress/SyncEgress.java | 0 .../SyncCreateSetCredentialsProvider.java | 0 .../SyncCreateSetCredentialsProvider1.java | 0 .../create/SyncCreateSetEndpoint.java | 0 .../v1/tetherclient/egress/AsyncEgress.java | 0 .../v1/tethersettings/egress/SyncEgress.java | 0 79 files changed, 5056 insertions(+), 3168 deletions(-) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java (96%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java (95%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java (96%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java (95%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/gapic_metadata.json (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java (98%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java (99%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherCallableFactory.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherStub.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java (97%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionService.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/MockTether.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java (100%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java (97%) rename {owl-bot-staging/v1/google-cloud-apigee-connect => google-cloud-apigee-connect}/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientTest.java (100%) rename {owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1 => grpc-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java (50%) rename {owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1 => grpc-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java (53%) delete mode 100644 owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java delete mode 100644 owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java (68%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java (53%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java (67%) create mode 100644 proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java (77%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java (100%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java (69%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java (55%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java (74%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java (72%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java (62%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java (73%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java (67%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java (71%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java (75%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java (65%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java (68%) create mode 100644 proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java (67%) create mode 100644 proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java (70%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java (60%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/proto/google/cloud/apigeeconnect/v1/connection.proto (100%) rename {owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1 => proto-google-cloud-apigee-connect-v1}/src/main/proto/google/cloud/apigeeconnect/v1/tether.proto (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnections.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnectionsPaged.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnections.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsEndpointname.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsString.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider1.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetEndpoint.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/egress/AsyncEgress.java (100%) rename {owl-bot-staging/v1/samples => samples}/snippets/generated/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java (100%) diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java index 058489c..9c9e02d 100644 --- a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java +++ b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClient.java @@ -58,13 +58,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. *
* @@ -351,7 +351,10 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted public static class ListConnectionsPagedResponse extends AbstractPagedListResponse< - ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage, + ListConnectionsRequest, + ListConnectionsResponse, + Connection, + ListConnectionsPage, ListConnectionsFixedSizeCollection> { public static ApiFuture createAsync( @@ -401,7 +404,10 @@ public ApiFuture createPageAsync( public static class ListConnectionsFixedSizeCollection extends AbstractFixedSizeCollection< - ListConnectionsRequest, ListConnectionsResponse, Connection, ListConnectionsPage, + ListConnectionsRequest, + ListConnectionsResponse, + Connection, + ListConnectionsPage, ListConnectionsFixedSizeCollection> { private ListConnectionsFixedSizeCollection( diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java similarity index 95% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java index a7e1198..4028ffa 100644 --- a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java +++ b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceSettings.java @@ -28,7 +28,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.cloud.apigeeconnect.v1.stub.ConnectionServiceStubSettings; @@ -43,10 +42,9 @@ *

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

    - *
  • The default service address (apigeeconnect.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. + *
  • The default service address (apigeeconnect.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. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java similarity index 96% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java index c7e7a7b..b68bb24 100644 --- a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java +++ b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherClient.java @@ -62,13 +62,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-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java similarity index 95% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java index 796ab6e..0a67469 100644 --- a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java +++ b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/TetherSettings.java @@ -26,7 +26,6 @@ import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; import com.google.api.gax.rpc.StreamingCallSettings; -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.apigeeconnect.v1.stub.TetherStubSettings; @@ -41,10 +40,9 @@ *

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

    - *
  • The default service address (apigeeconnect.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. + *
  • The default service address (apigeeconnect.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. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/gapic_metadata.json b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/gapic_metadata.json similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/gapic_metadata.json rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/gapic_metadata.json diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/package-info.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java similarity index 98% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java index f3f9800..60cb25f 100644 --- a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java +++ b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/ConnectionServiceStubSettings.java @@ -62,10 +62,9 @@ *

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

    - *
  • The default service address (apigeeconnect.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. + *
  • The default service address (apigeeconnect.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. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java similarity index 99% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java index f3ab3ba..962fe6f 100644 --- a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.java +++ b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcConnectionServiceStub.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-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/GrpcTetherStub.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonConnectionServiceStub.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherCallableFactory.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherCallableFactory.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherCallableFactory.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherCallableFactory.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherStub.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherStub.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/HttpJsonTetherStub.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStub.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java rename to google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java index ee7ffed..803d5b9 100644 --- a/owl-bot-staging/v1/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java +++ b/google-cloud-apigee-connect/src/main/java/com/google/cloud/apigeeconnect/v1/stub/TetherStubSettings.java @@ -52,10 +52,9 @@ *

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

    - *
  • The default service address (apigeeconnect.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. + *
  • The default service address (apigeeconnect.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. *
* *

The builder of this class is recursive, so contained classes are themselves builders. When diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java b/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java rename to google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientHttpJsonTest.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java b/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java rename to google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceClientTest.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionService.java b/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionService.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionService.java rename to google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionService.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java b/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java rename to google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockConnectionServiceImpl.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTether.java b/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTether.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTether.java rename to google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTether.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java b/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java rename to google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/MockTetherImpl.java diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java b/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java similarity index 97% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java rename to google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java index 17cfe2d..eff7640 100644 --- a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java +++ b/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientHttpJsonTest.java @@ -64,6 +64,6 @@ public void tearDown() throws Exception { @Test public void egressUnsupportedMethodTest() throws Exception { // The egress() method is not supported in REST transport. - //This empty test is generated for technical reasons. + // This empty test is generated for technical reasons. } } diff --git a/owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientTest.java b/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientTest.java similarity index 100% rename from owl-bot-staging/v1/google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientTest.java rename to google-cloud-apigee-connect/src/test/java/com/google/cloud/apigeeconnect/v1/TetherClientTest.java diff --git a/owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java b/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java similarity index 50% rename from owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java rename to grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java index b2d4f25..f54b636 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.java +++ b/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionServiceGrpc.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.apigeeconnect.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *

  * Service Interface for the Apigee Connect connection management APIs.
  * 
@@ -18,120 +35,143 @@ private ConnectionServiceGrpc() {} public static final String SERVICE_NAME = "google.cloud.apigeeconnect.v1.ConnectionService"; // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListConnectionsMethod; + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest, + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse> + getListConnectionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ListConnections", requestType = com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.class, responseType = com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListConnectionsMethod() { - io.grpc.MethodDescriptor getListConnectionsMethod; + public static io.grpc.MethodDescriptor< + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest, + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse> + getListConnectionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest, + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse> + getListConnectionsMethod; if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { synchronized (ConnectionServiceGrpc.class) { if ((getListConnectionsMethod = ConnectionServiceGrpc.getListConnectionsMethod) == null) { - ConnectionServiceGrpc.getListConnectionsMethod = getListConnectionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("ListConnections")) - .build(); + ConnectionServiceGrpc.getListConnectionsMethod = + getListConnectionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListConnections")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new ConnectionServiceMethodDescriptorSupplier("ListConnections")) + .build(); } } } return getListConnectionsMethod; } - /** - * 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 ConnectionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceStub(channel, callOptions); + } + }; return ConnectionServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ - public static ConnectionServiceBlockingStub newBlockingStub( - io.grpc.Channel channel) { + public static ConnectionServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceBlockingStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceBlockingStub(channel, callOptions); + } + }; return ConnectionServiceBlockingStub.newStub(factory, channel); } - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static ConnectionServiceFutureStub newFutureStub( - io.grpc.Channel channel) { + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static ConnectionServiceFutureStub newFutureStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public ConnectionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new ConnectionServiceFutureStub(channel, callOptions); - } - }; + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public ConnectionServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new ConnectionServiceFutureStub(channel, callOptions); + } + }; return ConnectionServiceFutureStub.newStub(factory, channel); } /** + * + * *
    * Service Interface for the Apigee Connect connection management APIs.
    * 
*/ - public static abstract class ConnectionServiceImplBase implements io.grpc.BindableService { + public abstract static class ConnectionServiceImplBase implements io.grpc.BindableService { /** + * + * *
      * Lists connections that are currently active for the given Apigee Connect
      * endpoint.
      * 
*/ - public void listConnections(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListConnectionsMethod(), responseObserver); + public void listConnections( + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConnectionsMethod(), 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( - getListConnectionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest, - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse>( - this, METHODID_LIST_CONNECTIONS))) + getListConnectionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest, + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse>( + this, METHODID_LIST_CONNECTIONS))) .build(); } } /** + * + * *
    * Service Interface for the Apigee Connect connection management APIs.
    * 
*/ - public static final class ConnectionServiceStub extends io.grpc.stub.AbstractAsyncStub { - private ConnectionServiceStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ConnectionServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private ConnectionServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -142,24 +182,33 @@ protected ConnectionServiceStub build( } /** + * + * *
      * Lists connections that are currently active for the given Apigee Connect
      * endpoint.
      * 
*/ - public void listConnections(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listConnections( + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getListConnectionsMethod(), getCallOptions()), + request, + responseObserver); } } /** + * + * *
    * Service Interface for the Apigee Connect connection management APIs.
    * 
*/ - public static final class ConnectionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { + public static final class ConnectionServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { private ConnectionServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); @@ -172,25 +221,30 @@ protected ConnectionServiceBlockingStub build( } /** + * + * *
      * Lists connections that are currently active for the given Apigee Connect
      * endpoint.
      * 
*/ - public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse listConnections(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request) { + public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse listConnections( + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListConnectionsMethod(), getCallOptions(), request); } } /** + * + * *
    * Service Interface for the Apigee Connect connection management APIs.
    * 
*/ - public static final class ConnectionServiceFutureStub extends io.grpc.stub.AbstractFutureStub { - private ConnectionServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class ConnectionServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private ConnectionServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @@ -201,13 +255,16 @@ protected ConnectionServiceFutureStub build( } /** + * + * *
      * Lists connections that are currently active for the given Apigee Connect
      * endpoint.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture listConnections( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse> + listConnections(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListConnectionsMethod(), getCallOptions()), request); } @@ -215,11 +272,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 ConnectionServiceImplBase serviceImpl; private final int methodId; @@ -233,8 +290,11 @@ private static final class MethodHandlers implements public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_LIST_CONNECTIONS: - serviceImpl.listConnections((com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + serviceImpl.listConnections( + (com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse>) + responseObserver); break; default: throw new AssertionError(); @@ -252,8 +312,9 @@ public io.grpc.stub.StreamObserver invoke( } } - private static abstract class ConnectionServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class ConnectionServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { ConnectionServiceBaseDescriptorSupplier() {} @java.lang.Override @@ -295,10 +356,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (ConnectionServiceGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) - .addMethod(getListConnectionsMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new ConnectionServiceFileDescriptorSupplier()) + .addMethod(getListConnectionsMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java b/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java similarity index 53% rename from owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java rename to grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java index d51cc53..0178f2d 100644 --- a/owl-bot-staging/v1/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.java +++ b/grpc-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherGrpc.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.apigeeconnect.v1; import static io.grpc.MethodDescriptor.generateFullMethodName; /** + * + * *
  * Tether provides a way for the control plane to send HTTP API requests to
  * services in data planes that runs in a remote datacenter without
@@ -20,91 +37,105 @@ private TetherGrpc() {}
   public static final String SERVICE_NAME = "google.cloud.apigeeconnect.v1.Tether";
 
   // Static method descriptors that strictly reflect the proto.
-  private static volatile io.grpc.MethodDescriptor getEgressMethod;
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.cloud.apigeeconnect.v1.EgressResponse,
+          com.google.cloud.apigeeconnect.v1.EgressRequest>
+      getEgressMethod;
 
   @io.grpc.stub.annotations.RpcMethod(
       fullMethodName = SERVICE_NAME + '/' + "Egress",
       requestType = com.google.cloud.apigeeconnect.v1.EgressResponse.class,
       responseType = com.google.cloud.apigeeconnect.v1.EgressRequest.class,
       methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-  public static io.grpc.MethodDescriptor getEgressMethod() {
-    io.grpc.MethodDescriptor getEgressMethod;
+  public static io.grpc.MethodDescriptor<
+          com.google.cloud.apigeeconnect.v1.EgressResponse,
+          com.google.cloud.apigeeconnect.v1.EgressRequest>
+      getEgressMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.cloud.apigeeconnect.v1.EgressResponse,
+            com.google.cloud.apigeeconnect.v1.EgressRequest>
+        getEgressMethod;
     if ((getEgressMethod = TetherGrpc.getEgressMethod) == null) {
       synchronized (TetherGrpc.class) {
         if ((getEgressMethod = TetherGrpc.getEgressMethod) == null) {
-          TetherGrpc.getEgressMethod = getEgressMethod =
-              io.grpc.MethodDescriptor.newBuilder()
-              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
-              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Egress"))
-              .setSampledToLocalTracing(true)
-              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.apigeeconnect.v1.EgressResponse.getDefaultInstance()))
-              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
-                  com.google.cloud.apigeeconnect.v1.EgressRequest.getDefaultInstance()))
-              .setSchemaDescriptor(new TetherMethodDescriptorSupplier("Egress"))
-              .build();
+          TetherGrpc.getEgressMethod =
+              getEgressMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Egress"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.apigeeconnect.v1.EgressResponse
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.cloud.apigeeconnect.v1.EgressRequest.getDefaultInstance()))
+                      .setSchemaDescriptor(new TetherMethodDescriptorSupplier("Egress"))
+                      .build();
         }
       }
     }
     return getEgressMethod;
   }
 
-  /**
-   * 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 TetherStub newStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public TetherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new TetherStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public TetherStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new TetherStub(channel, callOptions);
+          }
+        };
     return TetherStub.newStub(factory, channel);
   }
 
   /**
    * Creates a new blocking-style stub that supports unary and streaming output calls on the service
    */
-  public static TetherBlockingStub newBlockingStub(
-      io.grpc.Channel channel) {
+  public static TetherBlockingStub newBlockingStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public TetherBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new TetherBlockingStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public TetherBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new TetherBlockingStub(channel, callOptions);
+          }
+        };
     return TetherBlockingStub.newStub(factory, channel);
   }
 
-  /**
-   * Creates a new ListenableFuture-style stub that supports unary calls on the service
-   */
-  public static TetherFutureStub newFutureStub(
-      io.grpc.Channel channel) {
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static TetherFutureStub newFutureStub(io.grpc.Channel channel) {
     io.grpc.stub.AbstractStub.StubFactory factory =
-      new io.grpc.stub.AbstractStub.StubFactory() {
-        @java.lang.Override
-        public TetherFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
-          return new TetherFutureStub(channel, callOptions);
-        }
-      };
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public TetherFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new TetherFutureStub(channel, callOptions);
+          }
+        };
     return TetherFutureStub.newStub(factory, channel);
   }
 
   /**
+   *
+   *
    * 
    * Tether provides a way for the control plane to send HTTP API requests to
    * services in data planes that runs in a remote datacenter without
    * requiring customers to open firewalls on their runtime plane.
    * 
*/ - public static abstract class TetherImplBase implements io.grpc.BindableService { + public abstract static class TetherImplBase implements io.grpc.BindableService { /** + * + * *
      * Egress streams egress requests and responses. Logically, this is not
      * actually a streaming request, but uses streaming as a mechanism to flip
@@ -116,24 +147,28 @@ public static abstract class TetherImplBase implements io.grpc.BindableService {
      * 
*/ public io.grpc.stub.StreamObserver egress( - io.grpc.stub.StreamObserver responseObserver) { - return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getEgressMethod(), responseObserver); + io.grpc.stub.StreamObserver + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getEgressMethod(), 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( - getEgressMethod(), - io.grpc.stub.ServerCalls.asyncBidiStreamingCall( - new MethodHandlers< - com.google.cloud.apigeeconnect.v1.EgressResponse, - com.google.cloud.apigeeconnect.v1.EgressRequest>( - this, METHODID_EGRESS))) + getEgressMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.apigeeconnect.v1.EgressResponse, + com.google.cloud.apigeeconnect.v1.EgressRequest>(this, METHODID_EGRESS))) .build(); } } /** + * + * *
    * Tether provides a way for the control plane to send HTTP API requests to
    * services in data planes that runs in a remote datacenter without
@@ -141,18 +176,18 @@ public io.grpc.stub.StreamObserver
    */
   public static final class TetherStub extends io.grpc.stub.AbstractAsyncStub {
-    private TetherStub(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    private TetherStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       super(channel, callOptions);
     }
 
     @java.lang.Override
-    protected TetherStub build(
-        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+    protected TetherStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
       return new TetherStub(channel, callOptions);
     }
 
     /**
+     *
+     *
      * 
      * Egress streams egress requests and responses. Logically, this is not
      * actually a streaming request, but uses streaming as a mechanism to flip
@@ -164,59 +199,62 @@ protected TetherStub build(
      * 
*/ public io.grpc.stub.StreamObserver egress( - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver + responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getEgressMethod(), getCallOptions()), responseObserver); } } /** + * + * *
    * Tether provides a way for the control plane to send HTTP API requests to
    * services in data planes that runs in a remote datacenter without
    * requiring customers to open firewalls on their runtime plane.
    * 
*/ - public static final class TetherBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private TetherBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class TetherBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private TetherBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected TetherBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected TetherBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TetherBlockingStub(channel, callOptions); } } /** + * + * *
    * Tether provides a way for the control plane to send HTTP API requests to
    * services in data planes that runs in a remote datacenter without
    * requiring customers to open firewalls on their runtime plane.
    * 
*/ - public static final class TetherFutureStub extends io.grpc.stub.AbstractFutureStub { - private TetherFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class TetherFutureStub + extends io.grpc.stub.AbstractFutureStub { + private TetherFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected TetherFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + protected TetherFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new TetherFutureStub(channel, callOptions); } } private static final int METHODID_EGRESS = 0; - 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 TetherImplBase serviceImpl; private final int methodId; @@ -240,16 +278,19 @@ public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_EGRESS: - return (io.grpc.stub.StreamObserver) serviceImpl.egress( - (io.grpc.stub.StreamObserver) responseObserver); + return (io.grpc.stub.StreamObserver) + serviceImpl.egress( + (io.grpc.stub.StreamObserver) + responseObserver); default: throw new AssertionError(); } } } - private static abstract class TetherBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + private abstract static class TetherBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { TetherBaseDescriptorSupplier() {} @java.lang.Override @@ -263,13 +304,11 @@ public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() } } - private static final class TetherFileDescriptorSupplier - extends TetherBaseDescriptorSupplier { + private static final class TetherFileDescriptorSupplier extends TetherBaseDescriptorSupplier { TetherFileDescriptorSupplier() {} } - private static final class TetherMethodDescriptorSupplier - extends TetherBaseDescriptorSupplier + private static final class TetherMethodDescriptorSupplier extends TetherBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; @@ -291,10 +330,12 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { synchronized (TetherGrpc.class) { result = serviceDescriptor; if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new TetherFileDescriptorSupplier()) - .addMethod(getEgressMethod()) - .build(); + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new TetherFileDescriptorSupplier()) + .addMethod(getEgressMethod()) + .build(); } } } diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java deleted file mode 100644 index d8f7af3..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java +++ /dev/null @@ -1,128 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/apigeeconnect/v1/connection.proto - -package com.google.cloud.apigeeconnect.v1; - -public final class ConnectionProto { - private ConnectionProto() {} - 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_apigeeconnect_v1_ListConnectionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n.google/cloud/apigeeconnect/v1/connecti" + - "on.proto\022\035google.cloud.apigeeconnect.v1\032" + - "\034google/api/annotations.proto\032\027google/ap" + - "i/client.proto\032\037google/api/field_behavio" + - "r.proto\032\031google/api/resource.proto\"~\n\026Li" + - "stConnectionsRequest\022=\n\006parent\030\001 \001(\tB-\340A" + - "\002\372A\'\n%apigeeconnect.googleapis.com/Endpo" + - "int\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + - "(\t\"r\n\027ListConnectionsResponse\022>\n\013connect" + - "ions\030\001 \003(\0132).google.cloud.apigeeconnect." + - "v1.Connection\022\027\n\017next_page_token\030\002 \001(\t\"m" + - "\n\nConnection\022\020\n\010endpoint\030\001 \001(\t\0227\n\007cluste" + - "r\030\002 \001(\0132&.google.cloud.apigeeconnect.v1." + - "Cluster\022\024\n\014stream_count\030\003 \001(\005\"\'\n\007Cluster" + - "\022\014\n\004name\030\001 \001(\t\022\016\n\006region\030\002 \001(\t2\252\002\n\021Conne" + - "ctionService\022\302\001\n\017ListConnections\0225.googl" + - "e.cloud.apigeeconnect.v1.ListConnections" + - "Request\0326.google.cloud.apigeeconnect.v1." + - "ListConnectionsResponse\"@\202\323\344\223\0021\022//v1/{pa" + - "rent=projects/*/endpoints/*}/connections" + - "\332A\006parent\032P\312A\034apigeeconnect.googleapis.c" + - "om\322A.https://www.googleapis.com/auth/clo" + - "ud-platformB\270\002\n!com.google.cloud.apigeec" + - "onnect.v1B\017ConnectionProtoP\001ZJgoogle.gol" + - "ang.org/genproto/googleapis/cloud/apigee" + - "connect/v1;apigeeconnect\252\002\035Google.Cloud." + - "ApigeeConnect.V1\312\002\035Google\\Cloud\\ApigeeCo" + - "nnect\\V1\352\002 Google::Cloud::ApigeeConnect:" + - ":V1\352AP\n%apigeeconnect.googleapis.com/End" + - "point\022\'projects/{project}/endpoints/{end" + - "point}b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - }); - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", }); - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor, - new java.lang.String[] { "Connections", "NextPageToken", }); - internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor, - new java.lang.String[] { "Endpoint", "Cluster", "StreamCount", }); - internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor, - new java.lang.String[] { "Name", "Region", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java deleted file mode 100644 index 8a2aa2e..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java +++ /dev/null @@ -1,29 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/apigeeconnect/v1/tether.proto - -package com.google.cloud.apigeeconnect.v1; - -public interface StreamInfoOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.StreamInfo) - com.google.protobuf.MessageOrBuilder { - - /** - *
-   * Unique identifier for the stream.
-   * 
- * - * string id = 1; - * @return The id. - */ - java.lang.String getId(); - /** - *
-   * Unique identifier for the stream.
-   * 
- * - * string id = 1; - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); -} diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java b/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java deleted file mode 100644 index d3e9601..0000000 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java +++ /dev/null @@ -1,184 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/cloud/apigeeconnect/v1/tether.proto - -package com.google.cloud.apigeeconnect.v1; - -public final class TetherProto { - private TetherProto() {} - 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_apigeeconnect_v1_EgressRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_Url_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n*google/cloud/apigeeconnect/v1/tether.p" + - "roto\022\035google.cloud.apigeeconnect.v1\032\036goo" + - "gle/protobuf/duration.proto\032\027google/rpc/" + - "status.proto\032\027google/api/client.proto\"\344\001" + - "\n\rEgressRequest\022\n\n\002id\030\001 \001(\t\0227\n\007payload\030\002" + - " \001(\0132&.google.cloud.apigeeconnect.v1.Pay" + - "load\022?\n\010endpoint\030\003 \001(\0162-.google.cloud.ap" + - "igeeconnect.v1.TetherEndpoint\022\017\n\007project" + - "\030\004 \001(\t\022\020\n\010trace_id\030\005 \001(\t\022*\n\007timeout\030\006 \001(" + - "\0132\031.google.protobuf.Duration\"\320\001\n\007Payload" + - "\022B\n\014http_request\030\001 \001(\0132*.google.cloud.ap" + - "igeeconnect.v1.HttpRequestH\000\022@\n\013stream_i" + - "nfo\030\002 \001(\0132).google.cloud.apigeeconnect.v" + - "1.StreamInfoH\000\0227\n\006action\030\003 \001(\0162%.google." + - "cloud.apigeeconnect.v1.ActionH\000B\006\n\004kind\"" + - "\030\n\nStreamInfo\022\n\n\002id\030\001 \001(\t\"\366\001\n\016EgressResp" + - "onse\022\n\n\002id\030\001 \001(\t\022B\n\rhttp_response\030\002 \001(\0132" + - "+.google.cloud.apigeeconnect.v1.HttpResp" + - "onse\022\"\n\006status\030\003 \001(\0132\022.google.rpc.Status" + - "\022\017\n\007project\030\004 \001(\t\022\020\n\010trace_id\030\005 \001(\t\022?\n\010e" + - "ndpoint\030\006 \001(\0162-.google.cloud.apigeeconne" + - "ct.v1.TetherEndpoint\022\014\n\004name\030\007 \001(\t\"\240\001\n\013H" + - "ttpRequest\022\n\n\002id\030\001 \001(\t\022\016\n\006method\030\002 \001(\t\022/" + - "\n\003url\030\003 \001(\0132\".google.cloud.apigeeconnect" + - ".v1.Url\0226\n\007headers\030\004 \003(\0132%.google.cloud." + - "apigeeconnect.v1.Header\022\014\n\004body\030\005 \001(\014\"X\n" + - "\003Url\0225\n\006scheme\030\001 \001(\0162%.google.cloud.apig" + - "eeconnect.v1.Scheme\022\014\n\004host\030\002 \001(\t\022\014\n\004pat" + - "h\030\003 \001(\t\"%\n\006Header\022\013\n\003key\030\001 \001(\t\022\016\n\006values" + - "\030\002 \003(\t\"\235\001\n\014HttpResponse\022\n\n\002id\030\001 \001(\t\022\016\n\006s" + - "tatus\030\002 \001(\t\022\023\n\013status_code\030\003 \001(\005\022\014\n\004body" + - "\030\004 \001(\014\0226\n\007headers\030\005 \003(\0132%.google.cloud.a" + - "pigeeconnect.v1.Header\022\026\n\016content_length" + - "\030\006 \001(\003*5\n\006Action\022\026\n\022ACTION_UNSPECIFIED\020\000" + - "\022\023\n\017OPEN_NEW_STREAM\020\001*n\n\016TetherEndpoint\022" + - "\037\n\033TETHER_ENDPOINT_UNSPECIFIED\020\000\022\017\n\013APIG" + - "EE_MART\020\001\022\022\n\016APIGEE_RUNTIME\020\002\022\026\n\022APIGEE_" + - "MINT_RATING\020\003*+\n\006Scheme\022\026\n\022SCHEME_UNSPEC" + - "IFIED\020\000\022\t\n\005HTTPS\020\0012\307\001\n\006Tether\022k\n\006Egress\022" + - "-.google.cloud.apigeeconnect.v1.EgressRe" + - "sponse\032,.google.cloud.apigeeconnect.v1.E" + - "gressRequest\"\000(\0010\001\032P\312A\034apigeeconnect.goo" + - "gleapis.com\322A.https://www.googleapis.com" + - "/auth/cloud-platformB\341\001\n!com.google.clou" + - "d.apigeeconnect.v1B\013TetherProtoP\001ZJgoogl" + - "e.golang.org/genproto/googleapis/cloud/a" + - "pigeeconnect/v1;apigeeconnect\252\002\035Google.C" + - "loud.ApigeeConnect.V1\312\002\035Google\\Cloud\\Api" + - "geeConnect\\V1\352\002 Google::Cloud::ApigeeCon" + - "nect::V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor, - new java.lang.String[] { "Id", "Payload", "Endpoint", "Project", "TraceId", "Timeout", }); - internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor, - new java.lang.String[] { "HttpRequest", "StreamInfo", "Action", "Kind", }); - internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor, - new java.lang.String[] { "Id", }); - internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor, - new java.lang.String[] { "Id", "HttpResponse", "Status", "Project", "TraceId", "Endpoint", "Name", }); - internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor, - new java.lang.String[] { "Id", "Method", "Url", "Headers", "Body", }); - internal_static_google_cloud_apigeeconnect_v1_Url_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_Url_descriptor, - new java.lang.String[] { "Scheme", "Host", "Path", }); - internal_static_google_cloud_apigeeconnect_v1_Header_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_Header_descriptor, - new java.lang.String[] { "Key", "Values", }); - internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor, - new java.lang.String[] { "Id", "Status", "StatusCode", "Body", "Headers", "ContentLength", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.protobuf.DurationProto.getDescriptor(); - com.google.rpc.StatusProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java index d8be293..74735b9 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Action.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * The action taken by agent.
  * 
* * Protobuf enum {@code google.cloud.apigeeconnect.v1.Action} */ -public enum Action - implements com.google.protobuf.ProtocolMessageEnum { +public enum Action implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified Action.
    * 
@@ -21,6 +39,8 @@ public enum Action */ ACTION_UNSPECIFIED(0), /** + * + * *
    * Indicates that agent should open a new stream.
    * 
@@ -32,6 +52,8 @@ public enum Action ; /** + * + * *
    * Unspecified Action.
    * 
@@ -40,6 +62,8 @@ public enum Action */ public static final int ACTION_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Indicates that agent should open a new stream.
    * 
@@ -48,7 +72,6 @@ public enum Action */ public static final int OPEN_NEW_STREAM_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -73,48 +96,47 @@ public static Action valueOf(int value) { */ public static Action forNumber(int value) { switch (value) { - case 0: return ACTION_UNSPECIFIED; - case 1: return OPEN_NEW_STREAM; - default: return null; + case 0: + return ACTION_UNSPECIFIED; + case 1: + return OPEN_NEW_STREAM; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Action> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Action findValueByNumber(int number) { - return Action.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Action findValueByNumber(int number) { + return Action.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.apigeeconnect.v1.TetherProto.getDescriptor().getEnumTypes().get(0); } private static final Action[] VALUES = values(); - public static Action valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Action valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -130,4 +152,3 @@ private Action(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.apigeeconnect.v1.Action) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java index b943fd7..8cd2555 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Cluster.java @@ -1,20 +1,34 @@ +/* + * 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/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -/** - * Protobuf type {@code google.cloud.apigeeconnect.v1.Cluster} - */ -public final class Cluster extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.apigeeconnect.v1.Cluster} */ +public final class Cluster extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.Cluster) ClusterOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Cluster.newBuilder() to construct. private Cluster(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Cluster() { name_ = ""; region_ = ""; @@ -22,16 +36,15 @@ private Cluster() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Cluster(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Cluster( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -50,25 +63,27 @@ private Cluster( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); + name_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - region_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + region_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -76,34 +91,39 @@ private Cluster( } 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.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Cluster.class, com.google.cloud.apigeeconnect.v1.Cluster.Builder.class); + com.google.cloud.apigeeconnect.v1.Cluster.class, + com.google.cloud.apigeeconnect.v1.Cluster.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
    * The name of the cluster.
    * 
* * string name = 1; + * * @return The name. */ @java.lang.Override @@ -112,29 +132,29 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * The name of the cluster.
    * 
* * string name = 1; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -145,11 +165,14 @@ public java.lang.String getName() { public static final int REGION_FIELD_NUMBER = 2; private volatile java.lang.Object region_; /** + * + * *
    * The region of the cluster.
    * 
* * string region = 2; + * * @return The region. */ @java.lang.Override @@ -158,29 +181,29 @@ public java.lang.String getRegion() { 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(); region_ = s; return s; } } /** + * + * *
    * The region of the cluster.
    * 
* * string region = 2; + * * @return The bytes for region. */ @java.lang.Override - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; 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); region_ = b; return b; } else { @@ -189,6 +212,7 @@ public java.lang.String getRegion() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -200,8 +224,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -231,17 +254,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.apigeeconnect.v1.Cluster)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.Cluster other = (com.google.cloud.apigeeconnect.v1.Cluster) obj; + com.google.cloud.apigeeconnect.v1.Cluster other = + (com.google.cloud.apigeeconnect.v1.Cluster) obj; - if (!getName() - .equals(other.getName())) return false; - if (!getRegion() - .equals(other.getRegion())) return false; + if (!getName().equals(other.getName())) return false; + if (!getRegion().equals(other.getRegion())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -262,114 +284,119 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.Cluster parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.Cluster parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.Cluster parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster 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; } - /** - * Protobuf type {@code google.cloud.apigeeconnect.v1.Cluster} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.apigeeconnect.v1.Cluster} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.apigeeconnect.v1.Cluster) com.google.cloud.apigeeconnect.v1.ClusterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Cluster.class, com.google.cloud.apigeeconnect.v1.Cluster.Builder.class); + com.google.cloud.apigeeconnect.v1.Cluster.class, + com.google.cloud.apigeeconnect.v1.Cluster.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.Cluster.newBuilder() @@ -377,16 +404,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(); @@ -398,9 +424,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; } @java.lang.Override @@ -419,7 +445,8 @@ public com.google.cloud.apigeeconnect.v1.Cluster build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.Cluster buildPartial() { - com.google.cloud.apigeeconnect.v1.Cluster result = new com.google.cloud.apigeeconnect.v1.Cluster(this); + com.google.cloud.apigeeconnect.v1.Cluster result = + new com.google.cloud.apigeeconnect.v1.Cluster(this); result.name_ = name_; result.region_ = region_; onBuilt(); @@ -430,38 +457,39 @@ public com.google.cloud.apigeeconnect.v1.Cluster 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.apigeeconnect.v1.Cluster) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.Cluster)other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.Cluster) other); } else { super.mergeFrom(other); return this; @@ -509,18 +537,20 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
      * The name of the cluster.
      * 
* * string name = 1; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -529,20 +559,21 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the cluster.
      * 
* * string name = 1; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -550,54 +581,61 @@ public java.lang.String getName() { } } /** + * + * *
      * The name of the cluster.
      * 
* * string name = 1; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * The name of the cluster.
      * 
* * string name = 1; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * The name of the cluster.
      * 
* * string name = 1; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; @@ -605,18 +643,20 @@ public Builder setNameBytes( private java.lang.Object region_ = ""; /** + * + * *
      * The region of the cluster.
      * 
* * string region = 2; + * * @return The region. */ public java.lang.String getRegion() { java.lang.Object ref = region_; 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(); region_ = s; return s; @@ -625,20 +665,21 @@ public java.lang.String getRegion() { } } /** + * + * *
      * The region of the cluster.
      * 
* * string region = 2; + * * @return The bytes for region. */ - public com.google.protobuf.ByteString - getRegionBytes() { + public com.google.protobuf.ByteString getRegionBytes() { java.lang.Object ref = region_; 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); region_ = b; return b; } else { @@ -646,61 +687,68 @@ public java.lang.String getRegion() { } } /** + * + * *
      * The region of the cluster.
      * 
* * string region = 2; + * * @param value The region to set. * @return This builder for chaining. */ - public Builder setRegion( - java.lang.String value) { + public Builder setRegion(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + region_ = value; onChanged(); return this; } /** + * + * *
      * The region of the cluster.
      * 
* * string region = 2; + * * @return This builder for chaining. */ public Builder clearRegion() { - + region_ = getDefaultInstance().getRegion(); onChanged(); return this; } /** + * + * *
      * The region of the cluster.
      * 
* * string region = 2; + * * @param value The bytes for region to set. * @return This builder for chaining. */ - public Builder setRegionBytes( - com.google.protobuf.ByteString value) { + public Builder setRegionBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + region_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -710,12 +758,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.Cluster) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.Cluster) private static final com.google.cloud.apigeeconnect.v1.Cluster DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.Cluster(); } @@ -724,16 +772,16 @@ public static com.google.cloud.apigeeconnect.v1.Cluster getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Cluster parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Cluster(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Cluster parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Cluster(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -748,6 +796,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.Cluster getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java similarity index 53% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java index 60ad3fc..b940377 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ClusterOrBuilder.java @@ -1,49 +1,75 @@ +/* + * 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/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -public interface ClusterOrBuilder extends +public interface ClusterOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.Cluster) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The name of the cluster.
    * 
* * string name = 1; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * The name of the cluster.
    * 
* * string name = 1; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); /** + * + * *
    * The region of the cluster.
    * 
* * string region = 2; + * * @return The region. */ java.lang.String getRegion(); /** + * + * *
    * The region of the cluster.
    * 
* * string region = 2; + * * @return The bytes for region. */ - com.google.protobuf.ByteString - getRegionBytes(); + com.google.protobuf.ByteString getRegionBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java index a31a2c5..dc884ad 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Connection.java @@ -1,36 +1,49 @@ +/* + * 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/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -/** - * Protobuf type {@code google.cloud.apigeeconnect.v1.Connection} - */ -public final class Connection extends - com.google.protobuf.GeneratedMessageV3 implements +/** Protobuf type {@code google.cloud.apigeeconnect.v1.Connection} */ +public final class Connection extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.Connection) ConnectionOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Connection.newBuilder() to construct. private Connection(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Connection() { endpoint_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Connection(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Connection( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -49,37 +62,41 @@ private Connection( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - endpoint_ = s; - break; - } - case 18: { - com.google.cloud.apigeeconnect.v1.Cluster.Builder subBuilder = null; - if (cluster_ != null) { - subBuilder = cluster_.toBuilder(); + endpoint_ = s; + break; } - cluster_ = input.readMessage(com.google.cloud.apigeeconnect.v1.Cluster.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cluster_); - cluster_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.apigeeconnect.v1.Cluster.Builder subBuilder = null; + if (cluster_ != null) { + subBuilder = cluster_.toBuilder(); + } + cluster_ = + input.readMessage( + com.google.cloud.apigeeconnect.v1.Cluster.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(cluster_); + cluster_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 24: { - - streamCount_ = input.readInt32(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 24: + { + streamCount_ = input.readInt32(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -87,35 +104,40 @@ private Connection( } 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.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Connection.class, com.google.cloud.apigeeconnect.v1.Connection.Builder.class); + com.google.cloud.apigeeconnect.v1.Connection.class, + com.google.cloud.apigeeconnect.v1.Connection.Builder.class); } public static final int ENDPOINT_FIELD_NUMBER = 1; private volatile java.lang.Object endpoint_; /** + * + * *
    * The endpoint that the connection is made against.
    * Format: `projects/{project_number}/endpoints/{endpoint}`
    * 
* * string endpoint = 1; + * * @return The endpoint. */ @java.lang.Override @@ -124,30 +146,30 @@ public java.lang.String getEndpoint() { 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(); endpoint_ = s; return s; } } /** + * + * *
    * The endpoint that the connection is made against.
    * Format: `projects/{project_number}/endpoints/{endpoint}`
    * 
* * string endpoint = 1; + * * @return The bytes for endpoint. */ @java.lang.Override - public com.google.protobuf.ByteString - getEndpointBytes() { + public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; 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); endpoint_ = b; return b; } else { @@ -158,11 +180,14 @@ public java.lang.String getEndpoint() { public static final int CLUSTER_FIELD_NUMBER = 2; private com.google.cloud.apigeeconnect.v1.Cluster cluster_; /** + * + * *
    * Cluster information.
    * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; + * * @return Whether the cluster field is set. */ @java.lang.Override @@ -170,18 +195,25 @@ public boolean hasCluster() { return cluster_ != null; } /** + * + * *
    * Cluster information.
    * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; + * * @return The cluster. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.Cluster getCluster() { - return cluster_ == null ? com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() : cluster_; + return cluster_ == null + ? com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() + : cluster_; } /** + * + * *
    * Cluster information.
    * 
@@ -196,11 +228,14 @@ public com.google.cloud.apigeeconnect.v1.ClusterOrBuilder getClusterOrBuilder() public static final int STREAM_COUNT_FIELD_NUMBER = 3; private int streamCount_; /** + * + * *
    * The count of streams.
    * 
* * int32 stream_count = 3; + * * @return The streamCount. */ @java.lang.Override @@ -209,6 +244,7 @@ public int getStreamCount() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -220,8 +256,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endpoint_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, endpoint_); } @@ -244,12 +279,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, endpoint_); } if (cluster_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getCluster()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCluster()); } if (streamCount_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, streamCount_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, streamCount_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -259,22 +292,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.Connection)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.Connection other = (com.google.cloud.apigeeconnect.v1.Connection) obj; + com.google.cloud.apigeeconnect.v1.Connection other = + (com.google.cloud.apigeeconnect.v1.Connection) obj; - if (!getEndpoint() - .equals(other.getEndpoint())) return false; + if (!getEndpoint().equals(other.getEndpoint())) return false; if (hasCluster() != other.hasCluster()) return false; if (hasCluster()) { - if (!getCluster() - .equals(other.getCluster())) return false; + if (!getCluster().equals(other.getCluster())) return false; } - if (getStreamCount() - != other.getStreamCount()) return false; + if (getStreamCount() != other.getStreamCount()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -299,114 +330,119 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.Connection parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.Connection parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.Connection parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection 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; } - /** - * Protobuf type {@code google.cloud.apigeeconnect.v1.Connection} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + /** Protobuf type {@code google.cloud.apigeeconnect.v1.Connection} */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.cloud.apigeeconnect.v1.Connection) com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Connection.class, com.google.cloud.apigeeconnect.v1.Connection.Builder.class); + com.google.cloud.apigeeconnect.v1.Connection.class, + com.google.cloud.apigeeconnect.v1.Connection.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.Connection.newBuilder() @@ -414,16 +450,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -441,9 +476,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; } @java.lang.Override @@ -462,7 +497,8 @@ public com.google.cloud.apigeeconnect.v1.Connection build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.Connection buildPartial() { - com.google.cloud.apigeeconnect.v1.Connection result = new com.google.cloud.apigeeconnect.v1.Connection(this); + com.google.cloud.apigeeconnect.v1.Connection result = + new com.google.cloud.apigeeconnect.v1.Connection(this); result.endpoint_ = endpoint_; if (clusterBuilder_ == null) { result.cluster_ = cluster_; @@ -478,38 +514,39 @@ public com.google.cloud.apigeeconnect.v1.Connection 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.apigeeconnect.v1.Connection) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.Connection)other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.Connection) other); } else { super.mergeFrom(other); return this; @@ -559,19 +596,21 @@ public Builder mergeFrom( private java.lang.Object endpoint_ = ""; /** + * + * *
      * The endpoint that the connection is made against.
      * Format: `projects/{project_number}/endpoints/{endpoint}`
      * 
* * string endpoint = 1; + * * @return The endpoint. */ public java.lang.String getEndpoint() { java.lang.Object ref = endpoint_; 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(); endpoint_ = s; return s; @@ -580,21 +619,22 @@ public java.lang.String getEndpoint() { } } /** + * + * *
      * The endpoint that the connection is made against.
      * Format: `projects/{project_number}/endpoints/{endpoint}`
      * 
* * string endpoint = 1; + * * @return The bytes for endpoint. */ - public com.google.protobuf.ByteString - getEndpointBytes() { + public com.google.protobuf.ByteString getEndpointBytes() { java.lang.Object ref = endpoint_; 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); endpoint_ = b; return b; } else { @@ -602,57 +642,64 @@ public java.lang.String getEndpoint() { } } /** + * + * *
      * The endpoint that the connection is made against.
      * Format: `projects/{project_number}/endpoints/{endpoint}`
      * 
* * string endpoint = 1; + * * @param value The endpoint to set. * @return This builder for chaining. */ - public Builder setEndpoint( - java.lang.String value) { + public Builder setEndpoint(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + endpoint_ = value; onChanged(); return this; } /** + * + * *
      * The endpoint that the connection is made against.
      * Format: `projects/{project_number}/endpoints/{endpoint}`
      * 
* * string endpoint = 1; + * * @return This builder for chaining. */ public Builder clearEndpoint() { - + endpoint_ = getDefaultInstance().getEndpoint(); onChanged(); return this; } /** + * + * *
      * The endpoint that the connection is made against.
      * Format: `projects/{project_number}/endpoints/{endpoint}`
      * 
* * string endpoint = 1; + * * @param value The bytes for endpoint to set. * @return This builder for chaining. */ - public Builder setEndpointBytes( - com.google.protobuf.ByteString value) { + public Builder setEndpointBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + endpoint_ = value; onChanged(); return this; @@ -660,34 +707,47 @@ public Builder setEndpointBytes( private com.google.cloud.apigeeconnect.v1.Cluster cluster_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Cluster, com.google.cloud.apigeeconnect.v1.Cluster.Builder, com.google.cloud.apigeeconnect.v1.ClusterOrBuilder> clusterBuilder_; + com.google.cloud.apigeeconnect.v1.Cluster, + com.google.cloud.apigeeconnect.v1.Cluster.Builder, + com.google.cloud.apigeeconnect.v1.ClusterOrBuilder> + clusterBuilder_; /** + * + * *
      * Cluster information.
      * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; + * * @return Whether the cluster field is set. */ public boolean hasCluster() { return clusterBuilder_ != null || cluster_ != null; } /** + * + * *
      * Cluster information.
      * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; + * * @return The cluster. */ public com.google.cloud.apigeeconnect.v1.Cluster getCluster() { if (clusterBuilder_ == null) { - return cluster_ == null ? com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() : cluster_; + return cluster_ == null + ? com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() + : cluster_; } else { return clusterBuilder_.getMessage(); } } /** + * + * *
      * Cluster information.
      * 
@@ -708,14 +768,15 @@ public Builder setCluster(com.google.cloud.apigeeconnect.v1.Cluster value) { return this; } /** + * + * *
      * Cluster information.
      * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; */ - public Builder setCluster( - com.google.cloud.apigeeconnect.v1.Cluster.Builder builderForValue) { + public Builder setCluster(com.google.cloud.apigeeconnect.v1.Cluster.Builder builderForValue) { if (clusterBuilder_ == null) { cluster_ = builderForValue.build(); onChanged(); @@ -726,6 +787,8 @@ public Builder setCluster( return this; } /** + * + * *
      * Cluster information.
      * 
@@ -736,7 +799,9 @@ public Builder mergeCluster(com.google.cloud.apigeeconnect.v1.Cluster value) { if (clusterBuilder_ == null) { if (cluster_ != null) { cluster_ = - com.google.cloud.apigeeconnect.v1.Cluster.newBuilder(cluster_).mergeFrom(value).buildPartial(); + com.google.cloud.apigeeconnect.v1.Cluster.newBuilder(cluster_) + .mergeFrom(value) + .buildPartial(); } else { cluster_ = value; } @@ -748,6 +813,8 @@ public Builder mergeCluster(com.google.cloud.apigeeconnect.v1.Cluster value) { return this; } /** + * + * *
      * Cluster information.
      * 
@@ -766,6 +833,8 @@ public Builder clearCluster() { return this; } /** + * + * *
      * Cluster information.
      * 
@@ -773,11 +842,13 @@ public Builder clearCluster() { * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; */ public com.google.cloud.apigeeconnect.v1.Cluster.Builder getClusterBuilder() { - + onChanged(); return getClusterFieldBuilder().getBuilder(); } /** + * + * *
      * Cluster information.
      * 
@@ -788,11 +859,14 @@ public com.google.cloud.apigeeconnect.v1.ClusterOrBuilder getClusterOrBuilder() if (clusterBuilder_ != null) { return clusterBuilder_.getMessageOrBuilder(); } else { - return cluster_ == null ? - com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() : cluster_; + return cluster_ == null + ? com.google.cloud.apigeeconnect.v1.Cluster.getDefaultInstance() + : cluster_; } } /** + * + * *
      * Cluster information.
      * 
@@ -800,26 +874,32 @@ public com.google.cloud.apigeeconnect.v1.ClusterOrBuilder getClusterOrBuilder() * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Cluster, com.google.cloud.apigeeconnect.v1.Cluster.Builder, com.google.cloud.apigeeconnect.v1.ClusterOrBuilder> + com.google.cloud.apigeeconnect.v1.Cluster, + com.google.cloud.apigeeconnect.v1.Cluster.Builder, + com.google.cloud.apigeeconnect.v1.ClusterOrBuilder> getClusterFieldBuilder() { if (clusterBuilder_ == null) { - clusterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Cluster, com.google.cloud.apigeeconnect.v1.Cluster.Builder, com.google.cloud.apigeeconnect.v1.ClusterOrBuilder>( - getCluster(), - getParentForChildren(), - isClean()); + clusterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Cluster, + com.google.cloud.apigeeconnect.v1.Cluster.Builder, + com.google.cloud.apigeeconnect.v1.ClusterOrBuilder>( + getCluster(), getParentForChildren(), isClean()); cluster_ = null; } return clusterBuilder_; } - private int streamCount_ ; + private int streamCount_; /** + * + * *
      * The count of streams.
      * 
* * int32 stream_count = 3; + * * @return The streamCount. */ @java.lang.Override @@ -827,37 +907,43 @@ public int getStreamCount() { return streamCount_; } /** + * + * *
      * The count of streams.
      * 
* * int32 stream_count = 3; + * * @param value The streamCount to set. * @return This builder for chaining. */ public Builder setStreamCount(int value) { - + streamCount_ = value; onChanged(); return this; } /** + * + * *
      * The count of streams.
      * 
* * int32 stream_count = 3; + * * @return This builder for chaining. */ public Builder clearStreamCount() { - + streamCount_ = 0; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -867,12 +953,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.Connection) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.Connection) private static final com.google.cloud.apigeeconnect.v1.Connection DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.Connection(); } @@ -881,16 +967,16 @@ public static com.google.cloud.apigeeconnect.v1.Connection getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Connection parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Connection(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Connection parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Connection(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -905,6 +991,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.Connection getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java index eeb3c1d..b7a777e 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionOrBuilder.java @@ -1,53 +1,82 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -public interface ConnectionOrBuilder extends +public interface ConnectionOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.Connection) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The endpoint that the connection is made against.
    * Format: `projects/{project_number}/endpoints/{endpoint}`
    * 
* * string endpoint = 1; + * * @return The endpoint. */ java.lang.String getEndpoint(); /** + * + * *
    * The endpoint that the connection is made against.
    * Format: `projects/{project_number}/endpoints/{endpoint}`
    * 
* * string endpoint = 1; + * * @return The bytes for endpoint. */ - com.google.protobuf.ByteString - getEndpointBytes(); + com.google.protobuf.ByteString getEndpointBytes(); /** + * + * *
    * Cluster information.
    * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; + * * @return Whether the cluster field is set. */ boolean hasCluster(); /** + * + * *
    * Cluster information.
    * 
* * .google.cloud.apigeeconnect.v1.Cluster cluster = 2; + * * @return The cluster. */ com.google.cloud.apigeeconnect.v1.Cluster getCluster(); /** + * + * *
    * Cluster information.
    * 
@@ -57,11 +86,14 @@ public interface ConnectionOrBuilder extends com.google.cloud.apigeeconnect.v1.ClusterOrBuilder getClusterOrBuilder(); /** + * + * *
    * The count of streams.
    * 
* * int32 stream_count = 3; + * * @return The streamCount. */ int getStreamCount(); diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java new file mode 100644 index 0000000..64e1ca9 --- /dev/null +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ConnectionProto.java @@ -0,0 +1,146 @@ +/* + * 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/apigeeconnect/v1/connection.proto + +package com.google.cloud.apigeeconnect.v1; + +public final class ConnectionProto { + private ConnectionProto() {} + + 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_apigeeconnect_v1_ListConnectionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n.google/cloud/apigeeconnect/v1/connecti" + + "on.proto\022\035google.cloud.apigeeconnect.v1\032" + + "\034google/api/annotations.proto\032\027google/ap" + + "i/client.proto\032\037google/api/field_behavio" + + "r.proto\032\031google/api/resource.proto\"~\n\026Li" + + "stConnectionsRequest\022=\n\006parent\030\001 \001(\tB-\340A" + + "\002\372A\'\n%apigeeconnect.googleapis.com/Endpo" + + "int\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"r\n\027ListConnectionsResponse\022>\n\013connect" + + "ions\030\001 \003(\0132).google.cloud.apigeeconnect." + + "v1.Connection\022\027\n\017next_page_token\030\002 \001(\t\"m" + + "\n\nConnection\022\020\n\010endpoint\030\001 \001(\t\0227\n\007cluste" + + "r\030\002 \001(\0132&.google.cloud.apigeeconnect.v1." + + "Cluster\022\024\n\014stream_count\030\003 \001(\005\"\'\n\007Cluster" + + "\022\014\n\004name\030\001 \001(\t\022\016\n\006region\030\002 \001(\t2\252\002\n\021Conne" + + "ctionService\022\302\001\n\017ListConnections\0225.googl" + + "e.cloud.apigeeconnect.v1.ListConnections" + + "Request\0326.google.cloud.apigeeconnect.v1." + + "ListConnectionsResponse\"@\202\323\344\223\0021\022//v1/{pa" + + "rent=projects/*/endpoints/*}/connections" + + "\332A\006parent\032P\312A\034apigeeconnect.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\270\002\n!com.google.cloud.apigeec" + + "onnect.v1B\017ConnectionProtoP\001ZJgoogle.gol" + + "ang.org/genproto/googleapis/cloud/apigee" + + "connect/v1;apigeeconnect\252\002\035Google.Cloud." + + "ApigeeConnect.V1\312\002\035Google\\Cloud\\ApigeeCo" + + "nnect\\V1\352\002 Google::Cloud::ApigeeConnect:" + + ":V1\352AP\n%apigeeconnect.googleapis.com/End" + + "point\022\'projects/{project}/endpoints/{end" + + "point}b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + }); + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor, + new java.lang.String[] { + "Connections", "NextPageToken", + }); + internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_apigeeconnect_v1_Connection_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_Connection_descriptor, + new java.lang.String[] { + "Endpoint", "Cluster", "StreamCount", + }); + internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_apigeeconnect_v1_Cluster_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_Cluster_descriptor, + new java.lang.String[] { + "Name", "Region", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java index b3bf466..9b06d09 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequest.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * gRPC request payload for tether.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.EgressRequest} */ -public final class EgressRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EgressRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.EgressRequest) EgressRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EgressRequest.newBuilder() to construct. private EgressRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EgressRequest() { id_ = ""; endpoint_ = 0; @@ -28,16 +46,15 @@ private EgressRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EgressRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EgressRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -56,63 +73,72 @@ private EgressRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: { - com.google.cloud.apigeeconnect.v1.Payload.Builder subBuilder = null; - if (payload_ != null) { - subBuilder = payload_.toBuilder(); + id_ = s; + break; } - payload_ = input.readMessage(com.google.cloud.apigeeconnect.v1.Payload.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(payload_); - payload_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.apigeeconnect.v1.Payload.Builder subBuilder = null; + if (payload_ != null) { + subBuilder = payload_.toBuilder(); + } + payload_ = + input.readMessage( + com.google.cloud.apigeeconnect.v1.Payload.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(payload_); + payload_ = subBuilder.buildPartial(); + } + + break; } + case 24: + { + int rawValue = input.readEnum(); - break; - } - case 24: { - int rawValue = input.readEnum(); - - endpoint_ = rawValue; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); + endpoint_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - project_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - traceId_ = s; - break; - } - case 50: { - com.google.protobuf.Duration.Builder subBuilder = null; - if (timeout_ != null) { - subBuilder = timeout_.toBuilder(); + traceId_ = s; + break; } - timeout_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(timeout_); - timeout_ = subBuilder.buildPartial(); + case 50: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (timeout_ != null) { + subBuilder = timeout_.toBuilder(); + } + timeout_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(timeout_); + timeout_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -120,34 +146,39 @@ private EgressRequest( } 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.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.EgressRequest.class, com.google.cloud.apigeeconnect.v1.EgressRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.EgressRequest.class, + com.google.cloud.apigeeconnect.v1.EgressRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * Unique identifier for the request.
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -156,29 +187,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** + * + * *
    * Unique identifier for the request.
    * 
* * string id = 1; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -189,11 +220,14 @@ public java.lang.String getId() { public static final int PAYLOAD_FIELD_NUMBER = 2; private com.google.cloud.apigeeconnect.v1.Payload payload_; /** + * + * *
    * Actual payload to send to agent.
    * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; + * * @return Whether the payload field is set. */ @java.lang.Override @@ -201,18 +235,25 @@ public boolean hasPayload() { return payload_ != null; } /** + * + * *
    * Actual payload to send to agent.
    * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; + * * @return The payload. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.Payload getPayload() { - return payload_ == null ? com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() + : payload_; } /** + * + * *
    * Actual payload to send to agent.
    * 
@@ -227,39 +268,51 @@ public com.google.cloud.apigeeconnect.v1.PayloadOrBuilder getPayloadOrBuilder() public static final int ENDPOINT_FIELD_NUMBER = 3; private int endpoint_; /** + * + * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; + * * @return The enum numeric value on the wire for endpoint. */ - @java.lang.Override public int getEndpointValue() { + @java.lang.Override + public int getEndpointValue() { return endpoint_; } /** + * + * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; + * * @return The endpoint. */ - @java.lang.Override public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { + @java.lang.Override + public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.TetherEndpoint result = com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); + com.google.cloud.apigeeconnect.v1.TetherEndpoint result = + com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); return result == null ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED : result; } public static final int PROJECT_FIELD_NUMBER = 4; private volatile java.lang.Object project_; /** + * + * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; + * * @return The project. */ @java.lang.Override @@ -268,30 +321,30 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** + * + * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -302,11 +355,14 @@ public java.lang.String getProject() { public static final int TRACE_ID_FIELD_NUMBER = 5; private volatile java.lang.Object traceId_; /** + * + * *
    * Unique identifier for clients to trace their request/response.
    * 
* * string trace_id = 5; + * * @return The traceId. */ @java.lang.Override @@ -315,29 +371,29 @@ public java.lang.String getTraceId() { 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(); traceId_ = s; return s; } } /** + * + * *
    * Unique identifier for clients to trace their request/response.
    * 
* * string trace_id = 5; + * * @return The bytes for traceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTraceIdBytes() { + public com.google.protobuf.ByteString getTraceIdBytes() { java.lang.Object ref = traceId_; 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); traceId_ = b; return b; } else { @@ -348,11 +404,14 @@ public java.lang.String getTraceId() { public static final int TIMEOUT_FIELD_NUMBER = 6; private com.google.protobuf.Duration timeout_; /** + * + * *
    * Timeout for the HTTP request.
    * 
* * .google.protobuf.Duration timeout = 6; + * * @return Whether the timeout field is set. */ @java.lang.Override @@ -360,11 +419,14 @@ public boolean hasTimeout() { return timeout_ != null; } /** + * + * *
    * Timeout for the HTTP request.
    * 
* * .google.protobuf.Duration timeout = 6; + * * @return The timeout. */ @java.lang.Override @@ -372,6 +434,8 @@ public com.google.protobuf.Duration getTimeout() { return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } /** + * + * *
    * Timeout for the HTTP request.
    * 
@@ -384,6 +448,7 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -395,15 +460,16 @@ 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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (payload_ != null) { output.writeMessage(2, getPayload()); } - if (endpoint_ != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED.getNumber()) { + if (endpoint_ + != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED + .getNumber()) { output.writeEnum(3, endpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { @@ -428,12 +494,12 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (payload_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getPayload()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPayload()); } - if (endpoint_ != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, endpoint_); + if (endpoint_ + != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, endpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, project_); @@ -442,8 +508,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, traceId_); } if (timeout_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(6, getTimeout()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTimeout()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -453,29 +518,25 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.EgressRequest)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.EgressRequest other = (com.google.cloud.apigeeconnect.v1.EgressRequest) obj; + com.google.cloud.apigeeconnect.v1.EgressRequest other = + (com.google.cloud.apigeeconnect.v1.EgressRequest) obj; - if (!getId() - .equals(other.getId())) return false; + if (!getId().equals(other.getId())) return false; if (hasPayload() != other.hasPayload()) return false; if (hasPayload()) { - if (!getPayload() - .equals(other.getPayload())) return false; + if (!getPayload().equals(other.getPayload())) return false; } if (endpoint_ != other.endpoint_) return false; - if (!getProject() - .equals(other.getProject())) return false; - if (!getTraceId() - .equals(other.getTraceId())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getTraceId().equals(other.getTraceId())) return false; if (hasTimeout() != other.hasTimeout()) return false; if (hasTimeout()) { - if (!getTimeout() - .equals(other.getTimeout())) return false; + if (!getTimeout().equals(other.getTimeout())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -509,118 +570,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.EgressRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.EgressRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.EgressRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest 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; } /** + * + * *
    * gRPC request payload for tether.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.EgressRequest} */ - 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.apigeeconnect.v1.EgressRequest) com.google.cloud.apigeeconnect.v1.EgressRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.EgressRequest.class, com.google.cloud.apigeeconnect.v1.EgressRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.EgressRequest.class, + com.google.cloud.apigeeconnect.v1.EgressRequest.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.EgressRequest.newBuilder() @@ -628,16 +698,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(); @@ -665,9 +734,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor; } @java.lang.Override @@ -686,7 +755,8 @@ public com.google.cloud.apigeeconnect.v1.EgressRequest build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.EgressRequest buildPartial() { - com.google.cloud.apigeeconnect.v1.EgressRequest result = new com.google.cloud.apigeeconnect.v1.EgressRequest(this); + com.google.cloud.apigeeconnect.v1.EgressRequest result = + new com.google.cloud.apigeeconnect.v1.EgressRequest(this); result.id_ = id_; if (payloadBuilder_ == null) { result.payload_ = payload_; @@ -709,38 +779,39 @@ public com.google.cloud.apigeeconnect.v1.EgressRequest 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.apigeeconnect.v1.EgressRequest) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.EgressRequest)other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.EgressRequest) other); } else { super.mergeFrom(other); return this; @@ -748,7 +819,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.EgressRequest other) { - if (other == com.google.cloud.apigeeconnect.v1.EgressRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigeeconnect.v1.EgressRequest.getDefaultInstance()) + return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -801,18 +873,20 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** + * + * *
      * Unique identifier for the request.
      * 
* * string id = 1; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -821,20 +895,21 @@ public java.lang.String getId() { } } /** + * + * *
      * Unique identifier for the request.
      * 
* * string id = 1; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -842,54 +917,61 @@ public java.lang.String getId() { } } /** + * + * *
      * Unique identifier for the request.
      * 
* * string id = 1; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * Unique identifier for the request.
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * Unique identifier for the request.
      * 
* * string id = 1; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -897,34 +979,47 @@ public Builder setIdBytes( private com.google.cloud.apigeeconnect.v1.Payload payload_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Payload, com.google.cloud.apigeeconnect.v1.Payload.Builder, com.google.cloud.apigeeconnect.v1.PayloadOrBuilder> payloadBuilder_; + com.google.cloud.apigeeconnect.v1.Payload, + com.google.cloud.apigeeconnect.v1.Payload.Builder, + com.google.cloud.apigeeconnect.v1.PayloadOrBuilder> + payloadBuilder_; /** + * + * *
      * Actual payload to send to agent.
      * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; + * * @return Whether the payload field is set. */ public boolean hasPayload() { return payloadBuilder_ != null || payload_ != null; } /** + * + * *
      * Actual payload to send to agent.
      * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; + * * @return The payload. */ public com.google.cloud.apigeeconnect.v1.Payload getPayload() { if (payloadBuilder_ == null) { - return payload_ == null ? com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() + : payload_; } else { return payloadBuilder_.getMessage(); } } /** + * + * *
      * Actual payload to send to agent.
      * 
@@ -945,14 +1040,15 @@ public Builder setPayload(com.google.cloud.apigeeconnect.v1.Payload value) { return this; } /** + * + * *
      * Actual payload to send to agent.
      * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; */ - public Builder setPayload( - com.google.cloud.apigeeconnect.v1.Payload.Builder builderForValue) { + public Builder setPayload(com.google.cloud.apigeeconnect.v1.Payload.Builder builderForValue) { if (payloadBuilder_ == null) { payload_ = builderForValue.build(); onChanged(); @@ -963,6 +1059,8 @@ public Builder setPayload( return this; } /** + * + * *
      * Actual payload to send to agent.
      * 
@@ -973,7 +1071,9 @@ public Builder mergePayload(com.google.cloud.apigeeconnect.v1.Payload value) { if (payloadBuilder_ == null) { if (payload_ != null) { payload_ = - com.google.cloud.apigeeconnect.v1.Payload.newBuilder(payload_).mergeFrom(value).buildPartial(); + com.google.cloud.apigeeconnect.v1.Payload.newBuilder(payload_) + .mergeFrom(value) + .buildPartial(); } else { payload_ = value; } @@ -985,6 +1085,8 @@ public Builder mergePayload(com.google.cloud.apigeeconnect.v1.Payload value) { return this; } /** + * + * *
      * Actual payload to send to agent.
      * 
@@ -1003,6 +1105,8 @@ public Builder clearPayload() { return this; } /** + * + * *
      * Actual payload to send to agent.
      * 
@@ -1010,11 +1114,13 @@ public Builder clearPayload() { * .google.cloud.apigeeconnect.v1.Payload payload = 2; */ public com.google.cloud.apigeeconnect.v1.Payload.Builder getPayloadBuilder() { - + onChanged(); return getPayloadFieldBuilder().getBuilder(); } /** + * + * *
      * Actual payload to send to agent.
      * 
@@ -1025,11 +1131,14 @@ public com.google.cloud.apigeeconnect.v1.PayloadOrBuilder getPayloadOrBuilder() if (payloadBuilder_ != null) { return payloadBuilder_.getMessageOrBuilder(); } else { - return payload_ == null ? - com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() : payload_; + return payload_ == null + ? com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance() + : payload_; } } /** + * + * *
      * Actual payload to send to agent.
      * 
@@ -1037,14 +1146,17 @@ public com.google.cloud.apigeeconnect.v1.PayloadOrBuilder getPayloadOrBuilder() * .google.cloud.apigeeconnect.v1.Payload payload = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Payload, com.google.cloud.apigeeconnect.v1.Payload.Builder, com.google.cloud.apigeeconnect.v1.PayloadOrBuilder> + com.google.cloud.apigeeconnect.v1.Payload, + com.google.cloud.apigeeconnect.v1.Payload.Builder, + com.google.cloud.apigeeconnect.v1.PayloadOrBuilder> getPayloadFieldBuilder() { if (payloadBuilder_ == null) { - payloadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Payload, com.google.cloud.apigeeconnect.v1.Payload.Builder, com.google.cloud.apigeeconnect.v1.PayloadOrBuilder>( - getPayload(), - getParentForChildren(), - isClean()); + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Payload, + com.google.cloud.apigeeconnect.v1.Payload.Builder, + com.google.cloud.apigeeconnect.v1.PayloadOrBuilder>( + getPayload(), getParentForChildren(), isClean()); payload_ = null; } return payloadBuilder_; @@ -1052,51 +1164,67 @@ public com.google.cloud.apigeeconnect.v1.PayloadOrBuilder getPayloadOrBuilder() private int endpoint_ = 0; /** + * + * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; + * * @return The enum numeric value on the wire for endpoint. */ - @java.lang.Override public int getEndpointValue() { + @java.lang.Override + public int getEndpointValue() { return endpoint_; } /** + * + * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; + * * @param value The enum numeric value on the wire for endpoint to set. * @return This builder for chaining. */ public Builder setEndpointValue(int value) { - + endpoint_ = value; onChanged(); return this; } /** + * + * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; + * * @return The endpoint. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.TetherEndpoint result = com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); - return result == null ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED : result; + com.google.cloud.apigeeconnect.v1.TetherEndpoint result = + com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); + return result == null + ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED + : result; } /** + * + * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; + * * @param value The endpoint to set. * @return This builder for chaining. */ @@ -1104,21 +1232,24 @@ public Builder setEndpoint(com.google.cloud.apigeeconnect.v1.TetherEndpoint valu if (value == null) { throw new NullPointerException(); } - + endpoint_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; + * * @return This builder for chaining. */ public Builder clearEndpoint() { - + endpoint_ = 0; onChanged(); return this; @@ -1126,19 +1257,21 @@ public Builder clearEndpoint() { private java.lang.Object project_ = ""; /** + * + * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -1147,21 +1280,22 @@ public java.lang.String getProject() { } } /** + * + * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -1169,57 +1303,64 @@ public java.lang.String getProject() { } } /** + * + * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1227,18 +1368,20 @@ public Builder setProjectBytes( private java.lang.Object traceId_ = ""; /** + * + * *
      * Unique identifier for clients to trace their request/response.
      * 
* * string trace_id = 5; + * * @return The traceId. */ public java.lang.String getTraceId() { java.lang.Object ref = traceId_; 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(); traceId_ = s; return s; @@ -1247,20 +1390,21 @@ public java.lang.String getTraceId() { } } /** + * + * *
      * Unique identifier for clients to trace their request/response.
      * 
* * string trace_id = 5; + * * @return The bytes for traceId. */ - public com.google.protobuf.ByteString - getTraceIdBytes() { + public com.google.protobuf.ByteString getTraceIdBytes() { java.lang.Object ref = traceId_; 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); traceId_ = b; return b; } else { @@ -1268,54 +1412,61 @@ public java.lang.String getTraceId() { } } /** + * + * *
      * Unique identifier for clients to trace their request/response.
      * 
* * string trace_id = 5; + * * @param value The traceId to set. * @return This builder for chaining. */ - public Builder setTraceId( - java.lang.String value) { + public Builder setTraceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + traceId_ = value; onChanged(); return this; } /** + * + * *
      * Unique identifier for clients to trace their request/response.
      * 
* * string trace_id = 5; + * * @return This builder for chaining. */ public Builder clearTraceId() { - + traceId_ = getDefaultInstance().getTraceId(); onChanged(); return this; } /** + * + * *
      * Unique identifier for clients to trace their request/response.
      * 
* * string trace_id = 5; + * * @param value The bytes for traceId to set. * @return This builder for chaining. */ - public Builder setTraceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + traceId_ = value; onChanged(); return this; @@ -1323,24 +1474,33 @@ public Builder setTraceIdBytes( private com.google.protobuf.Duration timeout_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> timeoutBuilder_; + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + timeoutBuilder_; /** + * + * *
      * Timeout for the HTTP request.
      * 
* * .google.protobuf.Duration timeout = 6; + * * @return Whether the timeout field is set. */ public boolean hasTimeout() { return timeoutBuilder_ != null || timeout_ != null; } /** + * + * *
      * Timeout for the HTTP request.
      * 
* * .google.protobuf.Duration timeout = 6; + * * @return The timeout. */ public com.google.protobuf.Duration getTimeout() { @@ -1351,6 +1511,8 @@ public com.google.protobuf.Duration getTimeout() { } } /** + * + * *
      * Timeout for the HTTP request.
      * 
@@ -1371,14 +1533,15 @@ public Builder setTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Timeout for the HTTP request.
      * 
* * .google.protobuf.Duration timeout = 6; */ - public Builder setTimeout( - com.google.protobuf.Duration.Builder builderForValue) { + public Builder setTimeout(com.google.protobuf.Duration.Builder builderForValue) { if (timeoutBuilder_ == null) { timeout_ = builderForValue.build(); onChanged(); @@ -1389,6 +1552,8 @@ public Builder setTimeout( return this; } /** + * + * *
      * Timeout for the HTTP request.
      * 
@@ -1399,7 +1564,7 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { if (timeoutBuilder_ == null) { if (timeout_ != null) { timeout_ = - com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); + com.google.protobuf.Duration.newBuilder(timeout_).mergeFrom(value).buildPartial(); } else { timeout_ = value; } @@ -1411,6 +1576,8 @@ public Builder mergeTimeout(com.google.protobuf.Duration value) { return this; } /** + * + * *
      * Timeout for the HTTP request.
      * 
@@ -1429,6 +1596,8 @@ public Builder clearTimeout() { return this; } /** + * + * *
      * Timeout for the HTTP request.
      * 
@@ -1436,11 +1605,13 @@ public Builder clearTimeout() { * .google.protobuf.Duration timeout = 6; */ public com.google.protobuf.Duration.Builder getTimeoutBuilder() { - + onChanged(); return getTimeoutFieldBuilder().getBuilder(); } /** + * + * *
      * Timeout for the HTTP request.
      * 
@@ -1451,11 +1622,12 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { if (timeoutBuilder_ != null) { return timeoutBuilder_.getMessageOrBuilder(); } else { - return timeout_ == null ? - com.google.protobuf.Duration.getDefaultInstance() : timeout_; + return timeout_ == null ? com.google.protobuf.Duration.getDefaultInstance() : timeout_; } } /** + * + * *
      * Timeout for the HTTP request.
      * 
@@ -1463,21 +1635,24 @@ public com.google.protobuf.DurationOrBuilder getTimeoutOrBuilder() { * .google.protobuf.Duration timeout = 6; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> getTimeoutFieldBuilder() { if (timeoutBuilder_ == null) { - timeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( - getTimeout(), - getParentForChildren(), - isClean()); + timeoutBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getTimeout(), getParentForChildren(), isClean()); timeout_ = null; } return timeoutBuilder_; } + @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); } @@ -1487,12 +1662,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.EgressRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.EgressRequest) private static final com.google.cloud.apigeeconnect.v1.EgressRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.EgressRequest(); } @@ -1501,16 +1676,16 @@ public static com.google.cloud.apigeeconnect.v1.EgressRequest getDefaultInstance return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EgressRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EgressRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EgressRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EgressRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1525,6 +1700,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.EgressRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java index 97c5898..ac0e838 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressRequestOrBuilder.java @@ -1,51 +1,80 @@ +/* + * 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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface EgressRequestOrBuilder extends +public interface EgressRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.EgressRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Unique identifier for the request.
    * 
* * string id = 1; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Unique identifier for the request.
    * 
* * string id = 1; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Actual payload to send to agent.
    * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; + * * @return Whether the payload field is set. */ boolean hasPayload(); /** + * + * *
    * Actual payload to send to agent.
    * 
* * .google.cloud.apigeeconnect.v1.Payload payload = 2; + * * @return The payload. */ com.google.cloud.apigeeconnect.v1.Payload getPayload(); /** + * + * *
    * Actual payload to send to agent.
    * 
@@ -55,85 +84,109 @@ public interface EgressRequestOrBuilder extends com.google.cloud.apigeeconnect.v1.PayloadOrBuilder getPayloadOrBuilder(); /** + * + * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; + * * @return The enum numeric value on the wire for endpoint. */ int getEndpointValue(); /** + * + * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 3; + * * @return The endpoint. */ com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint(); /** + * + * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * Unique identifier for clients to trace their request/response.
    * 
* * string trace_id = 5; + * * @return The traceId. */ java.lang.String getTraceId(); /** + * + * *
    * Unique identifier for clients to trace their request/response.
    * 
* * string trace_id = 5; + * * @return The bytes for traceId. */ - com.google.protobuf.ByteString - getTraceIdBytes(); + com.google.protobuf.ByteString getTraceIdBytes(); /** + * + * *
    * Timeout for the HTTP request.
    * 
* * .google.protobuf.Duration timeout = 6; + * * @return Whether the timeout field is set. */ boolean hasTimeout(); /** + * + * *
    * Timeout for the HTTP request.
    * 
* * .google.protobuf.Duration timeout = 6; + * * @return The timeout. */ com.google.protobuf.Duration getTimeout(); /** + * + * *
    * Timeout for the HTTP request.
    * 
diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java index b0d25db..a1594ad 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponse.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * gRPC response payload for tether.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.EgressResponse} */ -public final class EgressResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EgressResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.EgressResponse) EgressResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EgressResponse.newBuilder() to construct. private EgressResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EgressResponse() { id_ = ""; project_ = ""; @@ -29,16 +47,15 @@ private EgressResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EgressResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EgressResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,69 +74,78 @@ private EgressResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: { - com.google.cloud.apigeeconnect.v1.HttpResponse.Builder subBuilder = null; - if (httpResponse_ != null) { - subBuilder = httpResponse_.toBuilder(); + id_ = s; + break; } - httpResponse_ = input.readMessage(com.google.cloud.apigeeconnect.v1.HttpResponse.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(httpResponse_); - httpResponse_ = subBuilder.buildPartial(); + case 18: + { + com.google.cloud.apigeeconnect.v1.HttpResponse.Builder subBuilder = null; + if (httpResponse_ != null) { + subBuilder = httpResponse_.toBuilder(); + } + httpResponse_ = + input.readMessage( + com.google.cloud.apigeeconnect.v1.HttpResponse.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(httpResponse_); + httpResponse_ = subBuilder.buildPartial(); + } + + break; } - - break; - } - case 26: { - com.google.rpc.Status.Builder subBuilder = null; - if (status_ != null) { - subBuilder = status_.toBuilder(); - } - status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(status_); - status_ = subBuilder.buildPartial(); + case 26: + { + com.google.rpc.Status.Builder subBuilder = null; + if (status_ != null) { + subBuilder = status_.toBuilder(); + } + status_ = input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(status_); + status_ = subBuilder.buildPartial(); + } + + break; } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - project_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); + project_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); - traceId_ = s; - break; - } - case 48: { - int rawValue = input.readEnum(); + traceId_ = s; + break; + } + case 48: + { + int rawValue = input.readEnum(); - endpoint_ = rawValue; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); + endpoint_ = rawValue; + break; + } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -127,34 +153,39 @@ private EgressResponse( } 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.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.EgressResponse.class, com.google.cloud.apigeeconnect.v1.EgressResponse.Builder.class); + com.google.cloud.apigeeconnect.v1.EgressResponse.class, + com.google.cloud.apigeeconnect.v1.EgressResponse.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * Unique identifier for the response. Matches the EgressRequest's id.
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -163,29 +194,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** + * + * *
    * Unique identifier for the response. Matches the EgressRequest's id.
    * 
* * string id = 1; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -196,11 +227,14 @@ public java.lang.String getId() { public static final int HTTP_RESPONSE_FIELD_NUMBER = 2; private com.google.cloud.apigeeconnect.v1.HttpResponse httpResponse_; /** + * + * *
    * HttpResponse.
    * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; + * * @return Whether the httpResponse field is set. */ @java.lang.Override @@ -208,18 +242,25 @@ public boolean hasHttpResponse() { return httpResponse_ != null; } /** + * + * *
    * HttpResponse.
    * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; + * * @return The httpResponse. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.HttpResponse getHttpResponse() { - return httpResponse_ == null ? com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() : httpResponse_; + return httpResponse_ == null + ? com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() + : httpResponse_; } /** + * + * *
    * HttpResponse.
    * 
@@ -234,11 +275,14 @@ public com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder getHttpResponseOr public static final int STATUS_FIELD_NUMBER = 3; private com.google.rpc.Status status_; /** + * + * *
    * Errors from application when handling the http request.
    * 
* * .google.rpc.Status status = 3; + * * @return Whether the status field is set. */ @java.lang.Override @@ -246,11 +290,14 @@ public boolean hasStatus() { return status_ != null; } /** + * + * *
    * Errors from application when handling the http request.
    * 
* * .google.rpc.Status status = 3; + * * @return The status. */ @java.lang.Override @@ -258,6 +305,8 @@ public com.google.rpc.Status getStatus() { return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } /** + * + * *
    * Errors from application when handling the http request.
    * 
@@ -272,12 +321,15 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { public static final int PROJECT_FIELD_NUMBER = 4; private volatile java.lang.Object project_; /** + * + * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; + * * @return The project. */ @java.lang.Override @@ -286,30 +338,30 @@ public java.lang.String getProject() { 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(); project_ = s; return s; } } /** + * + * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; + * * @return The bytes for project. */ @java.lang.Override - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -320,12 +372,15 @@ public java.lang.String getProject() { public static final int TRACE_ID_FIELD_NUMBER = 5; private volatile java.lang.Object traceId_; /** + * + * *
    * Unique identifier for clients to trace their request/response. Matches the
    * EgressRequest's trace id
    * 
* * string trace_id = 5; + * * @return The traceId. */ @java.lang.Override @@ -334,30 +389,30 @@ public java.lang.String getTraceId() { 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(); traceId_ = s; return s; } } /** + * + * *
    * Unique identifier for clients to trace their request/response. Matches the
    * EgressRequest's trace id
    * 
* * string trace_id = 5; + * * @return The bytes for traceId. */ @java.lang.Override - public com.google.protobuf.ByteString - getTraceIdBytes() { + public com.google.protobuf.ByteString getTraceIdBytes() { java.lang.Object ref = traceId_; 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); traceId_ = b; return b; } else { @@ -368,39 +423,51 @@ public java.lang.String getTraceId() { public static final int ENDPOINT_FIELD_NUMBER = 6; private int endpoint_; /** + * + * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; + * * @return The enum numeric value on the wire for endpoint. */ - @java.lang.Override public int getEndpointValue() { + @java.lang.Override + public int getEndpointValue() { return endpoint_; } /** + * + * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; + * * @return The endpoint. */ - @java.lang.Override public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { + @java.lang.Override + public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.TetherEndpoint result = com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); + com.google.cloud.apigeeconnect.v1.TetherEndpoint result = + com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); return result == null ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED : result; } public static final int NAME_FIELD_NUMBER = 7; private volatile java.lang.Object name_; /** + * + * *
    * Name is the full resource path of endpoint.
    * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
    * 
* * string name = 7; + * * @return The name. */ @java.lang.Override @@ -409,30 +476,30 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
    * Name is the full resource path of endpoint.
    * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
    * 
* * string name = 7; + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -441,6 +508,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -452,8 +520,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -469,7 +536,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, traceId_); } - if (endpoint_ != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED.getNumber()) { + if (endpoint_ + != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED + .getNumber()) { output.writeEnum(6, endpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { @@ -488,12 +557,10 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (httpResponse_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getHttpResponse()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getHttpResponse()); } if (status_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getStatus()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, project_); @@ -501,9 +568,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(traceId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, traceId_); } - if (endpoint_ != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, endpoint_); + if (endpoint_ + != com.google.cloud.apigeeconnect.v1.TetherEndpoint.TETHER_ENDPOINT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, endpoint_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, name_); @@ -516,32 +584,27 @@ 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.apigeeconnect.v1.EgressResponse)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.EgressResponse other = (com.google.cloud.apigeeconnect.v1.EgressResponse) obj; + com.google.cloud.apigeeconnect.v1.EgressResponse other = + (com.google.cloud.apigeeconnect.v1.EgressResponse) obj; - if (!getId() - .equals(other.getId())) return false; + if (!getId().equals(other.getId())) return false; if (hasHttpResponse() != other.hasHttpResponse()) return false; if (hasHttpResponse()) { - if (!getHttpResponse() - .equals(other.getHttpResponse())) return false; + if (!getHttpResponse().equals(other.getHttpResponse())) return false; } if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { - if (!getStatus() - .equals(other.getStatus())) return false; + if (!getStatus().equals(other.getStatus())) return false; } - if (!getProject() - .equals(other.getProject())) return false; - if (!getTraceId() - .equals(other.getTraceId())) return false; + if (!getProject().equals(other.getProject())) return false; + if (!getTraceId().equals(other.getTraceId())) return false; if (endpoint_ != other.endpoint_) return false; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -576,118 +639,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.EgressResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.EgressResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.EgressResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.EgressResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse 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; } /** + * + * *
    * gRPC response payload for tether.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.EgressResponse} */ - 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.apigeeconnect.v1.EgressResponse) com.google.cloud.apigeeconnect.v1.EgressResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.EgressResponse.class, com.google.cloud.apigeeconnect.v1.EgressResponse.Builder.class); + com.google.cloud.apigeeconnect.v1.EgressResponse.class, + com.google.cloud.apigeeconnect.v1.EgressResponse.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.EgressResponse.newBuilder() @@ -695,16 +767,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(); @@ -734,9 +805,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; } @java.lang.Override @@ -755,7 +826,8 @@ public com.google.cloud.apigeeconnect.v1.EgressResponse build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.EgressResponse buildPartial() { - com.google.cloud.apigeeconnect.v1.EgressResponse result = new com.google.cloud.apigeeconnect.v1.EgressResponse(this); + com.google.cloud.apigeeconnect.v1.EgressResponse result = + new com.google.cloud.apigeeconnect.v1.EgressResponse(this); result.id_ = id_; if (httpResponseBuilder_ == null) { result.httpResponse_ = httpResponse_; @@ -779,38 +851,39 @@ public com.google.cloud.apigeeconnect.v1.EgressResponse 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.apigeeconnect.v1.EgressResponse) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.EgressResponse)other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.EgressResponse) other); } else { super.mergeFrom(other); return this; @@ -818,7 +891,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.EgressResponse other) { - if (other == com.google.cloud.apigeeconnect.v1.EgressResponse.getDefaultInstance()) return this; + if (other == com.google.cloud.apigeeconnect.v1.EgressResponse.getDefaultInstance()) + return this; if (!other.getId().isEmpty()) { id_ = other.id_; onChanged(); @@ -875,18 +949,20 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** + * + * *
      * Unique identifier for the response. Matches the EgressRequest's id.
      * 
* * string id = 1; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -895,20 +971,21 @@ public java.lang.String getId() { } } /** + * + * *
      * Unique identifier for the response. Matches the EgressRequest's id.
      * 
* * string id = 1; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -916,54 +993,61 @@ public java.lang.String getId() { } } /** + * + * *
      * Unique identifier for the response. Matches the EgressRequest's id.
      * 
* * string id = 1; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * Unique identifier for the response. Matches the EgressRequest's id.
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * Unique identifier for the response. Matches the EgressRequest's id.
      * 
* * string id = 1; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -971,34 +1055,47 @@ public Builder setIdBytes( private com.google.cloud.apigeeconnect.v1.HttpResponse httpResponse_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpResponse, com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder> httpResponseBuilder_; + com.google.cloud.apigeeconnect.v1.HttpResponse, + com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, + com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder> + httpResponseBuilder_; /** + * + * *
      * HttpResponse.
      * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; + * * @return Whether the httpResponse field is set. */ public boolean hasHttpResponse() { return httpResponseBuilder_ != null || httpResponse_ != null; } /** + * + * *
      * HttpResponse.
      * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; + * * @return The httpResponse. */ public com.google.cloud.apigeeconnect.v1.HttpResponse getHttpResponse() { if (httpResponseBuilder_ == null) { - return httpResponse_ == null ? com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() : httpResponse_; + return httpResponse_ == null + ? com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() + : httpResponse_; } else { return httpResponseBuilder_.getMessage(); } } /** + * + * *
      * HttpResponse.
      * 
@@ -1019,6 +1116,8 @@ public Builder setHttpResponse(com.google.cloud.apigeeconnect.v1.HttpResponse va return this; } /** + * + * *
      * HttpResponse.
      * 
@@ -1037,6 +1136,8 @@ public Builder setHttpResponse( return this; } /** + * + * *
      * HttpResponse.
      * 
@@ -1047,7 +1148,9 @@ public Builder mergeHttpResponse(com.google.cloud.apigeeconnect.v1.HttpResponse if (httpResponseBuilder_ == null) { if (httpResponse_ != null) { httpResponse_ = - com.google.cloud.apigeeconnect.v1.HttpResponse.newBuilder(httpResponse_).mergeFrom(value).buildPartial(); + com.google.cloud.apigeeconnect.v1.HttpResponse.newBuilder(httpResponse_) + .mergeFrom(value) + .buildPartial(); } else { httpResponse_ = value; } @@ -1059,6 +1162,8 @@ public Builder mergeHttpResponse(com.google.cloud.apigeeconnect.v1.HttpResponse return this; } /** + * + * *
      * HttpResponse.
      * 
@@ -1077,6 +1182,8 @@ public Builder clearHttpResponse() { return this; } /** + * + * *
      * HttpResponse.
      * 
@@ -1084,11 +1191,13 @@ public Builder clearHttpResponse() { * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; */ public com.google.cloud.apigeeconnect.v1.HttpResponse.Builder getHttpResponseBuilder() { - + onChanged(); return getHttpResponseFieldBuilder().getBuilder(); } /** + * + * *
      * HttpResponse.
      * 
@@ -1099,11 +1208,14 @@ public com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder getHttpResponseOr if (httpResponseBuilder_ != null) { return httpResponseBuilder_.getMessageOrBuilder(); } else { - return httpResponse_ == null ? - com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() : httpResponse_; + return httpResponse_ == null + ? com.google.cloud.apigeeconnect.v1.HttpResponse.getDefaultInstance() + : httpResponse_; } } /** + * + * *
      * HttpResponse.
      * 
@@ -1111,14 +1223,17 @@ public com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder getHttpResponseOr * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpResponse, com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder> + com.google.cloud.apigeeconnect.v1.HttpResponse, + com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, + com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder> getHttpResponseFieldBuilder() { if (httpResponseBuilder_ == null) { - httpResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpResponse, com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder>( - getHttpResponse(), - getParentForChildren(), - isClean()); + httpResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.HttpResponse, + com.google.cloud.apigeeconnect.v1.HttpResponse.Builder, + com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder>( + getHttpResponse(), getParentForChildren(), isClean()); httpResponse_ = null; } return httpResponseBuilder_; @@ -1126,24 +1241,31 @@ public com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder getHttpResponseOr private com.google.rpc.Status status_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> statusBuilder_; + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + statusBuilder_; /** + * + * *
      * Errors from application when handling the http request.
      * 
* * .google.rpc.Status status = 3; + * * @return Whether the status field is set. */ public boolean hasStatus() { return statusBuilder_ != null || status_ != null; } /** + * + * *
      * Errors from application when handling the http request.
      * 
* * .google.rpc.Status status = 3; + * * @return The status. */ public com.google.rpc.Status getStatus() { @@ -1154,6 +1276,8 @@ public com.google.rpc.Status getStatus() { } } /** + * + * *
      * Errors from application when handling the http request.
      * 
@@ -1174,14 +1298,15 @@ public Builder setStatus(com.google.rpc.Status value) { return this; } /** + * + * *
      * Errors from application when handling the http request.
      * 
* * .google.rpc.Status status = 3; */ - public Builder setStatus( - com.google.rpc.Status.Builder builderForValue) { + public Builder setStatus(com.google.rpc.Status.Builder builderForValue) { if (statusBuilder_ == null) { status_ = builderForValue.build(); onChanged(); @@ -1192,6 +1317,8 @@ public Builder setStatus( return this; } /** + * + * *
      * Errors from application when handling the http request.
      * 
@@ -1201,8 +1328,7 @@ public Builder setStatus( public Builder mergeStatus(com.google.rpc.Status value) { if (statusBuilder_ == null) { if (status_ != null) { - status_ = - com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); + status_ = com.google.rpc.Status.newBuilder(status_).mergeFrom(value).buildPartial(); } else { status_ = value; } @@ -1214,6 +1340,8 @@ public Builder mergeStatus(com.google.rpc.Status value) { return this; } /** + * + * *
      * Errors from application when handling the http request.
      * 
@@ -1232,6 +1360,8 @@ public Builder clearStatus() { return this; } /** + * + * *
      * Errors from application when handling the http request.
      * 
@@ -1239,11 +1369,13 @@ public Builder clearStatus() { * .google.rpc.Status status = 3; */ public com.google.rpc.Status.Builder getStatusBuilder() { - + onChanged(); return getStatusFieldBuilder().getBuilder(); } /** + * + * *
      * Errors from application when handling the http request.
      * 
@@ -1254,11 +1386,12 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { if (statusBuilder_ != null) { return statusBuilder_.getMessageOrBuilder(); } else { - return status_ == null ? - com.google.rpc.Status.getDefaultInstance() : status_; + return status_ == null ? com.google.rpc.Status.getDefaultInstance() : status_; } } /** + * + * *
      * Errors from application when handling the http request.
      * 
@@ -1266,14 +1399,14 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { * .google.rpc.Status status = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> getStatusFieldBuilder() { if (statusBuilder_ == null) { - statusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder>( - getStatus(), - getParentForChildren(), - isClean()); + statusBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getStatus(), getParentForChildren(), isClean()); status_ = null; } return statusBuilder_; @@ -1281,19 +1414,21 @@ public com.google.rpc.StatusOrBuilder getStatusOrBuilder() { private java.lang.Object project_ = ""; /** + * + * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; + * * @return The project. */ public java.lang.String getProject() { java.lang.Object ref = project_; 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(); project_ = s; return s; @@ -1302,21 +1437,22 @@ public java.lang.String getProject() { } } /** + * + * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; + * * @return The bytes for project. */ - public com.google.protobuf.ByteString - getProjectBytes() { + public com.google.protobuf.ByteString getProjectBytes() { java.lang.Object ref = project_; 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); project_ = b; return b; } else { @@ -1324,57 +1460,64 @@ public java.lang.String getProject() { } } /** + * + * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; + * * @param value The project to set. * @return This builder for chaining. */ - public Builder setProject( - java.lang.String value) { + public Builder setProject(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + project_ = value; onChanged(); return this; } /** + * + * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; + * * @return This builder for chaining. */ public Builder clearProject() { - + project_ = getDefaultInstance().getProject(); onChanged(); return this; } /** + * + * *
      * GCP Project.
      * Format: `projects/{project_number}`.
      * 
* * string project = 4; + * * @param value The bytes for project to set. * @return This builder for chaining. */ - public Builder setProjectBytes( - com.google.protobuf.ByteString value) { + public Builder setProjectBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + project_ = value; onChanged(); return this; @@ -1382,19 +1525,21 @@ public Builder setProjectBytes( private java.lang.Object traceId_ = ""; /** + * + * *
      * Unique identifier for clients to trace their request/response. Matches the
      * EgressRequest's trace id
      * 
* * string trace_id = 5; + * * @return The traceId. */ public java.lang.String getTraceId() { java.lang.Object ref = traceId_; 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(); traceId_ = s; return s; @@ -1403,21 +1548,22 @@ public java.lang.String getTraceId() { } } /** + * + * *
      * Unique identifier for clients to trace their request/response. Matches the
      * EgressRequest's trace id
      * 
* * string trace_id = 5; + * * @return The bytes for traceId. */ - public com.google.protobuf.ByteString - getTraceIdBytes() { + public com.google.protobuf.ByteString getTraceIdBytes() { java.lang.Object ref = traceId_; 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); traceId_ = b; return b; } else { @@ -1425,57 +1571,64 @@ public java.lang.String getTraceId() { } } /** + * + * *
      * Unique identifier for clients to trace their request/response. Matches the
      * EgressRequest's trace id
      * 
* * string trace_id = 5; + * * @param value The traceId to set. * @return This builder for chaining. */ - public Builder setTraceId( - java.lang.String value) { + public Builder setTraceId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + traceId_ = value; onChanged(); return this; } /** + * + * *
      * Unique identifier for clients to trace their request/response. Matches the
      * EgressRequest's trace id
      * 
* * string trace_id = 5; + * * @return This builder for chaining. */ public Builder clearTraceId() { - + traceId_ = getDefaultInstance().getTraceId(); onChanged(); return this; } /** + * + * *
      * Unique identifier for clients to trace their request/response. Matches the
      * EgressRequest's trace id
      * 
* * string trace_id = 5; + * * @param value The bytes for traceId to set. * @return This builder for chaining. */ - public Builder setTraceIdBytes( - com.google.protobuf.ByteString value) { + public Builder setTraceIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + traceId_ = value; onChanged(); return this; @@ -1483,51 +1636,67 @@ public Builder setTraceIdBytes( private int endpoint_ = 0; /** + * + * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; + * * @return The enum numeric value on the wire for endpoint. */ - @java.lang.Override public int getEndpointValue() { + @java.lang.Override + public int getEndpointValue() { return endpoint_; } /** + * + * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; + * * @param value The enum numeric value on the wire for endpoint to set. * @return This builder for chaining. */ public Builder setEndpointValue(int value) { - + endpoint_ = value; onChanged(); return this; } /** + * + * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; + * * @return The endpoint. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.TetherEndpoint result = com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); - return result == null ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED : result; + com.google.cloud.apigeeconnect.v1.TetherEndpoint result = + com.google.cloud.apigeeconnect.v1.TetherEndpoint.valueOf(endpoint_); + return result == null + ? com.google.cloud.apigeeconnect.v1.TetherEndpoint.UNRECOGNIZED + : result; } /** + * + * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; + * * @param value The endpoint to set. * @return This builder for chaining. */ @@ -1535,21 +1704,24 @@ public Builder setEndpoint(com.google.cloud.apigeeconnect.v1.TetherEndpoint valu if (value == null) { throw new NullPointerException(); } - + endpoint_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Tether Endpoint.
      * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; + * * @return This builder for chaining. */ public Builder clearEndpoint() { - + endpoint_ = 0; onChanged(); return this; @@ -1557,19 +1729,21 @@ public Builder clearEndpoint() { private java.lang.Object name_ = ""; /** + * + * *
      * Name is the full resource path of endpoint.
      * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
      * 
* * string name = 7; + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -1578,21 +1752,22 @@ public java.lang.String getName() { } } /** + * + * *
      * Name is the full resource path of endpoint.
      * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
      * 
* * string name = 7; + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -1600,64 +1775,71 @@ public java.lang.String getName() { } } /** + * + * *
      * Name is the full resource path of endpoint.
      * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
      * 
* * string name = 7; + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
      * Name is the full resource path of endpoint.
      * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
      * 
* * string name = 7; + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
      * Name is the full resource path of endpoint.
      * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
      * 
* * string name = 7; + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1667,12 +1849,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.EgressResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.EgressResponse) private static final com.google.cloud.apigeeconnect.v1.EgressResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.EgressResponse(); } @@ -1681,16 +1863,16 @@ public static com.google.cloud.apigeeconnect.v1.EgressResponse getDefaultInstanc return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EgressResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EgressResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EgressResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EgressResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1705,6 +1887,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.EgressResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java similarity index 77% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java index b1b2fe0..a01adda 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EgressResponseOrBuilder.java @@ -1,51 +1,80 @@ +/* + * 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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface EgressResponseOrBuilder extends +public interface EgressResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.EgressResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Unique identifier for the response. Matches the EgressRequest's id.
    * 
* * string id = 1; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * Unique identifier for the response. Matches the EgressRequest's id.
    * 
* * string id = 1; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * HttpResponse.
    * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; + * * @return Whether the httpResponse field is set. */ boolean hasHttpResponse(); /** + * + * *
    * HttpResponse.
    * 
* * .google.cloud.apigeeconnect.v1.HttpResponse http_response = 2; + * * @return The httpResponse. */ com.google.cloud.apigeeconnect.v1.HttpResponse getHttpResponse(); /** + * + * *
    * HttpResponse.
    * 
@@ -55,24 +84,32 @@ public interface EgressResponseOrBuilder extends com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder getHttpResponseOrBuilder(); /** + * + * *
    * Errors from application when handling the http request.
    * 
* * .google.rpc.Status status = 3; + * * @return Whether the status field is set. */ boolean hasStatus(); /** + * + * *
    * Errors from application when handling the http request.
    * 
* * .google.rpc.Status status = 3; + * * @return The status. */ com.google.rpc.Status getStatus(); /** + * + * *
    * Errors from application when handling the http request.
    * 
@@ -82,87 +119,108 @@ public interface EgressResponseOrBuilder extends com.google.rpc.StatusOrBuilder getStatusOrBuilder(); /** + * + * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; + * * @return The project. */ java.lang.String getProject(); /** + * + * *
    * GCP Project.
    * Format: `projects/{project_number}`.
    * 
* * string project = 4; + * * @return The bytes for project. */ - com.google.protobuf.ByteString - getProjectBytes(); + com.google.protobuf.ByteString getProjectBytes(); /** + * + * *
    * Unique identifier for clients to trace their request/response. Matches the
    * EgressRequest's trace id
    * 
* * string trace_id = 5; + * * @return The traceId. */ java.lang.String getTraceId(); /** + * + * *
    * Unique identifier for clients to trace their request/response. Matches the
    * EgressRequest's trace id
    * 
* * string trace_id = 5; + * * @return The bytes for traceId. */ - com.google.protobuf.ByteString - getTraceIdBytes(); + com.google.protobuf.ByteString getTraceIdBytes(); /** + * + * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; + * * @return The enum numeric value on the wire for endpoint. */ int getEndpointValue(); /** + * + * *
    * Tether Endpoint.
    * 
* * .google.cloud.apigeeconnect.v1.TetherEndpoint endpoint = 6; + * * @return The endpoint. */ com.google.cloud.apigeeconnect.v1.TetherEndpoint getEndpoint(); /** + * + * *
    * Name is the full resource path of endpoint.
    * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
    * 
* * string name = 7; + * * @return The name. */ java.lang.String getName(); /** + * + * *
    * Name is the full resource path of endpoint.
    * Format: `projects/{project_number or project_id}/endpoints/{endpoint}`
    * 
* * string name = 7; + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/EndpointName.java diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java similarity index 69% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java index adc104e..af21519 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Header.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * The http headers.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.Header} */ -public final class Header extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Header extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.Header) HeaderOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Header.newBuilder() to construct. private Header(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private Header() { key_ = ""; values_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -26,16 +44,15 @@ private Header() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Header(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Header( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -55,28 +72,30 @@ private Header( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - key_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; + key_ = s; + break; } - values_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + values_.add(s); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -84,8 +103,7 @@ private Header( } 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)) { values_ = values_.getUnmodifiableView(); @@ -94,23 +112,27 @@ private Header( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Header.class, com.google.cloud.apigeeconnect.v1.Header.Builder.class); + com.google.cloud.apigeeconnect.v1.Header.class, + com.google.cloud.apigeeconnect.v1.Header.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** * string key = 1; + * * @return The key. */ @java.lang.Override @@ -119,8 +141,7 @@ public java.lang.String getKey() { 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(); key_ = s; return s; @@ -128,16 +149,15 @@ public java.lang.String getKey() { } /** * string key = 1; + * * @return The bytes for key. */ @java.lang.Override - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; 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); key_ = b; return b; } else { @@ -149,14 +169,15 @@ public java.lang.String getKey() { private com.google.protobuf.LazyStringList values_; /** * repeated string values = 2; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_; } /** * repeated string values = 2; + * * @return The count of values. */ public int getValuesCount() { @@ -164,6 +185,7 @@ public int getValuesCount() { } /** * repeated string values = 2; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -172,15 +194,16 @@ public java.lang.String getValues(int index) { } /** * repeated string values = 2; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -192,8 +215,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(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } @@ -228,17 +250,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.apigeeconnect.v1.Header)) { return super.equals(obj); } com.google.cloud.apigeeconnect.v1.Header other = (com.google.cloud.apigeeconnect.v1.Header) obj; - if (!getKey() - .equals(other.getKey())) return false; - if (!getValuesList() - .equals(other.getValuesList())) return false; + if (!getKey().equals(other.getKey())) return false; + if (!getValuesList().equals(other.getValuesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -261,118 +281,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.Header parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.Header parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.Header parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header 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 http headers.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.Header} */ - 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.apigeeconnect.v1.Header) com.google.cloud.apigeeconnect.v1.HeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Header.class, com.google.cloud.apigeeconnect.v1.Header.Builder.class); + com.google.cloud.apigeeconnect.v1.Header.class, + com.google.cloud.apigeeconnect.v1.Header.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.Header.newBuilder() @@ -380,16 +409,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(); @@ -401,9 +429,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; } @java.lang.Override @@ -422,7 +450,8 @@ public com.google.cloud.apigeeconnect.v1.Header build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.Header buildPartial() { - com.google.cloud.apigeeconnect.v1.Header result = new com.google.cloud.apigeeconnect.v1.Header(this); + com.google.cloud.apigeeconnect.v1.Header result = + new com.google.cloud.apigeeconnect.v1.Header(this); int from_bitField0_ = bitField0_; result.key_ = key_; if (((bitField0_ & 0x00000001) != 0)) { @@ -438,38 +467,39 @@ public com.google.cloud.apigeeconnect.v1.Header 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.apigeeconnect.v1.Header) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.Header)other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.Header) other); } else { super.mergeFrom(other); return this; @@ -520,18 +550,19 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object key_ = ""; /** * string key = 1; + * * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; 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(); key_ = s; return s; @@ -541,15 +572,14 @@ public java.lang.String getKey() { } /** * string key = 1; + * * @return The bytes for key. */ - public com.google.protobuf.ByteString - getKeyBytes() { + public com.google.protobuf.ByteString getKeyBytes() { java.lang.Object ref = key_; 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); key_ = b; return b; } else { @@ -558,63 +588,67 @@ public java.lang.String getKey() { } /** * string key = 1; + * * @param value The key to set. * @return This builder for chaining. */ - public Builder setKey( - java.lang.String value) { + public Builder setKey(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + key_ = value; onChanged(); return this; } /** * string key = 1; + * * @return This builder for chaining. */ public Builder clearKey() { - + key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** * string key = 1; + * * @param value The bytes for key to set. * @return This builder for chaining. */ - public Builder setKeyBytes( - com.google.protobuf.ByteString value) { + public Builder setKeyBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + key_ = value; onChanged(); return this; } - private com.google.protobuf.LazyStringList values_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private com.google.protobuf.LazyStringList values_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureValuesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { values_ = new com.google.protobuf.LazyStringArrayList(values_); bitField0_ |= 0x00000001; - } + } } /** * repeated string values = 2; + * * @return A list containing the values. */ - public com.google.protobuf.ProtocolStringList - getValuesList() { + public com.google.protobuf.ProtocolStringList getValuesList() { return values_.getUnmodifiableView(); } /** * repeated string values = 2; + * * @return The count of values. */ public int getValuesCount() { @@ -622,6 +656,7 @@ public int getValuesCount() { } /** * repeated string values = 2; + * * @param index The index of the element to return. * @return The values at the given index. */ @@ -630,59 +665,59 @@ public java.lang.String getValues(int index) { } /** * repeated string values = 2; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - public com.google.protobuf.ByteString - getValuesBytes(int index) { + public com.google.protobuf.ByteString getValuesBytes(int index) { return values_.getByteString(index); } /** * repeated string values = 2; + * * @param index The index to set the value at. * @param value The values to set. * @return This builder for chaining. */ - public Builder setValues( - int index, java.lang.String value) { + public Builder setValues(int index, java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.set(index, value); onChanged(); return this; } /** * repeated string values = 2; + * * @param value The values to add. * @return This builder for chaining. */ - public Builder addValues( - java.lang.String value) { + public Builder addValues(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - ensureValuesIsMutable(); + throw new NullPointerException(); + } + ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } /** * repeated string values = 2; + * * @param values The values to add. * @return This builder for chaining. */ - public Builder addAllValues( - java.lang.Iterable values) { + public Builder addAllValues(java.lang.Iterable values) { ensureValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, values_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, values_); onChanged(); return this; } /** * repeated string values = 2; + * * @return This builder for chaining. */ public Builder clearValues() { @@ -693,23 +728,23 @@ public Builder clearValues() { } /** * repeated string values = 2; + * * @param value The bytes of the values to add. * @return This builder for chaining. */ - public Builder addValuesBytes( - com.google.protobuf.ByteString value) { + public Builder addValuesBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); ensureValuesIsMutable(); values_.add(value); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -719,12 +754,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.Header) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.Header) private static final com.google.cloud.apigeeconnect.v1.Header DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.Header(); } @@ -733,16 +768,16 @@ public static com.google.cloud.apigeeconnect.v1.Header getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser
- PARSER = new com.google.protobuf.AbstractParser
() { - @java.lang.Override - public Header parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Header(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser
PARSER = + new com.google.protobuf.AbstractParser
() { + @java.lang.Override + public Header parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Header(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser
parser() { return PARSER; @@ -757,6 +792,4 @@ public com.google.protobuf.Parser
getParserForType() { public com.google.cloud.apigeeconnect.v1.Header getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java similarity index 55% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java index bbb5d0b..dbf01d0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HeaderOrBuilder.java @@ -1,46 +1,65 @@ +/* + * 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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface HeaderOrBuilder extends +public interface HeaderOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.Header) com.google.protobuf.MessageOrBuilder { /** * string key = 1; + * * @return The key. */ java.lang.String getKey(); /** * string key = 1; + * * @return The bytes for key. */ - com.google.protobuf.ByteString - getKeyBytes(); + com.google.protobuf.ByteString getKeyBytes(); /** * repeated string values = 2; + * * @return A list containing the values. */ - java.util.List - getValuesList(); + java.util.List getValuesList(); /** * repeated string values = 2; + * * @return The count of values. */ int getValuesCount(); /** * repeated string values = 2; + * * @param index The index of the element to return. * @return The values at the given index. */ java.lang.String getValues(int index); /** * repeated string values = 2; + * * @param index The index of the value to return. * @return The bytes of the values at the given index. */ - com.google.protobuf.ByteString - getValuesBytes(int index); + com.google.protobuf.ByteString getValuesBytes(int index); } diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java index ebb082d..a592352 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequest.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * The proto definition of http request.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.HttpRequest} */ -public final class HttpRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HttpRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.HttpRequest) HttpRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HttpRequest.newBuilder() to construct. private HttpRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HttpRequest() { id_ = ""; method_ = ""; @@ -28,16 +46,15 @@ private HttpRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HttpRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HttpRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,52 +74,59 @@ private HttpRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - method_ = s; - break; - } - case 26: { - com.google.cloud.apigeeconnect.v1.Url.Builder subBuilder = null; - if (url_ != null) { - subBuilder = url_.toBuilder(); - } - url_ = input.readMessage(com.google.cloud.apigeeconnect.v1.Url.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(url_); - url_ = subBuilder.buildPartial(); + id_ = s; + break; } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - break; - } - case 34: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + method_ = s; + break; } - headers_.add( - input.readMessage(com.google.cloud.apigeeconnect.v1.Header.parser(), extensionRegistry)); - break; - } - case 42: { + case 26: + { + com.google.cloud.apigeeconnect.v1.Url.Builder subBuilder = null; + if (url_ != null) { + subBuilder = url_.toBuilder(); + } + url_ = + input.readMessage( + com.google.cloud.apigeeconnect.v1.Url.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(url_); + url_ = subBuilder.buildPartial(); + } - body_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + break; + } + case 34: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + headers_.add( + input.readMessage( + com.google.cloud.apigeeconnect.v1.Header.parser(), extensionRegistry)); + break; + } + case 42: + { + body_ = input.readBytes(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -110,8 +134,7 @@ private HttpRequest( } 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)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -120,27 +143,33 @@ private HttpRequest( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.HttpRequest.class, com.google.cloud.apigeeconnect.v1.HttpRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.HttpRequest.class, + com.google.cloud.apigeeconnect.v1.HttpRequest.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * A unique identifier for the request.
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -149,29 +178,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** + * + * *
    * A unique identifier for the request.
    * 
* * string id = 1; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -182,12 +211,15 @@ public java.lang.String getId() { public static final int METHOD_FIELD_NUMBER = 2; private volatile java.lang.Object method_; /** + * + * *
    * The HTTP request method.
    * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
    * 
* * string method = 2; + * * @return The method. */ @java.lang.Override @@ -196,30 +228,30 @@ public java.lang.String getMethod() { 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(); method_ = s; return s; } } /** + * + * *
    * The HTTP request method.
    * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
    * 
* * string method = 2; + * * @return The bytes for method. */ @java.lang.Override - public com.google.protobuf.ByteString - getMethodBytes() { + public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -230,11 +262,14 @@ public java.lang.String getMethod() { public static final int URL_FIELD_NUMBER = 3; private com.google.cloud.apigeeconnect.v1.Url url_; /** + * + * *
    * The HTTP request URL.
    * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; + * * @return Whether the url field is set. */ @java.lang.Override @@ -242,11 +277,14 @@ public boolean hasUrl() { return url_ != null; } /** + * + * *
    * The HTTP request URL.
    * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; + * * @return The url. */ @java.lang.Override @@ -254,6 +292,8 @@ public com.google.cloud.apigeeconnect.v1.Url getUrl() { return url_ == null ? com.google.cloud.apigeeconnect.v1.Url.getDefaultInstance() : url_; } /** + * + * *
    * The HTTP request URL.
    * 
@@ -268,6 +308,8 @@ public com.google.cloud.apigeeconnect.v1.UrlOrBuilder getUrlOrBuilder() { public static final int HEADERS_FIELD_NUMBER = 4; private java.util.List headers_; /** + * + * *
    * The HTTP request headers.
    * 
@@ -279,6 +321,8 @@ public java.util.List getHeadersList() return headers_; } /** + * + * *
    * The HTTP request headers.
    * 
@@ -286,11 +330,13 @@ public java.util.List getHeadersList() * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ @java.lang.Override - public java.util.List + public java.util.List getHeadersOrBuilderList() { return headers_; } /** + * + * *
    * The HTTP request headers.
    * 
@@ -302,6 +348,8 @@ public int getHeadersCount() { return headers_.size(); } /** + * + * *
    * The HTTP request headers.
    * 
@@ -313,6 +361,8 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { return headers_.get(index); } /** + * + * *
    * The HTTP request headers.
    * 
@@ -320,19 +370,21 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ @java.lang.Override - public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( - int index) { + public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index) { return headers_.get(index); } public static final int BODY_FIELD_NUMBER = 5; private com.google.protobuf.ByteString body_; /** + * + * *
    * HTTP request body.
    * 
* * bytes body = 5; + * * @return The body. */ @java.lang.Override @@ -341,6 +393,7 @@ public com.google.protobuf.ByteString getBody() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -352,8 +405,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -385,16 +437,13 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); } if (url_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUrl()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUrl()); } for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, headers_.get(i)); } if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(5, body_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, body_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -404,26 +453,22 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.HttpRequest)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.HttpRequest other = (com.google.cloud.apigeeconnect.v1.HttpRequest) obj; + com.google.cloud.apigeeconnect.v1.HttpRequest other = + (com.google.cloud.apigeeconnect.v1.HttpRequest) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getMethod() - .equals(other.getMethod())) return false; + if (!getId().equals(other.getId())) return false; + if (!getMethod().equals(other.getMethod())) return false; if (hasUrl() != other.hasUrl()) return false; if (hasUrl()) { - if (!getUrl() - .equals(other.getUrl())) return false; + if (!getUrl().equals(other.getUrl())) return false; } - if (!getHeadersList() - .equals(other.getHeadersList())) return false; - if (!getBody() - .equals(other.getBody())) return false; + if (!getHeadersList().equals(other.getHeadersList())) return false; + if (!getBody().equals(other.getBody())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -454,118 +499,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.HttpRequest parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.HttpRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.HttpRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest 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 proto definition of http request.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.HttpRequest} */ - 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.apigeeconnect.v1.HttpRequest) com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.HttpRequest.class, com.google.cloud.apigeeconnect.v1.HttpRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.HttpRequest.class, + com.google.cloud.apigeeconnect.v1.HttpRequest.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.HttpRequest.newBuilder() @@ -573,17 +627,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) { getHeadersFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -609,9 +663,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; } @java.lang.Override @@ -630,7 +684,8 @@ public com.google.cloud.apigeeconnect.v1.HttpRequest build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.HttpRequest buildPartial() { - com.google.cloud.apigeeconnect.v1.HttpRequest result = new com.google.cloud.apigeeconnect.v1.HttpRequest(this); + com.google.cloud.apigeeconnect.v1.HttpRequest result = + new com.google.cloud.apigeeconnect.v1.HttpRequest(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.method_ = method_; @@ -657,38 +712,39 @@ public com.google.cloud.apigeeconnect.v1.HttpRequest 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.apigeeconnect.v1.HttpRequest) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.HttpRequest)other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.HttpRequest) other); } else { super.mergeFrom(other); return this; @@ -726,9 +782,10 @@ public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.HttpRequest other) { headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHeadersFieldBuilder() : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHeadersFieldBuilder() + : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -765,22 +822,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object id_ = ""; /** + * + * *
      * A unique identifier for the request.
      * 
* * string id = 1; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -789,20 +849,21 @@ public java.lang.String getId() { } } /** + * + * *
      * A unique identifier for the request.
      * 
* * string id = 1; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -810,54 +871,61 @@ public java.lang.String getId() { } } /** + * + * *
      * A unique identifier for the request.
      * 
* * string id = 1; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * A unique identifier for the request.
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * A unique identifier for the request.
      * 
* * string id = 1; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -865,19 +933,21 @@ public Builder setIdBytes( private java.lang.Object method_ = ""; /** + * + * *
      * The HTTP request method.
      * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
      * 
* * string method = 2; + * * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; 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(); method_ = s; return s; @@ -886,21 +956,22 @@ public java.lang.String getMethod() { } } /** + * + * *
      * The HTTP request method.
      * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
      * 
* * string method = 2; + * * @return The bytes for method. */ - public com.google.protobuf.ByteString - getMethodBytes() { + public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; 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); method_ = b; return b; } else { @@ -908,57 +979,64 @@ public java.lang.String getMethod() { } } /** + * + * *
      * The HTTP request method.
      * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
      * 
* * string method = 2; + * * @param value The method to set. * @return This builder for chaining. */ - public Builder setMethod( - java.lang.String value) { + public Builder setMethod(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + method_ = value; onChanged(); return this; } /** + * + * *
      * The HTTP request method.
      * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
      * 
* * string method = 2; + * * @return This builder for chaining. */ public Builder clearMethod() { - + method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** + * + * *
      * The HTTP request method.
      * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
      * 
* * string method = 2; + * * @param value The bytes for method to set. * @return This builder for chaining. */ - public Builder setMethodBytes( - com.google.protobuf.ByteString value) { + public Builder setMethodBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + method_ = value; onChanged(); return this; @@ -966,24 +1044,33 @@ public Builder setMethodBytes( private com.google.cloud.apigeeconnect.v1.Url url_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Url, com.google.cloud.apigeeconnect.v1.Url.Builder, com.google.cloud.apigeeconnect.v1.UrlOrBuilder> urlBuilder_; + com.google.cloud.apigeeconnect.v1.Url, + com.google.cloud.apigeeconnect.v1.Url.Builder, + com.google.cloud.apigeeconnect.v1.UrlOrBuilder> + urlBuilder_; /** + * + * *
      * The HTTP request URL.
      * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; + * * @return Whether the url field is set. */ public boolean hasUrl() { return urlBuilder_ != null || url_ != null; } /** + * + * *
      * The HTTP request URL.
      * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; + * * @return The url. */ public com.google.cloud.apigeeconnect.v1.Url getUrl() { @@ -994,6 +1081,8 @@ public com.google.cloud.apigeeconnect.v1.Url getUrl() { } } /** + * + * *
      * The HTTP request URL.
      * 
@@ -1014,14 +1103,15 @@ public Builder setUrl(com.google.cloud.apigeeconnect.v1.Url value) { return this; } /** + * + * *
      * The HTTP request URL.
      * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; */ - public Builder setUrl( - com.google.cloud.apigeeconnect.v1.Url.Builder builderForValue) { + public Builder setUrl(com.google.cloud.apigeeconnect.v1.Url.Builder builderForValue) { if (urlBuilder_ == null) { url_ = builderForValue.build(); onChanged(); @@ -1032,6 +1122,8 @@ public Builder setUrl( return this; } /** + * + * *
      * The HTTP request URL.
      * 
@@ -1042,7 +1134,9 @@ public Builder mergeUrl(com.google.cloud.apigeeconnect.v1.Url value) { if (urlBuilder_ == null) { if (url_ != null) { url_ = - com.google.cloud.apigeeconnect.v1.Url.newBuilder(url_).mergeFrom(value).buildPartial(); + com.google.cloud.apigeeconnect.v1.Url.newBuilder(url_) + .mergeFrom(value) + .buildPartial(); } else { url_ = value; } @@ -1054,6 +1148,8 @@ public Builder mergeUrl(com.google.cloud.apigeeconnect.v1.Url value) { return this; } /** + * + * *
      * The HTTP request URL.
      * 
@@ -1072,6 +1168,8 @@ public Builder clearUrl() { return this; } /** + * + * *
      * The HTTP request URL.
      * 
@@ -1079,11 +1177,13 @@ public Builder clearUrl() { * .google.cloud.apigeeconnect.v1.Url url = 3; */ public com.google.cloud.apigeeconnect.v1.Url.Builder getUrlBuilder() { - + onChanged(); return getUrlFieldBuilder().getBuilder(); } /** + * + * *
      * The HTTP request URL.
      * 
@@ -1094,11 +1194,12 @@ public com.google.cloud.apigeeconnect.v1.UrlOrBuilder getUrlOrBuilder() { if (urlBuilder_ != null) { return urlBuilder_.getMessageOrBuilder(); } else { - return url_ == null ? - com.google.cloud.apigeeconnect.v1.Url.getDefaultInstance() : url_; + return url_ == null ? com.google.cloud.apigeeconnect.v1.Url.getDefaultInstance() : url_; } } /** + * + * *
      * The HTTP request URL.
      * 
@@ -1106,32 +1207,41 @@ public com.google.cloud.apigeeconnect.v1.UrlOrBuilder getUrlOrBuilder() { * .google.cloud.apigeeconnect.v1.Url url = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Url, com.google.cloud.apigeeconnect.v1.Url.Builder, com.google.cloud.apigeeconnect.v1.UrlOrBuilder> + com.google.cloud.apigeeconnect.v1.Url, + com.google.cloud.apigeeconnect.v1.Url.Builder, + com.google.cloud.apigeeconnect.v1.UrlOrBuilder> getUrlFieldBuilder() { if (urlBuilder_ == null) { - urlBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Url, com.google.cloud.apigeeconnect.v1.Url.Builder, com.google.cloud.apigeeconnect.v1.UrlOrBuilder>( - getUrl(), - getParentForChildren(), - isClean()); + urlBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Url, + com.google.cloud.apigeeconnect.v1.Url.Builder, + com.google.cloud.apigeeconnect.v1.UrlOrBuilder>( + getUrl(), getParentForChildren(), isClean()); url_ = null; } return urlBuilder_; } private java.util.List headers_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> headersBuilder_; + com.google.cloud.apigeeconnect.v1.Header, + com.google.cloud.apigeeconnect.v1.Header.Builder, + com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> + headersBuilder_; /** + * + * *
      * The HTTP request headers.
      * 
@@ -1146,6 +1256,8 @@ public java.util.List getHeadersList() } } /** + * + * *
      * The HTTP request headers.
      * 
@@ -1160,6 +1272,8 @@ public int getHeadersCount() { } } /** + * + * *
      * The HTTP request headers.
      * 
@@ -1174,14 +1288,15 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { } } /** + * + * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public Builder setHeaders( - int index, com.google.cloud.apigeeconnect.v1.Header value) { + public Builder setHeaders(int index, com.google.cloud.apigeeconnect.v1.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1195,6 +1310,8 @@ public Builder setHeaders( return this; } /** + * + * *
      * The HTTP request headers.
      * 
@@ -1213,6 +1330,8 @@ public Builder setHeaders( return this; } /** + * + * *
      * The HTTP request headers.
      * 
@@ -1233,14 +1352,15 @@ public Builder addHeaders(com.google.cloud.apigeeconnect.v1.Header value) { return this; } /** + * + * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public Builder addHeaders( - int index, com.google.cloud.apigeeconnect.v1.Header value) { + public Builder addHeaders(int index, com.google.cloud.apigeeconnect.v1.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1254,14 +1374,15 @@ public Builder addHeaders( return this; } /** + * + * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public Builder addHeaders( - com.google.cloud.apigeeconnect.v1.Header.Builder builderForValue) { + public Builder addHeaders(com.google.cloud.apigeeconnect.v1.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); @@ -1272,6 +1393,8 @@ public Builder addHeaders( return this; } /** + * + * *
      * The HTTP request headers.
      * 
@@ -1290,6 +1413,8 @@ public Builder addHeaders( return this; } /** + * + * *
      * The HTTP request headers.
      * 
@@ -1300,8 +1425,7 @@ public Builder addAllHeaders( java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1309,6 +1433,8 @@ public Builder addAllHeaders( return this; } /** + * + * *
      * The HTTP request headers.
      * 
@@ -1326,6 +1452,8 @@ public Builder clearHeaders() { return this; } /** + * + * *
      * The HTTP request headers.
      * 
@@ -1343,39 +1471,44 @@ public Builder removeHeaders(int index) { return this; } /** + * + * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public com.google.cloud.apigeeconnect.v1.Header.Builder getHeadersBuilder( - int index) { + public com.google.cloud.apigeeconnect.v1.Header.Builder getHeadersBuilder(int index) { return getHeadersFieldBuilder().getBuilder(index); } /** + * + * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( - int index) { + public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index) { if (headersBuilder_ == null) { - return headers_.get(index); } else { + return headers_.get(index); + } else { return headersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public java.util.List - getHeadersOrBuilderList() { + public java.util.List + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1383,6 +1516,8 @@ public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( } } /** + * + * *
      * The HTTP request headers.
      * 
@@ -1390,42 +1525,48 @@ public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder() { - return getHeadersFieldBuilder().addBuilder( - com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); + return getHeadersFieldBuilder() + .addBuilder(com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); } /** + * + * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder( - int index) { - return getHeadersFieldBuilder().addBuilder( - index, com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); + public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder(int index) { + return getHeadersFieldBuilder() + .addBuilder(index, com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); } /** + * + * *
      * The HTTP request headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - public java.util.List - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> + com.google.cloud.apigeeconnect.v1.Header, + com.google.cloud.apigeeconnect.v1.Header.Builder, + com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder>( - headers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + headersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Header, + com.google.cloud.apigeeconnect.v1.Header.Builder, + com.google.cloud.apigeeconnect.v1.HeaderOrBuilder>( + headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; @@ -1433,11 +1574,14 @@ public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder( private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * HTTP request body.
      * 
* * bytes body = 5; + * * @return The body. */ @java.lang.Override @@ -1445,40 +1589,46 @@ public com.google.protobuf.ByteString getBody() { return body_; } /** + * + * *
      * HTTP request body.
      * 
* * bytes body = 5; + * * @param value The body to set. * @return This builder for chaining. */ public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** + * + * *
      * HTTP request body.
      * 
* * bytes body = 5; + * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1488,12 +1638,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.HttpRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.HttpRequest) private static final com.google.cloud.apigeeconnect.v1.HttpRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.HttpRequest(); } @@ -1502,16 +1652,16 @@ public static com.google.cloud.apigeeconnect.v1.HttpRequest getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1526,6 +1676,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.HttpRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java index 7cdec7b..318c3ec 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpRequestOrBuilder.java @@ -1,73 +1,107 @@ +/* + * 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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface HttpRequestOrBuilder extends +public interface HttpRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.HttpRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A unique identifier for the request.
    * 
* * string id = 1; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * A unique identifier for the request.
    * 
* * string id = 1; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * The HTTP request method.
    * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
    * 
* * string method = 2; + * * @return The method. */ java.lang.String getMethod(); /** + * + * *
    * The HTTP request method.
    * Valid methods: "GET", "HEAD", "POST", "PUT", "PATCH","DELETE".
    * 
* * string method = 2; + * * @return The bytes for method. */ - com.google.protobuf.ByteString - getMethodBytes(); + com.google.protobuf.ByteString getMethodBytes(); /** + * + * *
    * The HTTP request URL.
    * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; + * * @return Whether the url field is set. */ boolean hasUrl(); /** + * + * *
    * The HTTP request URL.
    * 
* * .google.cloud.apigeeconnect.v1.Url url = 3; + * * @return The url. */ com.google.cloud.apigeeconnect.v1.Url getUrl(); /** + * + * *
    * The HTTP request URL.
    * 
@@ -77,15 +111,18 @@ public interface HttpRequestOrBuilder extends com.google.cloud.apigeeconnect.v1.UrlOrBuilder getUrlOrBuilder(); /** + * + * *
    * The HTTP request headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - java.util.List - getHeadersList(); + java.util.List getHeadersList(); /** + * + * *
    * The HTTP request headers.
    * 
@@ -94,6 +131,8 @@ public interface HttpRequestOrBuilder extends */ com.google.cloud.apigeeconnect.v1.Header getHeaders(int index); /** + * + * *
    * The HTTP request headers.
    * 
@@ -102,30 +141,36 @@ public interface HttpRequestOrBuilder extends */ int getHeadersCount(); /** + * + * *
    * The HTTP request headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - java.util.List + java.util.List getHeadersOrBuilderList(); /** + * + * *
    * The HTTP request headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 4; */ - com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( - int index); + com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index); /** + * + * *
    * HTTP request body.
    * 
* * bytes body = 5; + * * @return The body. */ com.google.protobuf.ByteString getBody(); diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java similarity index 74% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java index 1914be7..b3b3d3f 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponse.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * The proto definition of http response.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.HttpResponse} */ -public final class HttpResponse extends - com.google.protobuf.GeneratedMessageV3 implements +public final class HttpResponse extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.HttpResponse) HttpResponseOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use HttpResponse.newBuilder() to construct. private HttpResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private HttpResponse() { id_ = ""; status_ = ""; @@ -28,16 +46,15 @@ private HttpResponse() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new HttpResponse(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private HttpResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -57,49 +74,53 @@ private HttpResponse( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - id_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - status_ = s; - break; - } - case 24: { - - statusCode_ = input.readInt32(); - break; - } - case 34: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - body_ = input.readBytes(); - break; - } - case 42: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - headers_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; + id_ = s; + break; } - headers_.add( - input.readMessage(com.google.cloud.apigeeconnect.v1.Header.parser(), extensionRegistry)); - break; - } - case 48: { + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); - contentLength_ = input.readInt64(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + status_ = s; + break; + } + case 24: + { + statusCode_ = input.readInt32(); + break; + } + case 34: + { + body_ = input.readBytes(); + break; + } + case 42: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + headers_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + headers_.add( + input.readMessage( + com.google.cloud.apigeeconnect.v1.Header.parser(), extensionRegistry)); + break; + } + case 48: + { + contentLength_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -107,8 +128,7 @@ private HttpResponse( } 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)) { headers_ = java.util.Collections.unmodifiableList(headers_); @@ -117,27 +137,33 @@ private HttpResponse( makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.HttpResponse.class, com.google.cloud.apigeeconnect.v1.HttpResponse.Builder.class); + com.google.cloud.apigeeconnect.v1.HttpResponse.class, + com.google.cloud.apigeeconnect.v1.HttpResponse.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * A unique identifier that matches the request ID.
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -146,29 +172,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** + * + * *
    * A unique identifier that matches the request ID.
    * 
* * string id = 1; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -179,11 +205,14 @@ public java.lang.String getId() { public static final int STATUS_FIELD_NUMBER = 2; private volatile java.lang.Object status_; /** + * + * *
    * Status of http response, e.g. "200 OK".
    * 
* * string status = 2; + * * @return The status. */ @java.lang.Override @@ -192,29 +221,29 @@ public java.lang.String getStatus() { 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(); status_ = s; return s; } } /** + * + * *
    * Status of http response, e.g. "200 OK".
    * 
* * string status = 2; + * * @return The bytes for status. */ @java.lang.Override - public com.google.protobuf.ByteString - getStatusBytes() { + public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; 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); status_ = b; return b; } else { @@ -225,11 +254,14 @@ public java.lang.String getStatus() { public static final int STATUS_CODE_FIELD_NUMBER = 3; private int statusCode_; /** + * + * *
    * Status code of http response, e.g. 200.
    * 
* * int32 status_code = 3; + * * @return The statusCode. */ @java.lang.Override @@ -240,11 +272,14 @@ public int getStatusCode() { public static final int BODY_FIELD_NUMBER = 4; private com.google.protobuf.ByteString body_; /** + * + * *
    * The HTTP 1.1 response body.
    * 
* * bytes body = 4; + * * @return The body. */ @java.lang.Override @@ -255,6 +290,8 @@ public com.google.protobuf.ByteString getBody() { public static final int HEADERS_FIELD_NUMBER = 5; private java.util.List headers_; /** + * + * *
    * The HTTP response headers.
    * 
@@ -266,6 +303,8 @@ public java.util.List getHeadersList() return headers_; } /** + * + * *
    * The HTTP response headers.
    * 
@@ -273,11 +312,13 @@ public java.util.List getHeadersList() * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ @java.lang.Override - public java.util.List + public java.util.List getHeadersOrBuilderList() { return headers_; } /** + * + * *
    * The HTTP response headers.
    * 
@@ -289,6 +330,8 @@ public int getHeadersCount() { return headers_.size(); } /** + * + * *
    * The HTTP response headers.
    * 
@@ -300,6 +343,8 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { return headers_.get(index); } /** + * + * *
    * The HTTP response headers.
    * 
@@ -307,14 +352,15 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ @java.lang.Override - public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( - int index) { + public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index) { return headers_.get(index); } public static final int CONTENT_LENGTH_FIELD_NUMBER = 6; private long contentLength_; /** + * + * *
    * Content length records the length of the associated content. The
    * value -1 indicates that the length is unknown. Unless http method
@@ -323,6 +369,7 @@ public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(
    * 
* * int64 content_length = 6; + * * @return The contentLength. */ @java.lang.Override @@ -331,6 +378,7 @@ public long getContentLength() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -342,8 +390,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -378,20 +425,16 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, status_); } if (statusCode_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, statusCode_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, statusCode_); } if (!body_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(4, body_); + size += com.google.protobuf.CodedOutputStream.computeBytesSize(4, body_); } for (int i = 0; i < headers_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, headers_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, headers_.get(i)); } if (contentLength_ != 0L) { - size += com.google.protobuf.CodedOutputStream - .computeInt64Size(6, contentLength_); + size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, contentLength_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -401,25 +444,20 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.cloud.apigeeconnect.v1.HttpResponse)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.HttpResponse other = (com.google.cloud.apigeeconnect.v1.HttpResponse) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getStatus() - .equals(other.getStatus())) return false; - if (getStatusCode() - != other.getStatusCode()) return false; - if (!getBody() - .equals(other.getBody())) return false; - if (!getHeadersList() - .equals(other.getHeadersList())) return false; - if (getContentLength() - != other.getContentLength()) return false; + com.google.cloud.apigeeconnect.v1.HttpResponse other = + (com.google.cloud.apigeeconnect.v1.HttpResponse) obj; + + if (!getId().equals(other.getId())) return false; + if (!getStatus().equals(other.getStatus())) return false; + if (getStatusCode() != other.getStatusCode()) return false; + if (!getBody().equals(other.getBody())) return false; + if (!getHeadersList().equals(other.getHeadersList())) return false; + if (getContentLength() != other.getContentLength()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -444,125 +482,133 @@ public int hashCode() { hash = (53 * hash) + getHeadersList().hashCode(); } hash = (37 * hash) + CONTENT_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getContentLength()); + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getContentLength()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.apigeeconnect.v1.HttpResponse parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.HttpResponse parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.HttpResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse 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 proto definition of http response.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.HttpResponse} */ - 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.apigeeconnect.v1.HttpResponse) com.google.cloud.apigeeconnect.v1.HttpResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.HttpResponse.class, com.google.cloud.apigeeconnect.v1.HttpResponse.Builder.class); + com.google.cloud.apigeeconnect.v1.HttpResponse.class, + com.google.cloud.apigeeconnect.v1.HttpResponse.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.HttpResponse.newBuilder() @@ -570,17 +616,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) { getHeadersFieldBuilder(); } } + @java.lang.Override public Builder clear() { super.clear(); @@ -604,9 +650,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; } @java.lang.Override @@ -625,7 +671,8 @@ public com.google.cloud.apigeeconnect.v1.HttpResponse build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.HttpResponse buildPartial() { - com.google.cloud.apigeeconnect.v1.HttpResponse result = new com.google.cloud.apigeeconnect.v1.HttpResponse(this); + com.google.cloud.apigeeconnect.v1.HttpResponse result = + new com.google.cloud.apigeeconnect.v1.HttpResponse(this); int from_bitField0_ = bitField0_; result.id_ = id_; result.status_ = status_; @@ -649,38 +696,39 @@ public com.google.cloud.apigeeconnect.v1.HttpResponse 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.apigeeconnect.v1.HttpResponse) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.HttpResponse)other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.HttpResponse) other); } else { super.mergeFrom(other); return this; @@ -721,9 +769,10 @@ public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.HttpResponse other) { headersBuilder_ = null; headers_ = other.headers_; bitField0_ = (bitField0_ & ~0x00000001); - headersBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getHeadersFieldBuilder() : null; + headersBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getHeadersFieldBuilder() + : null; } else { headersBuilder_.addAllMessages(other.headers_); } @@ -760,22 +809,25 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object id_ = ""; /** + * + * *
      * A unique identifier that matches the request ID.
      * 
* * string id = 1; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -784,20 +836,21 @@ public java.lang.String getId() { } } /** + * + * *
      * A unique identifier that matches the request ID.
      * 
* * string id = 1; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -805,54 +858,61 @@ public java.lang.String getId() { } } /** + * + * *
      * A unique identifier that matches the request ID.
      * 
* * string id = 1; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * A unique identifier that matches the request ID.
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * A unique identifier that matches the request ID.
      * 
* * string id = 1; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; @@ -860,18 +920,20 @@ public Builder setIdBytes( private java.lang.Object status_ = ""; /** + * + * *
      * Status of http response, e.g. "200 OK".
      * 
* * string status = 2; + * * @return The status. */ public java.lang.String getStatus() { java.lang.Object ref = status_; 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(); status_ = s; return s; @@ -880,20 +942,21 @@ public java.lang.String getStatus() { } } /** + * + * *
      * Status of http response, e.g. "200 OK".
      * 
* * string status = 2; + * * @return The bytes for status. */ - public com.google.protobuf.ByteString - getStatusBytes() { + public com.google.protobuf.ByteString getStatusBytes() { java.lang.Object ref = status_; 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); status_ = b; return b; } else { @@ -901,66 +964,76 @@ public java.lang.String getStatus() { } } /** + * + * *
      * Status of http response, e.g. "200 OK".
      * 
* * string status = 2; + * * @param value The status to set. * @return This builder for chaining. */ - public Builder setStatus( - java.lang.String value) { + public Builder setStatus(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + status_ = value; onChanged(); return this; } /** + * + * *
      * Status of http response, e.g. "200 OK".
      * 
* * string status = 2; + * * @return This builder for chaining. */ public Builder clearStatus() { - + status_ = getDefaultInstance().getStatus(); onChanged(); return this; } /** + * + * *
      * Status of http response, e.g. "200 OK".
      * 
* * string status = 2; + * * @param value The bytes for status to set. * @return This builder for chaining. */ - public Builder setStatusBytes( - com.google.protobuf.ByteString value) { + public Builder setStatusBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; onChanged(); return this; } - private int statusCode_ ; + private int statusCode_; /** + * + * *
      * Status code of http response, e.g. 200.
      * 
* * int32 status_code = 3; + * * @return The statusCode. */ @java.lang.Override @@ -968,30 +1041,36 @@ public int getStatusCode() { return statusCode_; } /** + * + * *
      * Status code of http response, e.g. 200.
      * 
* * int32 status_code = 3; + * * @param value The statusCode to set. * @return This builder for chaining. */ public Builder setStatusCode(int value) { - + statusCode_ = value; onChanged(); return this; } /** + * + * *
      * Status code of http response, e.g. 200.
      * 
* * int32 status_code = 3; + * * @return This builder for chaining. */ public Builder clearStatusCode() { - + statusCode_ = 0; onChanged(); return this; @@ -999,11 +1078,14 @@ public Builder clearStatusCode() { private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; /** + * + * *
      * The HTTP 1.1 response body.
      * 
* * bytes body = 4; + * * @return The body. */ @java.lang.Override @@ -1011,51 +1093,63 @@ public com.google.protobuf.ByteString getBody() { return body_; } /** + * + * *
      * The HTTP 1.1 response body.
      * 
* * bytes body = 4; + * * @param value The body to set. * @return This builder for chaining. */ public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + body_ = value; onChanged(); return this; } /** + * + * *
      * The HTTP 1.1 response body.
      * 
* * bytes body = 4; + * * @return This builder for chaining. */ public Builder clearBody() { - + body_ = getDefaultInstance().getBody(); onChanged(); return this; } private java.util.List headers_ = - java.util.Collections.emptyList(); + java.util.Collections.emptyList(); + private void ensureHeadersIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { headers_ = new java.util.ArrayList(headers_); bitField0_ |= 0x00000001; - } + } } private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> headersBuilder_; + com.google.cloud.apigeeconnect.v1.Header, + com.google.cloud.apigeeconnect.v1.Header.Builder, + com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> + headersBuilder_; /** + * + * *
      * The HTTP response headers.
      * 
@@ -1070,6 +1164,8 @@ public java.util.List getHeadersList() } } /** + * + * *
      * The HTTP response headers.
      * 
@@ -1084,6 +1180,8 @@ public int getHeadersCount() { } } /** + * + * *
      * The HTTP response headers.
      * 
@@ -1098,14 +1196,15 @@ public com.google.cloud.apigeeconnect.v1.Header getHeaders(int index) { } } /** + * + * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public Builder setHeaders( - int index, com.google.cloud.apigeeconnect.v1.Header value) { + public Builder setHeaders(int index, com.google.cloud.apigeeconnect.v1.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1119,6 +1218,8 @@ public Builder setHeaders( return this; } /** + * + * *
      * The HTTP response headers.
      * 
@@ -1137,6 +1238,8 @@ public Builder setHeaders( return this; } /** + * + * *
      * The HTTP response headers.
      * 
@@ -1157,14 +1260,15 @@ public Builder addHeaders(com.google.cloud.apigeeconnect.v1.Header value) { return this; } /** + * + * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public Builder addHeaders( - int index, com.google.cloud.apigeeconnect.v1.Header value) { + public Builder addHeaders(int index, com.google.cloud.apigeeconnect.v1.Header value) { if (headersBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -1178,14 +1282,15 @@ public Builder addHeaders( return this; } /** + * + * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public Builder addHeaders( - com.google.cloud.apigeeconnect.v1.Header.Builder builderForValue) { + public Builder addHeaders(com.google.cloud.apigeeconnect.v1.Header.Builder builderForValue) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); headers_.add(builderForValue.build()); @@ -1196,6 +1301,8 @@ public Builder addHeaders( return this; } /** + * + * *
      * The HTTP response headers.
      * 
@@ -1214,6 +1321,8 @@ public Builder addHeaders( return this; } /** + * + * *
      * The HTTP response headers.
      * 
@@ -1224,8 +1333,7 @@ public Builder addAllHeaders( java.lang.Iterable values) { if (headersBuilder_ == null) { ensureHeadersIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, headers_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, headers_); onChanged(); } else { headersBuilder_.addAllMessages(values); @@ -1233,6 +1341,8 @@ public Builder addAllHeaders( return this; } /** + * + * *
      * The HTTP response headers.
      * 
@@ -1250,6 +1360,8 @@ public Builder clearHeaders() { return this; } /** + * + * *
      * The HTTP response headers.
      * 
@@ -1267,39 +1379,44 @@ public Builder removeHeaders(int index) { return this; } /** + * + * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public com.google.cloud.apigeeconnect.v1.Header.Builder getHeadersBuilder( - int index) { + public com.google.cloud.apigeeconnect.v1.Header.Builder getHeadersBuilder(int index) { return getHeadersFieldBuilder().getBuilder(index); } /** + * + * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( - int index) { + public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index) { if (headersBuilder_ == null) { - return headers_.get(index); } else { + return headers_.get(index); + } else { return headersBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public java.util.List - getHeadersOrBuilderList() { + public java.util.List + getHeadersOrBuilderList() { if (headersBuilder_ != null) { return headersBuilder_.getMessageOrBuilderList(); } else { @@ -1307,6 +1424,8 @@ public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( } } /** + * + * *
      * The HTTP response headers.
      * 
@@ -1314,49 +1433,57 @@ public com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder() { - return getHeadersFieldBuilder().addBuilder( - com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); + return getHeadersFieldBuilder() + .addBuilder(com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); } /** + * + * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder( - int index) { - return getHeadersFieldBuilder().addBuilder( - index, com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); + public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder(int index) { + return getHeadersFieldBuilder() + .addBuilder(index, com.google.cloud.apigeeconnect.v1.Header.getDefaultInstance()); } /** + * + * *
      * The HTTP response headers.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - public java.util.List - getHeadersBuilderList() { + public java.util.List + getHeadersBuilderList() { return getHeadersFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> + com.google.cloud.apigeeconnect.v1.Header, + com.google.cloud.apigeeconnect.v1.Header.Builder, + com.google.cloud.apigeeconnect.v1.HeaderOrBuilder> getHeadersFieldBuilder() { if (headersBuilder_ == null) { - headersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Header, com.google.cloud.apigeeconnect.v1.Header.Builder, com.google.cloud.apigeeconnect.v1.HeaderOrBuilder>( - headers_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + headersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Header, + com.google.cloud.apigeeconnect.v1.Header.Builder, + com.google.cloud.apigeeconnect.v1.HeaderOrBuilder>( + headers_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); headers_ = null; } return headersBuilder_; } - private long contentLength_ ; + private long contentLength_; /** + * + * *
      * Content length records the length of the associated content. The
      * value -1 indicates that the length is unknown. Unless http method
@@ -1365,6 +1492,7 @@ public com.google.cloud.apigeeconnect.v1.Header.Builder addHeadersBuilder(
      * 
* * int64 content_length = 6; + * * @return The contentLength. */ @java.lang.Override @@ -1372,6 +1500,8 @@ public long getContentLength() { return contentLength_; } /** + * + * *
      * Content length records the length of the associated content. The
      * value -1 indicates that the length is unknown. Unless http method
@@ -1380,16 +1510,19 @@ public long getContentLength() {
      * 
* * int64 content_length = 6; + * * @param value The contentLength to set. * @return This builder for chaining. */ public Builder setContentLength(long value) { - + contentLength_ = value; onChanged(); return this; } /** + * + * *
      * Content length records the length of the associated content. The
      * value -1 indicates that the length is unknown. Unless http method
@@ -1398,17 +1531,18 @@ public Builder setContentLength(long value) {
      * 
* * int64 content_length = 6; + * * @return This builder for chaining. */ public Builder clearContentLength() { - + contentLength_ = 0L; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1418,12 +1552,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.HttpResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.HttpResponse) private static final com.google.cloud.apigeeconnect.v1.HttpResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.HttpResponse(); } @@ -1432,16 +1566,16 @@ public static com.google.cloud.apigeeconnect.v1.HttpResponse getDefaultInstance( return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HttpResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new HttpResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public HttpResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new HttpResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1456,6 +1590,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.HttpResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java similarity index 72% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java index 6a4a23e..3609f7b 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/HttpResponseOrBuilder.java @@ -1,82 +1,117 @@ +/* + * 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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface HttpResponseOrBuilder extends +public interface HttpResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.HttpResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A unique identifier that matches the request ID.
    * 
* * string id = 1; + * * @return The id. */ java.lang.String getId(); /** + * + * *
    * A unique identifier that matches the request ID.
    * 
* * string id = 1; + * * @return The bytes for id. */ - com.google.protobuf.ByteString - getIdBytes(); + com.google.protobuf.ByteString getIdBytes(); /** + * + * *
    * Status of http response, e.g. "200 OK".
    * 
* * string status = 2; + * * @return The status. */ java.lang.String getStatus(); /** + * + * *
    * Status of http response, e.g. "200 OK".
    * 
* * string status = 2; + * * @return The bytes for status. */ - com.google.protobuf.ByteString - getStatusBytes(); + com.google.protobuf.ByteString getStatusBytes(); /** + * + * *
    * Status code of http response, e.g. 200.
    * 
* * int32 status_code = 3; + * * @return The statusCode. */ int getStatusCode(); /** + * + * *
    * The HTTP 1.1 response body.
    * 
* * bytes body = 4; + * * @return The body. */ com.google.protobuf.ByteString getBody(); /** + * + * *
    * The HTTP response headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - java.util.List - getHeadersList(); + java.util.List getHeadersList(); /** + * + * *
    * The HTTP response headers.
    * 
@@ -85,6 +120,8 @@ public interface HttpResponseOrBuilder extends */ com.google.cloud.apigeeconnect.v1.Header getHeaders(int index); /** + * + * *
    * The HTTP response headers.
    * 
@@ -93,25 +130,30 @@ public interface HttpResponseOrBuilder extends */ int getHeadersCount(); /** + * + * *
    * The HTTP response headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - java.util.List + java.util.List getHeadersOrBuilderList(); /** + * + * *
    * The HTTP response headers.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Header headers = 5; */ - com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder( - int index); + com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(int index); /** + * + * *
    * Content length records the length of the associated content. The
    * value -1 indicates that the length is unknown. Unless http method
@@ -120,6 +162,7 @@ com.google.cloud.apigeeconnect.v1.HeaderOrBuilder getHeadersOrBuilder(
    * 
* * int64 content_length = 6; + * * @return The contentLength. */ long getContentLength(); diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java index 438c76d..f220cb0 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequest.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/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * The request for [ListConnections][Management.ListConnections].
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.ListConnectionsRequest} */ -public final class ListConnectionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class ListConnectionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.ListConnectionsRequest) ListConnectionsRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use ListConnectionsRequest.newBuilder() to construct. private ListConnectionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private ListConnectionsRequest() { parent_ = ""; pageToken_ = ""; @@ -26,16 +44,15 @@ private ListConnectionsRequest() { @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new ListConnectionsRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private ListConnectionsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -54,30 +71,32 @@ private ListConnectionsRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -85,35 +104,42 @@ private ListConnectionsRequest( } 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.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.class, com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.class, + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.Builder.class); } public static final int PARENT_FIELD_NUMBER = 1; private volatile java.lang.Object parent_; /** + * + * *
    * Required. Parent name of the form:
    *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ @java.lang.Override @@ -122,30 +148,32 @@ public java.lang.String getParent() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; } } /** + * + * *
    * Required. Parent name of the form:
    *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -156,6 +184,8 @@ public java.lang.String getParent() { public static final int PAGE_SIZE_FIELD_NUMBER = 2; private int pageSize_; /** + * + * *
    * The maximum number of connections to return. The service may return fewer
    * than this value. If unspecified, at most 100 connections will be returned.
@@ -163,6 +193,7 @@ public java.lang.String getParent() {
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -173,6 +204,8 @@ public int getPageSize() { public static final int PAGE_TOKEN_FIELD_NUMBER = 3; private volatile java.lang.Object pageToken_; /** + * + * *
    * A page token, received from a previous `ListConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -181,6 +214,7 @@ public int getPageSize() {
    * 
* * string page_token = 3; + * * @return The pageToken. */ @java.lang.Override @@ -189,14 +223,15 @@ public java.lang.String getPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; } } /** + * + * *
    * A page token, received from a previous `ListConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -205,16 +240,15 @@ public java.lang.String getPageToken() {
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -223,6 +257,7 @@ public java.lang.String getPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -234,8 +269,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } @@ -258,8 +292,7 @@ public int getSerializedSize() { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); @@ -272,19 +305,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.apigeeconnect.v1.ListConnectionsRequest)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest other = (com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) obj; + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest other = + (com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) obj; - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -308,117 +339,127 @@ public int hashCode() { } public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest prototype) { + + public static Builder newBuilder( + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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 for [ListConnections][Management.ListConnections].
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.ListConnectionsRequest} */ - 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.apigeeconnect.v1.ListConnectionsRequest) com.google.cloud.apigeeconnect.v1.ListConnectionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.class, com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.Builder.class); + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.class, + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.newBuilder() @@ -426,16 +467,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(); @@ -449,9 +489,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.ConnectionProto + .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsRequest_descriptor; } @java.lang.Override @@ -470,7 +510,8 @@ public com.google.cloud.apigeeconnect.v1.ListConnectionsRequest build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.ListConnectionsRequest buildPartial() { - com.google.cloud.apigeeconnect.v1.ListConnectionsRequest result = new com.google.cloud.apigeeconnect.v1.ListConnectionsRequest(this); + com.google.cloud.apigeeconnect.v1.ListConnectionsRequest result = + new com.google.cloud.apigeeconnect.v1.ListConnectionsRequest(this); result.parent_ = parent_; result.pageSize_ = pageSize_; result.pageToken_ = pageToken_; @@ -482,38 +523,39 @@ public com.google.cloud.apigeeconnect.v1.ListConnectionsRequest 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.apigeeconnect.v1.ListConnectionsRequest) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.ListConnectionsRequest)other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) other); } else { super.mergeFrom(other); return this; @@ -521,7 +563,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.ListConnectionsRequest other) { - if (other == com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.getDefaultInstance()) return this; + if (other == com.google.cloud.apigeeconnect.v1.ListConnectionsRequest.getDefaultInstance()) + return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; onChanged(); @@ -552,7 +595,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.cloud.apigeeconnect.v1.ListConnectionsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -564,19 +608,23 @@ public Builder mergeFrom( private java.lang.Object parent_ = ""; /** + * + * *
      * Required. Parent name of the form:
      *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ public java.lang.String getParent() { java.lang.Object ref = parent_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); parent_ = s; return s; @@ -585,21 +633,24 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent name of the form:
      *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - public com.google.protobuf.ByteString - getParentBytes() { + public com.google.protobuf.ByteString getParentBytes() { java.lang.Object ref = parent_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); parent_ = b; return b; } else { @@ -607,64 +658,79 @@ public java.lang.String getParent() { } } /** + * + * *
      * Required. Parent name of the form:
      *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The parent to set. * @return This builder for chaining. */ - public Builder setParent( - java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + parent_ = value; onChanged(); return this; } /** + * + * *
      * Required. Parent name of the form:
      *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearParent() { - + parent_ = getDefaultInstance().getParent(); onChanged(); return this; } /** + * + * *
      * Required. Parent name of the form:
      *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
      * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; onChanged(); return this; } - private int pageSize_ ; + private int pageSize_; /** + * + * *
      * The maximum number of connections to return. The service may return fewer
      * than this value. If unspecified, at most 100 connections will be returned.
@@ -672,6 +738,7 @@ public Builder setParentBytes(
      * 
* * int32 page_size = 2; + * * @return The pageSize. */ @java.lang.Override @@ -679,6 +746,8 @@ public int getPageSize() { return pageSize_; } /** + * + * *
      * The maximum number of connections to return. The service may return fewer
      * than this value. If unspecified, at most 100 connections will be returned.
@@ -686,16 +755,19 @@ public int getPageSize() {
      * 
* * int32 page_size = 2; + * * @param value The pageSize to set. * @return This builder for chaining. */ public Builder setPageSize(int value) { - + pageSize_ = value; onChanged(); return this; } /** + * + * *
      * The maximum number of connections to return. The service may return fewer
      * than this value. If unspecified, at most 100 connections will be returned.
@@ -703,10 +775,11 @@ public Builder setPageSize(int value) {
      * 
* * int32 page_size = 2; + * * @return This builder for chaining. */ public Builder clearPageSize() { - + pageSize_ = 0; onChanged(); return this; @@ -714,6 +787,8 @@ public Builder clearPageSize() { private java.lang.Object pageToken_ = ""; /** + * + * *
      * A page token, received from a previous `ListConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -722,13 +797,13 @@ public Builder clearPageSize() {
      * 
* * string page_token = 3; + * * @return The pageToken. */ public java.lang.String getPageToken() { java.lang.Object ref = pageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); pageToken_ = s; return s; @@ -737,6 +812,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -745,15 +822,14 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString - getPageTokenBytes() { + public com.google.protobuf.ByteString getPageTokenBytes() { java.lang.Object ref = pageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); pageToken_ = b; return b; } else { @@ -761,6 +837,8 @@ public java.lang.String getPageToken() { } } /** + * + * *
      * A page token, received from a previous `ListConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -769,20 +847,22 @@ public java.lang.String getPageToken() {
      * 
* * string page_token = 3; + * * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setPageToken( - java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + pageToken_ = value; onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -791,15 +871,18 @@ public Builder setPageToken(
      * 
* * string page_token = 3; + * * @return This builder for chaining. */ public Builder clearPageToken() { - + pageToken_ = getDefaultInstance().getPageToken(); onChanged(); return this; } /** + * + * *
      * A page token, received from a previous `ListConnections` call.
      * Provide this to retrieve the subsequent page.
@@ -808,23 +891,23 @@ public Builder clearPageToken() {
      * 
* * string page_token = 3; + * * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -834,12 +917,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.ListConnectionsRequest) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.ListConnectionsRequest) private static final com.google.cloud.apigeeconnect.v1.ListConnectionsRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.ListConnectionsRequest(); } @@ -848,16 +931,16 @@ public static com.google.cloud.apigeeconnect.v1.ListConnectionsRequest getDefaul return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -872,6 +955,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.ListConnectionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java similarity index 62% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java index 7c7ab0a..a59d32c 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsRequestOrBuilder.java @@ -1,35 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -public interface ListConnectionsRequestOrBuilder extends +public interface ListConnectionsRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.ListConnectionsRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Required. Parent name of the form:
    *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The parent. */ java.lang.String getParent(); /** + * + * *
    * Required. Parent name of the form:
    *     `projects/{project_number or project_id}/endpoints/{endpoint}`.
    * 
* - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for parent. */ - com.google.protobuf.ByteString - getParentBytes(); + com.google.protobuf.ByteString getParentBytes(); /** + * + * *
    * The maximum number of connections to return. The service may return fewer
    * than this value. If unspecified, at most 100 connections will be returned.
@@ -37,11 +64,14 @@ public interface ListConnectionsRequestOrBuilder extends
    * 
* * int32 page_size = 2; + * * @return The pageSize. */ int getPageSize(); /** + * + * *
    * A page token, received from a previous `ListConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -50,10 +80,13 @@ public interface ListConnectionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The pageToken. */ java.lang.String getPageToken(); /** + * + * *
    * A page token, received from a previous `ListConnections` call.
    * Provide this to retrieve the subsequent page.
@@ -62,8 +95,8 @@ public interface ListConnectionsRequestOrBuilder extends
    * 
* * string page_token = 3; + * * @return The bytes for pageToken. */ - com.google.protobuf.ByteString - getPageTokenBytes(); + com.google.protobuf.ByteString getPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java similarity index 73% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java index 0a53f99..ac21671 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponse.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * The response for
  * [ListConnections][Management.ListConnections].
@@ -11,15 +28,16 @@
  *
  * Protobuf type {@code google.cloud.apigeeconnect.v1.ListConnectionsResponse}
  */
-public final class ListConnectionsResponse extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class ListConnectionsResponse extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.ListConnectionsResponse)
     ListConnectionsResponseOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use ListConnectionsResponse.newBuilder() to construct.
   private ListConnectionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private ListConnectionsResponse() {
     connections_ = java.util.Collections.emptyList();
     nextPageToken_ = "";
@@ -27,16 +45,15 @@ private ListConnectionsResponse() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new ListConnectionsResponse();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private ListConnectionsResponse(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -56,28 +73,32 @@ private ListConnectionsResponse(
           case 0:
             done = true;
             break;
-          case 10: {
-            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-              connections_ = new java.util.ArrayList();
-              mutable_bitField0_ |= 0x00000001;
+          case 10:
+            {
+              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+                connections_ =
+                    new java.util.ArrayList();
+                mutable_bitField0_ |= 0x00000001;
+              }
+              connections_.add(
+                  input.readMessage(
+                      com.google.cloud.apigeeconnect.v1.Connection.parser(), extensionRegistry));
+              break;
             }
-            connections_.add(
-                input.readMessage(com.google.cloud.apigeeconnect.v1.Connection.parser(), extensionRegistry));
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            nextPageToken_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              nextPageToken_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -85,8 +106,7 @@ private ListConnectionsResponse(
     } 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)) {
         connections_ = java.util.Collections.unmodifiableList(connections_);
@@ -95,22 +115,27 @@ private ListConnectionsResponse(
       makeExtensionsImmutable();
     }
   }
-  public static final com.google.protobuf.Descriptors.Descriptor
-      getDescriptor() {
-    return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.apigeeconnect.v1.ConnectionProto
+        .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable
+    return com.google.cloud.apigeeconnect.v1.ConnectionProto
+        .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.class, com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.Builder.class);
+            com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.class,
+            com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.Builder.class);
   }
 
   public static final int CONNECTIONS_FIELD_NUMBER = 1;
   private java.util.List connections_;
   /**
+   *
+   *
    * 
    * A list of clients.
    * 
@@ -122,6 +147,8 @@ public java.util.List getConnectio return connections_; } /** + * + * *
    * A list of clients.
    * 
@@ -129,11 +156,13 @@ public java.util.List getConnectio * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ @java.lang.Override - public java.util.List + public java.util.List getConnectionsOrBuilderList() { return connections_; } /** + * + * *
    * A list of clients.
    * 
@@ -145,6 +174,8 @@ public int getConnectionsCount() { return connections_.size(); } /** + * + * *
    * A list of clients.
    * 
@@ -156,6 +187,8 @@ public com.google.cloud.apigeeconnect.v1.Connection getConnections(int index) { return connections_.get(index); } /** + * + * *
    * A list of clients.
    * 
@@ -163,20 +196,22 @@ public com.google.cloud.apigeeconnect.v1.Connection getConnections(int index) { * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ @java.lang.Override - public com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBuilder( - int index) { + public com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index) { return connections_.get(index); } public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object nextPageToken_; /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ @java.lang.Override @@ -185,30 +220,30 @@ public java.lang.String getNextPageToken() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; } } /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -217,6 +252,7 @@ public java.lang.String getNextPageToken() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -228,8 +264,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < connections_.size(); i++) { output.writeMessage(1, connections_.get(i)); } @@ -246,8 +281,7 @@ public int getSerializedSize() { size = 0; for (int i = 0; i < connections_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, connections_.get(i)); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, connections_.get(i)); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); @@ -260,17 +294,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.apigeeconnect.v1.ListConnectionsResponse)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.ListConnectionsResponse other = (com.google.cloud.apigeeconnect.v1.ListConnectionsResponse) obj; + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse other = + (com.google.cloud.apigeeconnect.v1.ListConnectionsResponse) obj; - if (!getConnectionsList() - .equals(other.getConnectionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; + if (!getConnectionsList().equals(other.getConnectionsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -294,96 +327,104 @@ public int hashCode() { } public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse prototype) { + + public static Builder newBuilder( + com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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 for
    * [ListConnections][Management.ListConnections].
@@ -391,21 +432,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.apigeeconnect.v1.ListConnectionsResponse}
    */
-  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.apigeeconnect.v1.ListConnectionsResponse)
       com.google.cloud.apigeeconnect.v1.ListConnectionsResponseOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.apigeeconnect.v1.ConnectionProto
+          .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable
+      return com.google.cloud.apigeeconnect.v1.ConnectionProto
+          .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.class, com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.Builder.class);
+              com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.class,
+              com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.Builder.class);
     }
 
     // Construct using com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.newBuilder()
@@ -413,17 +456,17 @@ private Builder() {
       maybeForceBuilderInitialization();
     }
 
-    private Builder(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
       super(parent);
       maybeForceBuilderInitialization();
     }
+
     private void maybeForceBuilderInitialization() {
-      if (com.google.protobuf.GeneratedMessageV3
-              .alwaysUseFieldBuilders) {
+      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
         getConnectionsFieldBuilder();
       }
     }
+
     @java.lang.Override
     public Builder clear() {
       super.clear();
@@ -439,9 +482,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.apigeeconnect.v1.ConnectionProto.internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.apigeeconnect.v1.ConnectionProto
+          .internal_static_google_cloud_apigeeconnect_v1_ListConnectionsResponse_descriptor;
     }
 
     @java.lang.Override
@@ -460,7 +503,8 @@ public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse build() {
 
     @java.lang.Override
     public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse buildPartial() {
-      com.google.cloud.apigeeconnect.v1.ListConnectionsResponse result = new com.google.cloud.apigeeconnect.v1.ListConnectionsResponse(this);
+      com.google.cloud.apigeeconnect.v1.ListConnectionsResponse result =
+          new com.google.cloud.apigeeconnect.v1.ListConnectionsResponse(this);
       int from_bitField0_ = bitField0_;
       if (connectionsBuilder_ == null) {
         if (((bitField0_ & 0x00000001) != 0)) {
@@ -480,38 +524,39 @@ public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse 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.apigeeconnect.v1.ListConnectionsResponse) {
-        return mergeFrom((com.google.cloud.apigeeconnect.v1.ListConnectionsResponse)other);
+        return mergeFrom((com.google.cloud.apigeeconnect.v1.ListConnectionsResponse) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -519,7 +564,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) {
     }
 
     public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.ListConnectionsResponse other) {
-      if (other == com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.getDefaultInstance()) return this;
+      if (other == com.google.cloud.apigeeconnect.v1.ListConnectionsResponse.getDefaultInstance())
+        return this;
       if (connectionsBuilder_ == null) {
         if (!other.connections_.isEmpty()) {
           if (connections_.isEmpty()) {
@@ -538,9 +584,10 @@ public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.ListConnectionsRespon
             connectionsBuilder_ = null;
             connections_ = other.connections_;
             bitField0_ = (bitField0_ & ~0x00000001);
-            connectionsBuilder_ = 
-              com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
-                 getConnectionsFieldBuilder() : null;
+            connectionsBuilder_ =
+                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
+                    ? getConnectionsFieldBuilder()
+                    : null;
           } else {
             connectionsBuilder_.addAllMessages(other.connections_);
           }
@@ -569,7 +616,8 @@ public Builder mergeFrom(
       try {
         parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        parsedMessage = (com.google.cloud.apigeeconnect.v1.ListConnectionsResponse) e.getUnfinishedMessage();
+        parsedMessage =
+            (com.google.cloud.apigeeconnect.v1.ListConnectionsResponse) e.getUnfinishedMessage();
         throw e.unwrapIOException();
       } finally {
         if (parsedMessage != null) {
@@ -578,21 +626,29 @@ public Builder mergeFrom(
       }
       return this;
     }
+
     private int bitField0_;
 
     private java.util.List connections_ =
-      java.util.Collections.emptyList();
+        java.util.Collections.emptyList();
+
     private void ensureConnectionsIsMutable() {
       if (!((bitField0_ & 0x00000001) != 0)) {
-        connections_ = new java.util.ArrayList(connections_);
+        connections_ =
+            new java.util.ArrayList(connections_);
         bitField0_ |= 0x00000001;
-       }
+      }
     }
 
     private com.google.protobuf.RepeatedFieldBuilderV3<
-        com.google.cloud.apigeeconnect.v1.Connection, com.google.cloud.apigeeconnect.v1.Connection.Builder, com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder> connectionsBuilder_;
+            com.google.cloud.apigeeconnect.v1.Connection,
+            com.google.cloud.apigeeconnect.v1.Connection.Builder,
+            com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder>
+        connectionsBuilder_;
 
     /**
+     *
+     *
      * 
      * A list of clients.
      * 
@@ -607,6 +663,8 @@ public java.util.List getConnectio } } /** + * + * *
      * A list of clients.
      * 
@@ -621,6 +679,8 @@ public int getConnectionsCount() { } } /** + * + * *
      * A list of clients.
      * 
@@ -635,14 +695,15 @@ public com.google.cloud.apigeeconnect.v1.Connection getConnections(int index) { } } /** + * + * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public Builder setConnections( - int index, com.google.cloud.apigeeconnect.v1.Connection value) { + public Builder setConnections(int index, com.google.cloud.apigeeconnect.v1.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -656,6 +717,8 @@ public Builder setConnections( return this; } /** + * + * *
      * A list of clients.
      * 
@@ -674,6 +737,8 @@ public Builder setConnections( return this; } /** + * + * *
      * A list of clients.
      * 
@@ -694,14 +759,15 @@ public Builder addConnections(com.google.cloud.apigeeconnect.v1.Connection value return this; } /** + * + * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public Builder addConnections( - int index, com.google.cloud.apigeeconnect.v1.Connection value) { + public Builder addConnections(int index, com.google.cloud.apigeeconnect.v1.Connection value) { if (connectionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -715,6 +781,8 @@ public Builder addConnections( return this; } /** + * + * *
      * A list of clients.
      * 
@@ -733,6 +801,8 @@ public Builder addConnections( return this; } /** + * + * *
      * A list of clients.
      * 
@@ -751,6 +821,8 @@ public Builder addConnections( return this; } /** + * + * *
      * A list of clients.
      * 
@@ -761,8 +833,7 @@ public Builder addAllConnections( java.lang.Iterable values) { if (connectionsBuilder_ == null) { ensureConnectionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, connections_); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, connections_); onChanged(); } else { connectionsBuilder_.addAllMessages(values); @@ -770,6 +841,8 @@ public Builder addAllConnections( return this; } /** + * + * *
      * A list of clients.
      * 
@@ -787,6 +860,8 @@ public Builder clearConnections() { return this; } /** + * + * *
      * A list of clients.
      * 
@@ -804,17 +879,20 @@ public Builder removeConnections(int index) { return this; } /** + * + * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public com.google.cloud.apigeeconnect.v1.Connection.Builder getConnectionsBuilder( - int index) { + public com.google.cloud.apigeeconnect.v1.Connection.Builder getConnectionsBuilder(int index) { return getConnectionsFieldBuilder().getBuilder(index); } /** + * + * *
      * A list of clients.
      * 
@@ -824,19 +902,22 @@ public com.google.cloud.apigeeconnect.v1.Connection.Builder getConnectionsBuilde public com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBuilder( int index) { if (connectionsBuilder_ == null) { - return connections_.get(index); } else { + return connections_.get(index); + } else { return connectionsBuilder_.getMessageOrBuilder(index); } } /** + * + * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public java.util.List - getConnectionsOrBuilderList() { + public java.util.List + getConnectionsOrBuilderList() { if (connectionsBuilder_ != null) { return connectionsBuilder_.getMessageOrBuilderList(); } else { @@ -844,6 +925,8 @@ public com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBui } } /** + * + * *
      * A list of clients.
      * 
@@ -851,42 +934,48 @@ public com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBui * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ public com.google.cloud.apigeeconnect.v1.Connection.Builder addConnectionsBuilder() { - return getConnectionsFieldBuilder().addBuilder( - com.google.cloud.apigeeconnect.v1.Connection.getDefaultInstance()); + return getConnectionsFieldBuilder() + .addBuilder(com.google.cloud.apigeeconnect.v1.Connection.getDefaultInstance()); } /** + * + * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public com.google.cloud.apigeeconnect.v1.Connection.Builder addConnectionsBuilder( - int index) { - return getConnectionsFieldBuilder().addBuilder( - index, com.google.cloud.apigeeconnect.v1.Connection.getDefaultInstance()); + public com.google.cloud.apigeeconnect.v1.Connection.Builder addConnectionsBuilder(int index) { + return getConnectionsFieldBuilder() + .addBuilder(index, com.google.cloud.apigeeconnect.v1.Connection.getDefaultInstance()); } /** + * + * *
      * A list of clients.
      * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - public java.util.List - getConnectionsBuilderList() { + public java.util.List + getConnectionsBuilderList() { return getConnectionsFieldBuilder().getBuilderList(); } + private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Connection, com.google.cloud.apigeeconnect.v1.Connection.Builder, com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder> + com.google.cloud.apigeeconnect.v1.Connection, + com.google.cloud.apigeeconnect.v1.Connection.Builder, + com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder> getConnectionsFieldBuilder() { if (connectionsBuilder_ == null) { - connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.Connection, com.google.cloud.apigeeconnect.v1.Connection.Builder, com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder>( - connections_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); + connectionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.Connection, + com.google.cloud.apigeeconnect.v1.Connection.Builder, + com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder>( + connections_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); connections_ = null; } return connectionsBuilder_; @@ -894,19 +983,21 @@ public com.google.cloud.apigeeconnect.v1.Connection.Builder addConnectionsBuilde private java.lang.Object nextPageToken_ = ""; /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ public java.lang.String getNextPageToken() { java.lang.Object ref = nextPageToken_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); nextPageToken_ = s; return s; @@ -915,21 +1006,22 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { + public com.google.protobuf.ByteString getNextPageTokenBytes() { java.lang.Object ref = nextPageToken_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); nextPageToken_ = b; return b; } else { @@ -937,64 +1029,71 @@ public java.lang.String getNextPageToken() { } } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageToken( - java.lang.String value) { + public Builder setNextPageToken(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + nextPageToken_ = value; onChanged(); return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @return This builder for chaining. */ public Builder clearNextPageToken() { - + nextPageToken_ = getDefaultInstance().getNextPageToken(); onChanged(); return this; } /** + * + * *
      * A token that can be sent as `page_token` to retrieve the next page.
      * If this field is omitted, there are no subsequent pages.
      * 
* * string next_page_token = 2; + * * @param value The bytes for nextPageToken to set. * @return This builder for chaining. */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -1004,12 +1103,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.ListConnectionsResponse) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.ListConnectionsResponse) private static final com.google.cloud.apigeeconnect.v1.ListConnectionsResponse DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.ListConnectionsResponse(); } @@ -1018,16 +1117,16 @@ public static com.google.cloud.apigeeconnect.v1.ListConnectionsResponse getDefau return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListConnectionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListConnectionsResponse(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConnectionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConnectionsResponse(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1042,6 +1141,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.ListConnectionsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java index cc21161..453aa34 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/ListConnectionsResponseOrBuilder.java @@ -1,22 +1,41 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/connection.proto package com.google.cloud.apigeeconnect.v1; -public interface ListConnectionsResponseOrBuilder extends +public interface ListConnectionsResponseOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.ListConnectionsResponse) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * A list of clients.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - java.util.List - getConnectionsList(); + java.util.List getConnectionsList(); /** + * + * *
    * A list of clients.
    * 
@@ -25,6 +44,8 @@ public interface ListConnectionsResponseOrBuilder extends */ com.google.cloud.apigeeconnect.v1.Connection getConnections(int index); /** + * + * *
    * A list of clients.
    * 
@@ -33,43 +54,51 @@ public interface ListConnectionsResponseOrBuilder extends */ int getConnectionsCount(); /** + * + * *
    * A list of clients.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - java.util.List + java.util.List getConnectionsOrBuilderList(); /** + * + * *
    * A list of clients.
    * 
* * repeated .google.cloud.apigeeconnect.v1.Connection connections = 1; */ - com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBuilder( - int index); + com.google.cloud.apigeeconnect.v1.ConnectionOrBuilder getConnectionsOrBuilder(int index); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The nextPageToken. */ java.lang.String getNextPageToken(); /** + * + * *
    * A token that can be sent as `page_token` to retrieve the next page.
    * If this field is omitted, there are no subsequent pages.
    * 
* * string next_page_token = 2; + * * @return The bytes for nextPageToken. */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); + com.google.protobuf.ByteString getNextPageTokenBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java similarity index 71% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java index 75b46d0..0905264 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Payload.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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * Payload for EgressRequest.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.Payload} */ -public final class Payload extends - com.google.protobuf.GeneratedMessageV3 implements +public final class Payload extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.Payload) PayloadOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use Payload.newBuilder() to construct. private Payload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Payload() { - } + + private Payload() {} @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new Payload(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private Payload( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -52,47 +68,52 @@ private Payload( case 0: done = true; break; - case 10: { - com.google.cloud.apigeeconnect.v1.HttpRequest.Builder subBuilder = null; - if (kindCase_ == 1) { - subBuilder = ((com.google.cloud.apigeeconnect.v1.HttpRequest) kind_).toBuilder(); + case 10: + { + com.google.cloud.apigeeconnect.v1.HttpRequest.Builder subBuilder = null; + if (kindCase_ == 1) { + subBuilder = ((com.google.cloud.apigeeconnect.v1.HttpRequest) kind_).toBuilder(); + } + kind_ = + input.readMessage( + com.google.cloud.apigeeconnect.v1.HttpRequest.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.apigeeconnect.v1.HttpRequest) kind_); + kind_ = subBuilder.buildPartial(); + } + kindCase_ = 1; + break; } - kind_ = - input.readMessage(com.google.cloud.apigeeconnect.v1.HttpRequest.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.apigeeconnect.v1.HttpRequest) kind_); - kind_ = subBuilder.buildPartial(); - } - kindCase_ = 1; - break; - } - case 18: { - com.google.cloud.apigeeconnect.v1.StreamInfo.Builder subBuilder = null; - if (kindCase_ == 2) { - subBuilder = ((com.google.cloud.apigeeconnect.v1.StreamInfo) kind_).toBuilder(); + case 18: + { + com.google.cloud.apigeeconnect.v1.StreamInfo.Builder subBuilder = null; + if (kindCase_ == 2) { + subBuilder = ((com.google.cloud.apigeeconnect.v1.StreamInfo) kind_).toBuilder(); + } + kind_ = + input.readMessage( + com.google.cloud.apigeeconnect.v1.StreamInfo.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.cloud.apigeeconnect.v1.StreamInfo) kind_); + kind_ = subBuilder.buildPartial(); + } + kindCase_ = 2; + break; } - kind_ = - input.readMessage(com.google.cloud.apigeeconnect.v1.StreamInfo.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.cloud.apigeeconnect.v1.StreamInfo) kind_); - kind_ = subBuilder.buildPartial(); + case 24: + { + int rawValue = input.readEnum(); + kindCase_ = 3; + kind_ = rawValue; + break; } - kindCase_ = 2; - break; - } - case 24: { - int rawValue = input.readEnum(); - kindCase_ = 3; - kind_ = rawValue; - 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) { @@ -100,36 +121,41 @@ private Payload( } 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.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Payload.class, com.google.cloud.apigeeconnect.v1.Payload.Builder.class); + com.google.cloud.apigeeconnect.v1.Payload.class, + com.google.cloud.apigeeconnect.v1.Payload.Builder.class); } private int kindCase_ = 0; private java.lang.Object kind_; + public enum KindCase - implements com.google.protobuf.Internal.EnumLite, + implements + com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { HTTP_REQUEST(1), STREAM_INFO(2), ACTION(3), KIND_NOT_SET(0); private final int value; + private KindCase(int value) { this.value = value; } @@ -145,31 +171,38 @@ public static KindCase valueOf(int value) { public static KindCase forNumber(int value) { switch (value) { - case 1: return HTTP_REQUEST; - case 2: return STREAM_INFO; - case 3: return ACTION; - case 0: return KIND_NOT_SET; - default: return null; + case 1: + return HTTP_REQUEST; + case 2: + return STREAM_INFO; + case 3: + return ACTION; + case 0: + return KIND_NOT_SET; + default: + return null; } } + public int getNumber() { return this.value; } }; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); } public static final int HTTP_REQUEST_FIELD_NUMBER = 1; /** + * + * *
    * The HttpRequest proto.
    * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; + * * @return Whether the httpRequest field is set. */ @java.lang.Override @@ -177,21 +210,26 @@ public boolean hasHttpRequest() { return kindCase_ == 1; } /** + * + * *
    * The HttpRequest proto.
    * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; + * * @return The httpRequest. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.HttpRequest getHttpRequest() { if (kindCase_ == 1) { - return (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_; + return (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_; } return com.google.cloud.apigeeconnect.v1.HttpRequest.getDefaultInstance(); } /** + * + * *
    * The HttpRequest proto.
    * 
@@ -201,18 +239,21 @@ public com.google.cloud.apigeeconnect.v1.HttpRequest getHttpRequest() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder getHttpRequestOrBuilder() { if (kindCase_ == 1) { - return (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_; + return (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_; } return com.google.cloud.apigeeconnect.v1.HttpRequest.getDefaultInstance(); } public static final int STREAM_INFO_FIELD_NUMBER = 2; /** + * + * *
    * The information of stream.
    * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; + * * @return Whether the streamInfo field is set. */ @java.lang.Override @@ -220,21 +261,26 @@ public boolean hasStreamInfo() { return kindCase_ == 2; } /** + * + * *
    * The information of stream.
    * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; + * * @return The streamInfo. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.StreamInfo getStreamInfo() { if (kindCase_ == 2) { - return (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_; + return (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_; } return com.google.cloud.apigeeconnect.v1.StreamInfo.getDefaultInstance(); } /** + * + * *
    * The information of stream.
    * 
@@ -244,29 +290,35 @@ public com.google.cloud.apigeeconnect.v1.StreamInfo getStreamInfo() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder getStreamInfoOrBuilder() { if (kindCase_ == 2) { - return (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_; + return (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_; } return com.google.cloud.apigeeconnect.v1.StreamInfo.getDefaultInstance(); } public static final int ACTION_FIELD_NUMBER = 3; /** + * + * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @return Whether the action field is set. */ public boolean hasAction() { return kindCase_ == 3; } /** + * + * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @return The enum numeric value on the wire for action. */ public int getActionValue() { @@ -276,24 +328,28 @@ public int getActionValue() { return 0; } /** + * + * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @return The action. */ public com.google.cloud.apigeeconnect.v1.Action getAction() { if (kindCase_ == 3) { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.Action result = com.google.cloud.apigeeconnect.v1.Action.valueOf( - (java.lang.Integer) kind_); + com.google.cloud.apigeeconnect.v1.Action result = + com.google.cloud.apigeeconnect.v1.Action.valueOf((java.lang.Integer) kind_); return result == null ? com.google.cloud.apigeeconnect.v1.Action.UNRECOGNIZED : result; } return com.google.cloud.apigeeconnect.v1.Action.ACTION_UNSPECIFIED; } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -305,8 +361,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 (kindCase_ == 1) { output.writeMessage(1, (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_); } @@ -326,16 +381,17 @@ public int getSerializedSize() { size = 0; if (kindCase_ == 1) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_); } if (kindCase_ == 2) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_); } if (kindCase_ == 3) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, ((java.lang.Integer) kind_)); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, ((java.lang.Integer) kind_)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -345,26 +401,24 @@ 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.apigeeconnect.v1.Payload)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.Payload other = (com.google.cloud.apigeeconnect.v1.Payload) obj; + com.google.cloud.apigeeconnect.v1.Payload other = + (com.google.cloud.apigeeconnect.v1.Payload) obj; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { case 1: - if (!getHttpRequest() - .equals(other.getHttpRequest())) return false; + if (!getHttpRequest().equals(other.getHttpRequest())) return false; break; case 2: - if (!getStreamInfo() - .equals(other.getStreamInfo())) return false; + if (!getStreamInfo().equals(other.getStreamInfo())) return false; break; case 3: - if (getActionValue() - != other.getActionValue()) return false; + if (getActionValue() != other.getActionValue()) return false; break; case 0: default: @@ -401,118 +455,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.Payload parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.Payload parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.Payload parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload 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; } /** + * + * *
    * Payload for EgressRequest.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.Payload} */ - 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.apigeeconnect.v1.Payload) com.google.cloud.apigeeconnect.v1.PayloadOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.Payload.class, com.google.cloud.apigeeconnect.v1.Payload.Builder.class); + com.google.cloud.apigeeconnect.v1.Payload.class, + com.google.cloud.apigeeconnect.v1.Payload.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.Payload.newBuilder() @@ -520,16 +583,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(); @@ -539,9 +601,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; } @java.lang.Override @@ -560,7 +622,8 @@ public com.google.cloud.apigeeconnect.v1.Payload build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.Payload buildPartial() { - com.google.cloud.apigeeconnect.v1.Payload result = new com.google.cloud.apigeeconnect.v1.Payload(this); + com.google.cloud.apigeeconnect.v1.Payload result = + new com.google.cloud.apigeeconnect.v1.Payload(this); if (kindCase_ == 1) { if (httpRequestBuilder_ == null) { result.kind_ = kind_; @@ -587,38 +650,39 @@ public com.google.cloud.apigeeconnect.v1.Payload 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.apigeeconnect.v1.Payload) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.Payload)other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.Payload) other); } else { super.mergeFrom(other); return this; @@ -628,21 +692,25 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.google.cloud.apigeeconnect.v1.Payload other) { if (other == com.google.cloud.apigeeconnect.v1.Payload.getDefaultInstance()) return this; switch (other.getKindCase()) { - case HTTP_REQUEST: { - mergeHttpRequest(other.getHttpRequest()); - break; - } - case STREAM_INFO: { - mergeStreamInfo(other.getStreamInfo()); - break; - } - case ACTION: { - setActionValue(other.getActionValue()); - break; - } - case KIND_NOT_SET: { - break; - } + case HTTP_REQUEST: + { + mergeHttpRequest(other.getHttpRequest()); + break; + } + case STREAM_INFO: + { + mergeStreamInfo(other.getStreamInfo()); + break; + } + case ACTION: + { + setActionValue(other.getActionValue()); + break; + } + case KIND_NOT_SET: + { + break; + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -672,12 +740,12 @@ public Builder mergeFrom( } return this; } + private int kindCase_ = 0; private java.lang.Object kind_; - public KindCase - getKindCase() { - return KindCase.forNumber( - kindCase_); + + public KindCase getKindCase() { + return KindCase.forNumber(kindCase_); } public Builder clearKind() { @@ -687,15 +755,20 @@ public Builder clearKind() { return this; } - private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpRequest, com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder> httpRequestBuilder_; + com.google.cloud.apigeeconnect.v1.HttpRequest, + com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, + com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder> + httpRequestBuilder_; /** + * + * *
      * The HttpRequest proto.
      * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; + * * @return Whether the httpRequest field is set. */ @java.lang.Override @@ -703,11 +776,14 @@ public boolean hasHttpRequest() { return kindCase_ == 1; } /** + * + * *
      * The HttpRequest proto.
      * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; + * * @return The httpRequest. */ @java.lang.Override @@ -725,6 +801,8 @@ public com.google.cloud.apigeeconnect.v1.HttpRequest getHttpRequest() { } } /** + * + * *
      * The HttpRequest proto.
      * 
@@ -745,6 +823,8 @@ public Builder setHttpRequest(com.google.cloud.apigeeconnect.v1.HttpRequest valu return this; } /** + * + * *
      * The HttpRequest proto.
      * 
@@ -763,6 +843,8 @@ public Builder setHttpRequest( return this; } /** + * + * *
      * The HttpRequest proto.
      * 
@@ -771,10 +853,13 @@ public Builder setHttpRequest( */ public Builder mergeHttpRequest(com.google.cloud.apigeeconnect.v1.HttpRequest value) { if (httpRequestBuilder_ == null) { - if (kindCase_ == 1 && - kind_ != com.google.cloud.apigeeconnect.v1.HttpRequest.getDefaultInstance()) { - kind_ = com.google.cloud.apigeeconnect.v1.HttpRequest.newBuilder((com.google.cloud.apigeeconnect.v1.HttpRequest) kind_) - .mergeFrom(value).buildPartial(); + if (kindCase_ == 1 + && kind_ != com.google.cloud.apigeeconnect.v1.HttpRequest.getDefaultInstance()) { + kind_ = + com.google.cloud.apigeeconnect.v1.HttpRequest.newBuilder( + (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_) + .mergeFrom(value) + .buildPartial(); } else { kind_ = value; } @@ -790,6 +875,8 @@ public Builder mergeHttpRequest(com.google.cloud.apigeeconnect.v1.HttpRequest va return this; } /** + * + * *
      * The HttpRequest proto.
      * 
@@ -813,6 +900,8 @@ public Builder clearHttpRequest() { return this; } /** + * + * *
      * The HttpRequest proto.
      * 
@@ -823,6 +912,8 @@ public com.google.cloud.apigeeconnect.v1.HttpRequest.Builder getHttpRequestBuild return getHttpRequestFieldBuilder().getBuilder(); } /** + * + * *
      * The HttpRequest proto.
      * 
@@ -841,6 +932,8 @@ public com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder getHttpRequestOrBu } } /** + * + * *
      * The HttpRequest proto.
      * 
@@ -848,32 +941,44 @@ public com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder getHttpRequestOrBu * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpRequest, com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder> + com.google.cloud.apigeeconnect.v1.HttpRequest, + com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, + com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder> getHttpRequestFieldBuilder() { if (httpRequestBuilder_ == null) { if (!(kindCase_ == 1)) { kind_ = com.google.cloud.apigeeconnect.v1.HttpRequest.getDefaultInstance(); } - httpRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.HttpRequest, com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder>( + httpRequestBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.HttpRequest, + com.google.cloud.apigeeconnect.v1.HttpRequest.Builder, + com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder>( (com.google.cloud.apigeeconnect.v1.HttpRequest) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 1; - onChanged();; + onChanged(); + ; return httpRequestBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.StreamInfo, com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder> streamInfoBuilder_; + com.google.cloud.apigeeconnect.v1.StreamInfo, + com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, + com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder> + streamInfoBuilder_; /** + * + * *
      * The information of stream.
      * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; + * * @return Whether the streamInfo field is set. */ @java.lang.Override @@ -881,11 +986,14 @@ public boolean hasStreamInfo() { return kindCase_ == 2; } /** + * + * *
      * The information of stream.
      * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; + * * @return The streamInfo. */ @java.lang.Override @@ -903,6 +1011,8 @@ public com.google.cloud.apigeeconnect.v1.StreamInfo getStreamInfo() { } } /** + * + * *
      * The information of stream.
      * 
@@ -923,6 +1033,8 @@ public Builder setStreamInfo(com.google.cloud.apigeeconnect.v1.StreamInfo value) return this; } /** + * + * *
      * The information of stream.
      * 
@@ -941,6 +1053,8 @@ public Builder setStreamInfo( return this; } /** + * + * *
      * The information of stream.
      * 
@@ -949,10 +1063,13 @@ public Builder setStreamInfo( */ public Builder mergeStreamInfo(com.google.cloud.apigeeconnect.v1.StreamInfo value) { if (streamInfoBuilder_ == null) { - if (kindCase_ == 2 && - kind_ != com.google.cloud.apigeeconnect.v1.StreamInfo.getDefaultInstance()) { - kind_ = com.google.cloud.apigeeconnect.v1.StreamInfo.newBuilder((com.google.cloud.apigeeconnect.v1.StreamInfo) kind_) - .mergeFrom(value).buildPartial(); + if (kindCase_ == 2 + && kind_ != com.google.cloud.apigeeconnect.v1.StreamInfo.getDefaultInstance()) { + kind_ = + com.google.cloud.apigeeconnect.v1.StreamInfo.newBuilder( + (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_) + .mergeFrom(value) + .buildPartial(); } else { kind_ = value; } @@ -968,6 +1085,8 @@ public Builder mergeStreamInfo(com.google.cloud.apigeeconnect.v1.StreamInfo valu return this; } /** + * + * *
      * The information of stream.
      * 
@@ -991,6 +1110,8 @@ public Builder clearStreamInfo() { return this; } /** + * + * *
      * The information of stream.
      * 
@@ -1001,6 +1122,8 @@ public com.google.cloud.apigeeconnect.v1.StreamInfo.Builder getStreamInfoBuilder return getStreamInfoFieldBuilder().getBuilder(); } /** + * + * *
      * The information of stream.
      * 
@@ -1019,6 +1142,8 @@ public com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder getStreamInfoOrBuil } } /** + * + * *
      * The information of stream.
      * 
@@ -1026,30 +1151,39 @@ public com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder getStreamInfoOrBuil * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.StreamInfo, com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder> + com.google.cloud.apigeeconnect.v1.StreamInfo, + com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, + com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder> getStreamInfoFieldBuilder() { if (streamInfoBuilder_ == null) { if (!(kindCase_ == 2)) { kind_ = com.google.cloud.apigeeconnect.v1.StreamInfo.getDefaultInstance(); } - streamInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.cloud.apigeeconnect.v1.StreamInfo, com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder>( + streamInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.cloud.apigeeconnect.v1.StreamInfo, + com.google.cloud.apigeeconnect.v1.StreamInfo.Builder, + com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder>( (com.google.cloud.apigeeconnect.v1.StreamInfo) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 2; - onChanged();; + onChanged(); + ; return streamInfoBuilder_; } /** + * + * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @return Whether the action field is set. */ @java.lang.Override @@ -1057,11 +1191,14 @@ public boolean hasAction() { return kindCase_ == 3; } /** + * + * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @return The enum numeric value on the wire for action. */ @java.lang.Override @@ -1072,11 +1209,14 @@ public int getActionValue() { return 0; } /** + * + * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @param value The enum numeric value on the wire for action to set. * @return This builder for chaining. */ @@ -1087,29 +1227,35 @@ public Builder setActionValue(int value) { return this; } /** + * + * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @return The action. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.Action getAction() { if (kindCase_ == 3) { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.Action result = com.google.cloud.apigeeconnect.v1.Action.valueOf( - (java.lang.Integer) kind_); + com.google.cloud.apigeeconnect.v1.Action result = + com.google.cloud.apigeeconnect.v1.Action.valueOf((java.lang.Integer) kind_); return result == null ? com.google.cloud.apigeeconnect.v1.Action.UNRECOGNIZED : result; } return com.google.cloud.apigeeconnect.v1.Action.ACTION_UNSPECIFIED; } /** + * + * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @param value The action to set. * @return This builder for chaining. */ @@ -1123,11 +1269,14 @@ public Builder setAction(com.google.cloud.apigeeconnect.v1.Action value) { return this; } /** + * + * *
      * The action taken by agent.
      * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @return This builder for chaining. */ public Builder clearAction() { @@ -1138,9 +1287,9 @@ public Builder clearAction() { } 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); } @@ -1150,12 +1299,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.Payload) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.Payload) private static final com.google.cloud.apigeeconnect.v1.Payload DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.Payload(); } @@ -1164,16 +1313,16 @@ public static com.google.cloud.apigeeconnect.v1.Payload getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Payload parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Payload(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Payload parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Payload(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -1188,6 +1337,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.Payload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java similarity index 75% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java index 85d5973..15f138d 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/PayloadOrBuilder.java @@ -1,31 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface PayloadOrBuilder extends +public interface PayloadOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.Payload) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * The HttpRequest proto.
    * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; + * * @return Whether the httpRequest field is set. */ boolean hasHttpRequest(); /** + * + * *
    * The HttpRequest proto.
    * 
* * .google.cloud.apigeeconnect.v1.HttpRequest http_request = 1; + * * @return The httpRequest. */ com.google.cloud.apigeeconnect.v1.HttpRequest getHttpRequest(); /** + * + * *
    * The HttpRequest proto.
    * 
@@ -35,24 +59,32 @@ public interface PayloadOrBuilder extends com.google.cloud.apigeeconnect.v1.HttpRequestOrBuilder getHttpRequestOrBuilder(); /** + * + * *
    * The information of stream.
    * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; + * * @return Whether the streamInfo field is set. */ boolean hasStreamInfo(); /** + * + * *
    * The information of stream.
    * 
* * .google.cloud.apigeeconnect.v1.StreamInfo stream_info = 2; + * * @return The streamInfo. */ com.google.cloud.apigeeconnect.v1.StreamInfo getStreamInfo(); /** + * + * *
    * The information of stream.
    * 
@@ -62,29 +94,38 @@ public interface PayloadOrBuilder extends com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder getStreamInfoOrBuilder(); /** + * + * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @return Whether the action field is set. */ boolean hasAction(); /** + * + * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @return The enum numeric value on the wire for action. */ int getActionValue(); /** + * + * *
    * The action taken by agent.
    * 
* * .google.cloud.apigeeconnect.v1.Action action = 3; + * * @return The action. */ com.google.cloud.apigeeconnect.v1.Action getAction(); diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java similarity index 65% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java index 7b80d34..4acc6df 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Scheme.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * HTTP Scheme.
  * 
* * Protobuf enum {@code google.cloud.apigeeconnect.v1.Scheme} */ -public enum Scheme - implements com.google.protobuf.ProtocolMessageEnum { +public enum Scheme implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified scheme.
    * 
@@ -21,6 +39,8 @@ public enum Scheme */ SCHEME_UNSPECIFIED(0), /** + * + * *
    * HTTPS protocol.
    * 
@@ -32,6 +52,8 @@ public enum Scheme ; /** + * + * *
    * Unspecified scheme.
    * 
@@ -40,6 +62,8 @@ public enum Scheme */ public static final int SCHEME_UNSPECIFIED_VALUE = 0; /** + * + * *
    * HTTPS protocol.
    * 
@@ -48,7 +72,6 @@ public enum Scheme */ public static final int HTTPS_VALUE = 1; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -73,48 +96,47 @@ public static Scheme valueOf(int value) { */ public static Scheme forNumber(int value) { switch (value) { - case 0: return SCHEME_UNSPECIFIED; - case 1: return HTTPS; - default: return null; + case 0: + return SCHEME_UNSPECIFIED; + case 1: + return HTTPS; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - Scheme> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Scheme findValueByNumber(int number) { - return Scheme.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Scheme findValueByNumber(int number) { + return Scheme.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.apigeeconnect.v1.TetherProto.getDescriptor().getEnumTypes().get(2); } private static final Scheme[] VALUES = values(); - public static Scheme valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static Scheme valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -130,4 +152,3 @@ private Scheme(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.apigeeconnect.v1.Scheme) } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java similarity index 68% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java index d251c13..6a0f232 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfo.java @@ -1,40 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * The Information of bi-directional stream.
  * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.StreamInfo} */ -public final class StreamInfo extends - com.google.protobuf.GeneratedMessageV3 implements +public final class StreamInfo extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.StreamInfo) StreamInfoOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use StreamInfo.newBuilder() to construct. private StreamInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private StreamInfo() { id_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new StreamInfo(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private StreamInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +70,20 @@ private StreamInfo( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - id_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + id_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,34 +91,39 @@ private StreamInfo( } 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.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.StreamInfo.class, com.google.cloud.apigeeconnect.v1.StreamInfo.Builder.class); + com.google.cloud.apigeeconnect.v1.StreamInfo.class, + com.google.cloud.apigeeconnect.v1.StreamInfo.Builder.class); } public static final int ID_FIELD_NUMBER = 1; private volatile java.lang.Object id_; /** + * + * *
    * Unique identifier for the stream.
    * 
* * string id = 1; + * * @return The id. */ @java.lang.Override @@ -109,29 +132,29 @@ public java.lang.String getId() { 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(); id_ = s; return s; } } /** + * + * *
    * Unique identifier for the stream.
    * 
* * string id = 1; + * * @return The bytes for id. */ @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -140,6 +163,7 @@ public java.lang.String getId() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -151,8 +175,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(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } @@ -176,15 +199,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.apigeeconnect.v1.StreamInfo)) { return super.equals(obj); } - com.google.cloud.apigeeconnect.v1.StreamInfo other = (com.google.cloud.apigeeconnect.v1.StreamInfo) obj; + com.google.cloud.apigeeconnect.v1.StreamInfo other = + (com.google.cloud.apigeeconnect.v1.StreamInfo) obj; - if (!getId() - .equals(other.getId())) return false; + if (!getId().equals(other.getId())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -203,118 +226,127 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.StreamInfo parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.StreamInfo parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.cloud.apigeeconnect.v1.StreamInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo 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 Information of bi-directional stream.
    * 
* * Protobuf type {@code google.cloud.apigeeconnect.v1.StreamInfo} */ - 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.apigeeconnect.v1.StreamInfo) com.google.cloud.apigeeconnect.v1.StreamInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.apigeeconnect.v1.StreamInfo.class, com.google.cloud.apigeeconnect.v1.StreamInfo.Builder.class); + com.google.cloud.apigeeconnect.v1.StreamInfo.class, + com.google.cloud.apigeeconnect.v1.StreamInfo.Builder.class); } // Construct using com.google.cloud.apigeeconnect.v1.StreamInfo.newBuilder() @@ -322,16 +354,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(); @@ -341,9 +372,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.apigeeconnect.v1.TetherProto + .internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; } @java.lang.Override @@ -362,7 +393,8 @@ public com.google.cloud.apigeeconnect.v1.StreamInfo build() { @java.lang.Override public com.google.cloud.apigeeconnect.v1.StreamInfo buildPartial() { - com.google.cloud.apigeeconnect.v1.StreamInfo result = new com.google.cloud.apigeeconnect.v1.StreamInfo(this); + com.google.cloud.apigeeconnect.v1.StreamInfo result = + new com.google.cloud.apigeeconnect.v1.StreamInfo(this); result.id_ = id_; onBuilt(); return result; @@ -372,38 +404,39 @@ public com.google.cloud.apigeeconnect.v1.StreamInfo 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.apigeeconnect.v1.StreamInfo) { - return mergeFrom((com.google.cloud.apigeeconnect.v1.StreamInfo)other); + return mergeFrom((com.google.cloud.apigeeconnect.v1.StreamInfo) other); } else { super.mergeFrom(other); return this; @@ -447,18 +480,20 @@ public Builder mergeFrom( private java.lang.Object id_ = ""; /** + * + * *
      * Unique identifier for the stream.
      * 
* * string id = 1; + * * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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(); id_ = s; return s; @@ -467,20 +502,21 @@ public java.lang.String getId() { } } /** + * + * *
      * Unique identifier for the stream.
      * 
* * string id = 1; + * * @return The bytes for id. */ - public com.google.protobuf.ByteString - getIdBytes() { + public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; 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); id_ = b; return b; } else { @@ -488,61 +524,68 @@ public java.lang.String getId() { } } /** + * + * *
      * Unique identifier for the stream.
      * 
* * string id = 1; + * * @param value The id to set. * @return This builder for chaining. */ - public Builder setId( - java.lang.String value) { + public Builder setId(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + id_ = value; onChanged(); return this; } /** + * + * *
      * Unique identifier for the stream.
      * 
* * string id = 1; + * * @return This builder for chaining. */ public Builder clearId() { - + id_ = getDefaultInstance().getId(); onChanged(); return this; } /** + * + * *
      * Unique identifier for the stream.
      * 
* * string id = 1; + * * @param value The bytes for id to set. * @return This builder for chaining. */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { + public Builder setIdBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + id_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -552,12 +595,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.StreamInfo) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.StreamInfo) private static final com.google.cloud.apigeeconnect.v1.StreamInfo DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.StreamInfo(); } @@ -566,16 +609,16 @@ public static com.google.cloud.apigeeconnect.v1.StreamInfo getDefaultInstance() return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new StreamInfo(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StreamInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StreamInfo(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -590,6 +633,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.StreamInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java new file mode 100644 index 0000000..878493a --- /dev/null +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/StreamInfoOrBuilder.java @@ -0,0 +1,50 @@ +/* + * 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/apigeeconnect/v1/tether.proto + +package com.google.cloud.apigeeconnect.v1; + +public interface StreamInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.StreamInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Unique identifier for the stream.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * Unique identifier for the stream.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); +} diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java similarity index 67% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java index 81087f9..8b78e05 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherEndpoint.java @@ -1,18 +1,36 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * Endpoint indicates where the messages will be delivered.
  * 
* * Protobuf enum {@code google.cloud.apigeeconnect.v1.TetherEndpoint} */ -public enum TetherEndpoint - implements com.google.protobuf.ProtocolMessageEnum { +public enum TetherEndpoint implements com.google.protobuf.ProtocolMessageEnum { /** + * + * *
    * Unspecified tether endpoint.
    * 
@@ -21,6 +39,8 @@ public enum TetherEndpoint */ TETHER_ENDPOINT_UNSPECIFIED(0), /** + * + * *
    * Apigee MART endpoint.
    * 
@@ -29,6 +49,8 @@ public enum TetherEndpoint */ APIGEE_MART(1), /** + * + * *
    * Apigee Runtime endpoint.
    * 
@@ -37,6 +59,8 @@ public enum TetherEndpoint */ APIGEE_RUNTIME(2), /** + * + * *
    * Apigee Mint Rating endpoint.
    * 
@@ -48,6 +72,8 @@ public enum TetherEndpoint ; /** + * + * *
    * Unspecified tether endpoint.
    * 
@@ -56,6 +82,8 @@ public enum TetherEndpoint */ public static final int TETHER_ENDPOINT_UNSPECIFIED_VALUE = 0; /** + * + * *
    * Apigee MART endpoint.
    * 
@@ -64,6 +92,8 @@ public enum TetherEndpoint */ public static final int APIGEE_MART_VALUE = 1; /** + * + * *
    * Apigee Runtime endpoint.
    * 
@@ -72,6 +102,8 @@ public enum TetherEndpoint */ public static final int APIGEE_RUNTIME_VALUE = 2; /** + * + * *
    * Apigee Mint Rating endpoint.
    * 
@@ -80,7 +112,6 @@ public enum TetherEndpoint */ public static final int APIGEE_MINT_RATING_VALUE = 3; - public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -105,50 +136,51 @@ public static TetherEndpoint valueOf(int value) { */ public static TetherEndpoint forNumber(int value) { switch (value) { - case 0: return TETHER_ENDPOINT_UNSPECIFIED; - case 1: return APIGEE_MART; - case 2: return APIGEE_RUNTIME; - case 3: return APIGEE_MINT_RATING; - default: return null; + case 0: + return TETHER_ENDPOINT_UNSPECIFIED; + case 1: + return APIGEE_MART; + case 2: + return APIGEE_RUNTIME; + case 3: + return APIGEE_MINT_RATING; + default: + return null; } } - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } - private static final com.google.protobuf.Internal.EnumLiteMap< - TetherEndpoint> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public TetherEndpoint findValueByNumber(int number) { - return TetherEndpoint.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TetherEndpoint findValueByNumber(int number) { + return TetherEndpoint.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { + + public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.google.cloud.apigeeconnect.v1.TetherProto.getDescriptor().getEnumTypes().get(1); } private static final TetherEndpoint[] VALUES = values(); - public static TetherEndpoint valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static TetherEndpoint valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; @@ -164,4 +196,3 @@ private TetherEndpoint(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.apigeeconnect.v1.TetherEndpoint) } - diff --git a/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java new file mode 100644 index 0000000..881c127 --- /dev/null +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/TetherProto.java @@ -0,0 +1,206 @@ +/* + * 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/apigeeconnect/v1/tether.proto + +package com.google.cloud.apigeeconnect.v1; + +public final class TetherProto { + private TetherProto() {} + + 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_apigeeconnect_v1_EgressRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_Url_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_Header_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n*google/cloud/apigeeconnect/v1/tether.p" + + "roto\022\035google.cloud.apigeeconnect.v1\032\036goo" + + "gle/protobuf/duration.proto\032\027google/rpc/" + + "status.proto\032\027google/api/client.proto\"\344\001" + + "\n\rEgressRequest\022\n\n\002id\030\001 \001(\t\0227\n\007payload\030\002" + + " \001(\0132&.google.cloud.apigeeconnect.v1.Pay" + + "load\022?\n\010endpoint\030\003 \001(\0162-.google.cloud.ap" + + "igeeconnect.v1.TetherEndpoint\022\017\n\007project" + + "\030\004 \001(\t\022\020\n\010trace_id\030\005 \001(\t\022*\n\007timeout\030\006 \001(" + + "\0132\031.google.protobuf.Duration\"\320\001\n\007Payload" + + "\022B\n\014http_request\030\001 \001(\0132*.google.cloud.ap" + + "igeeconnect.v1.HttpRequestH\000\022@\n\013stream_i" + + "nfo\030\002 \001(\0132).google.cloud.apigeeconnect.v" + + "1.StreamInfoH\000\0227\n\006action\030\003 \001(\0162%.google." + + "cloud.apigeeconnect.v1.ActionH\000B\006\n\004kind\"" + + "\030\n\nStreamInfo\022\n\n\002id\030\001 \001(\t\"\366\001\n\016EgressResp" + + "onse\022\n\n\002id\030\001 \001(\t\022B\n\rhttp_response\030\002 \001(\0132" + + "+.google.cloud.apigeeconnect.v1.HttpResp" + + "onse\022\"\n\006status\030\003 \001(\0132\022.google.rpc.Status" + + "\022\017\n\007project\030\004 \001(\t\022\020\n\010trace_id\030\005 \001(\t\022?\n\010e" + + "ndpoint\030\006 \001(\0162-.google.cloud.apigeeconne" + + "ct.v1.TetherEndpoint\022\014\n\004name\030\007 \001(\t\"\240\001\n\013H" + + "ttpRequest\022\n\n\002id\030\001 \001(\t\022\016\n\006method\030\002 \001(\t\022/" + + "\n\003url\030\003 \001(\0132\".google.cloud.apigeeconnect" + + ".v1.Url\0226\n\007headers\030\004 \003(\0132%.google.cloud." + + "apigeeconnect.v1.Header\022\014\n\004body\030\005 \001(\014\"X\n" + + "\003Url\0225\n\006scheme\030\001 \001(\0162%.google.cloud.apig" + + "eeconnect.v1.Scheme\022\014\n\004host\030\002 \001(\t\022\014\n\004pat" + + "h\030\003 \001(\t\"%\n\006Header\022\013\n\003key\030\001 \001(\t\022\016\n\006values" + + "\030\002 \003(\t\"\235\001\n\014HttpResponse\022\n\n\002id\030\001 \001(\t\022\016\n\006s" + + "tatus\030\002 \001(\t\022\023\n\013status_code\030\003 \001(\005\022\014\n\004body" + + "\030\004 \001(\014\0226\n\007headers\030\005 \003(\0132%.google.cloud.a" + + "pigeeconnect.v1.Header\022\026\n\016content_length" + + "\030\006 \001(\003*5\n\006Action\022\026\n\022ACTION_UNSPECIFIED\020\000" + + "\022\023\n\017OPEN_NEW_STREAM\020\001*n\n\016TetherEndpoint\022" + + "\037\n\033TETHER_ENDPOINT_UNSPECIFIED\020\000\022\017\n\013APIG" + + "EE_MART\020\001\022\022\n\016APIGEE_RUNTIME\020\002\022\026\n\022APIGEE_" + + "MINT_RATING\020\003*+\n\006Scheme\022\026\n\022SCHEME_UNSPEC" + + "IFIED\020\000\022\t\n\005HTTPS\020\0012\307\001\n\006Tether\022k\n\006Egress\022" + + "-.google.cloud.apigeeconnect.v1.EgressRe" + + "sponse\032,.google.cloud.apigeeconnect.v1.E" + + "gressRequest\"\000(\0010\001\032P\312A\034apigeeconnect.goo" + + "gleapis.com\322A.https://www.googleapis.com" + + "/auth/cloud-platformB\341\001\n!com.google.clou" + + "d.apigeeconnect.v1B\013TetherProtoP\001ZJgoogl" + + "e.golang.org/genproto/googleapis/cloud/a" + + "pigeeconnect/v1;apigeeconnect\252\002\035Google.C" + + "loud.ApigeeConnect.V1\312\002\035Google\\Cloud\\Api" + + "geeConnect\\V1\352\002 Google::Cloud::ApigeeCon" + + "nect::V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + com.google.rpc.StatusProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_cloud_apigeeconnect_v1_EgressRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_EgressRequest_descriptor, + new java.lang.String[] { + "Id", "Payload", "Endpoint", "Project", "TraceId", "Timeout", + }); + internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_cloud_apigeeconnect_v1_Payload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_Payload_descriptor, + new java.lang.String[] { + "HttpRequest", "StreamInfo", "Action", "Kind", + }); + internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_cloud_apigeeconnect_v1_StreamInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_StreamInfo_descriptor, + new java.lang.String[] { + "Id", + }); + internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_cloud_apigeeconnect_v1_EgressResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_EgressResponse_descriptor, + new java.lang.String[] { + "Id", "HttpResponse", "Status", "Project", "TraceId", "Endpoint", "Name", + }); + internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_cloud_apigeeconnect_v1_HttpRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_HttpRequest_descriptor, + new java.lang.String[] { + "Id", "Method", "Url", "Headers", "Body", + }); + internal_static_google_cloud_apigeeconnect_v1_Url_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_Url_descriptor, + new java.lang.String[] { + "Scheme", "Host", "Path", + }); + internal_static_google_cloud_apigeeconnect_v1_Header_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_cloud_apigeeconnect_v1_Header_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_Header_descriptor, + new java.lang.String[] { + "Key", "Values", + }); + internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_cloud_apigeeconnect_v1_HttpResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_cloud_apigeeconnect_v1_HttpResponse_descriptor, + new java.lang.String[] { + "Id", "Status", "StatusCode", "Body", "Headers", "ContentLength", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.protobuf.DurationProto.getDescriptor(); + com.google.rpc.StatusProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java similarity index 70% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java index 44b90ea..427f9d7 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/Url.java @@ -1,9 +1,26 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/cloud/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; /** + * + * *
  * The proto definition of url.
  * A url represents a URL and the general form represented is:
@@ -12,15 +29,16 @@
  *
  * Protobuf type {@code google.cloud.apigeeconnect.v1.Url}
  */
-public final class Url extends
-    com.google.protobuf.GeneratedMessageV3 implements
+public final class Url extends com.google.protobuf.GeneratedMessageV3
+    implements
     // @@protoc_insertion_point(message_implements:google.cloud.apigeeconnect.v1.Url)
     UrlOrBuilder {
-private static final long serialVersionUID = 0L;
+  private static final long serialVersionUID = 0L;
   // Use Url.newBuilder() to construct.
   private Url(com.google.protobuf.GeneratedMessageV3.Builder builder) {
     super(builder);
   }
+
   private Url() {
     scheme_ = 0;
     host_ = "";
@@ -29,16 +47,15 @@ private Url() {
 
   @java.lang.Override
   @SuppressWarnings({"unused"})
-  protected java.lang.Object newInstance(
-      UnusedPrivateParameter unused) {
+  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
     return new Url();
   }
 
   @java.lang.Override
-  public final com.google.protobuf.UnknownFieldSet
-  getUnknownFields() {
+  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
     return this.unknownFields;
   }
+
   private Url(
       com.google.protobuf.CodedInputStream input,
       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
@@ -57,31 +74,34 @@ private Url(
           case 0:
             done = true;
             break;
-          case 8: {
-            int rawValue = input.readEnum();
+          case 8:
+            {
+              int rawValue = input.readEnum();
 
-            scheme_ = rawValue;
-            break;
-          }
-          case 18: {
-            java.lang.String s = input.readStringRequireUtf8();
+              scheme_ = rawValue;
+              break;
+            }
+          case 18:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            host_ = s;
-            break;
-          }
-          case 26: {
-            java.lang.String s = input.readStringRequireUtf8();
+              host_ = s;
+              break;
+            }
+          case 26:
+            {
+              java.lang.String s = input.readStringRequireUtf8();
 
-            path_ = s;
-            break;
-          }
-          default: {
-            if (!parseUnknownField(
-                input, unknownFields, extensionRegistry, tag)) {
-              done = true;
+              path_ = s;
+              break;
+            }
+          default:
+            {
+              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
+                done = true;
+              }
+              break;
             }
-            break;
-          }
         }
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
@@ -89,61 +109,75 @@ private Url(
     } 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.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
+
+  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+    return com.google.cloud.apigeeconnect.v1.TetherProto
+        .internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
   }
 
   @java.lang.Override
   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internalGetFieldAccessorTable() {
-    return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable
+    return com.google.cloud.apigeeconnect.v1.TetherProto
+        .internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable
         .ensureFieldAccessorsInitialized(
-            com.google.cloud.apigeeconnect.v1.Url.class, com.google.cloud.apigeeconnect.v1.Url.Builder.class);
+            com.google.cloud.apigeeconnect.v1.Url.class,
+            com.google.cloud.apigeeconnect.v1.Url.Builder.class);
   }
 
   public static final int SCHEME_FIELD_NUMBER = 1;
   private int scheme_;
   /**
+   *
+   *
    * 
    * Scheme.
    * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; + * * @return The enum numeric value on the wire for scheme. */ - @java.lang.Override public int getSchemeValue() { + @java.lang.Override + public int getSchemeValue() { return scheme_; } /** + * + * *
    * Scheme.
    * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; + * * @return The scheme. */ - @java.lang.Override public com.google.cloud.apigeeconnect.v1.Scheme getScheme() { + @java.lang.Override + public com.google.cloud.apigeeconnect.v1.Scheme getScheme() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.Scheme result = com.google.cloud.apigeeconnect.v1.Scheme.valueOf(scheme_); + com.google.cloud.apigeeconnect.v1.Scheme result = + com.google.cloud.apigeeconnect.v1.Scheme.valueOf(scheme_); return result == null ? com.google.cloud.apigeeconnect.v1.Scheme.UNRECOGNIZED : result; } public static final int HOST_FIELD_NUMBER = 2; private volatile java.lang.Object host_; /** + * + * *
    * Host or Host:Port.
    * 
* * string host = 2; + * * @return The host. */ @java.lang.Override @@ -152,29 +186,29 @@ public java.lang.String getHost() { 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(); host_ = s; return s; } } /** + * + * *
    * Host or Host:Port.
    * 
* * string host = 2; + * * @return The bytes for host. */ @java.lang.Override - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; 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); host_ = b; return b; } else { @@ -185,11 +219,14 @@ public java.lang.String getHost() { public static final int PATH_FIELD_NUMBER = 3; private volatile java.lang.Object path_; /** + * + * *
    * Path starts with `/`.
    * 
* * string path = 3; + * * @return The path. */ @java.lang.Override @@ -198,29 +235,29 @@ public java.lang.String getPath() { 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(); path_ = s; return s; } } /** + * + * *
    * Path starts with `/`.
    * 
* * string path = 3; + * * @return The bytes for path. */ @java.lang.Override - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; 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); path_ = b; return b; } else { @@ -229,6 +266,7 @@ public java.lang.String getPath() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -240,8 +278,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 (scheme_ != com.google.cloud.apigeeconnect.v1.Scheme.SCHEME_UNSPECIFIED.getNumber()) { output.writeEnum(1, scheme_); } @@ -261,8 +298,7 @@ public int getSerializedSize() { size = 0; if (scheme_ != com.google.cloud.apigeeconnect.v1.Scheme.SCHEME_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, scheme_); + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, scheme_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(host_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, host_); @@ -278,7 +314,7 @@ 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.apigeeconnect.v1.Url)) { return super.equals(obj); @@ -286,10 +322,8 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.apigeeconnect.v1.Url other = (com.google.cloud.apigeeconnect.v1.Url) obj; if (scheme_ != other.scheme_) return false; - if (!getHost() - .equals(other.getHost())) return false; - if (!getPath() - .equals(other.getPath())) return false; + if (!getHost().equals(other.getHost())) return false; + if (!getPath().equals(other.getPath())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -312,97 +346,103 @@ public int hashCode() { return hash; } - public static com.google.cloud.apigeeconnect.v1.Url parseFrom( - java.nio.ByteBuffer data) + public static com.google.cloud.apigeeconnect.v1.Url parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url parseFrom( - com.google.protobuf.ByteString data) + + public static com.google.cloud.apigeeconnect.v1.Url parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url 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 proto definition of url.
    * A url represents a URL and the general form represented is:
@@ -411,21 +451,23 @@ protected Builder newBuilderForType(
    *
    * Protobuf type {@code google.cloud.apigeeconnect.v1.Url}
    */
-  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.apigeeconnect.v1.Url)
       com.google.cloud.apigeeconnect.v1.UrlOrBuilder {
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
+    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
+      return com.google.cloud.apigeeconnect.v1.TetherProto
+          .internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
     }
 
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
-      return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable
+      return com.google.cloud.apigeeconnect.v1.TetherProto
+          .internal_static_google_cloud_apigeeconnect_v1_Url_fieldAccessorTable
           .ensureFieldAccessorsInitialized(
-              com.google.cloud.apigeeconnect.v1.Url.class, com.google.cloud.apigeeconnect.v1.Url.Builder.class);
+              com.google.cloud.apigeeconnect.v1.Url.class,
+              com.google.cloud.apigeeconnect.v1.Url.Builder.class);
     }
 
     // Construct using com.google.cloud.apigeeconnect.v1.Url.newBuilder()
@@ -433,16 +475,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();
@@ -456,9 +497,9 @@ public Builder clear() {
     }
 
     @java.lang.Override
-    public com.google.protobuf.Descriptors.Descriptor
-        getDescriptorForType() {
-      return com.google.cloud.apigeeconnect.v1.TetherProto.internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
+    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
+      return com.google.cloud.apigeeconnect.v1.TetherProto
+          .internal_static_google_cloud_apigeeconnect_v1_Url_descriptor;
     }
 
     @java.lang.Override
@@ -477,7 +518,8 @@ public com.google.cloud.apigeeconnect.v1.Url build() {
 
     @java.lang.Override
     public com.google.cloud.apigeeconnect.v1.Url buildPartial() {
-      com.google.cloud.apigeeconnect.v1.Url result = new com.google.cloud.apigeeconnect.v1.Url(this);
+      com.google.cloud.apigeeconnect.v1.Url result =
+          new com.google.cloud.apigeeconnect.v1.Url(this);
       result.scheme_ = scheme_;
       result.host_ = host_;
       result.path_ = path_;
@@ -489,38 +531,39 @@ public com.google.cloud.apigeeconnect.v1.Url 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.apigeeconnect.v1.Url) {
-        return mergeFrom((com.google.cloud.apigeeconnect.v1.Url)other);
+        return mergeFrom((com.google.cloud.apigeeconnect.v1.Url) other);
       } else {
         super.mergeFrom(other);
         return this;
@@ -571,51 +614,65 @@ public Builder mergeFrom(
 
     private int scheme_ = 0;
     /**
+     *
+     *
      * 
      * Scheme.
      * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; + * * @return The enum numeric value on the wire for scheme. */ - @java.lang.Override public int getSchemeValue() { + @java.lang.Override + public int getSchemeValue() { return scheme_; } /** + * + * *
      * Scheme.
      * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; + * * @param value The enum numeric value on the wire for scheme to set. * @return This builder for chaining. */ public Builder setSchemeValue(int value) { - + scheme_ = value; onChanged(); return this; } /** + * + * *
      * Scheme.
      * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; + * * @return The scheme. */ @java.lang.Override public com.google.cloud.apigeeconnect.v1.Scheme getScheme() { @SuppressWarnings("deprecation") - com.google.cloud.apigeeconnect.v1.Scheme result = com.google.cloud.apigeeconnect.v1.Scheme.valueOf(scheme_); + com.google.cloud.apigeeconnect.v1.Scheme result = + com.google.cloud.apigeeconnect.v1.Scheme.valueOf(scheme_); return result == null ? com.google.cloud.apigeeconnect.v1.Scheme.UNRECOGNIZED : result; } /** + * + * *
      * Scheme.
      * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; + * * @param value The scheme to set. * @return This builder for chaining. */ @@ -623,21 +680,24 @@ public Builder setScheme(com.google.cloud.apigeeconnect.v1.Scheme value) { if (value == null) { throw new NullPointerException(); } - + scheme_ = value.getNumber(); onChanged(); return this; } /** + * + * *
      * Scheme.
      * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; + * * @return This builder for chaining. */ public Builder clearScheme() { - + scheme_ = 0; onChanged(); return this; @@ -645,18 +705,20 @@ public Builder clearScheme() { private java.lang.Object host_ = ""; /** + * + * *
      * Host or Host:Port.
      * 
* * string host = 2; + * * @return The host. */ public java.lang.String getHost() { java.lang.Object ref = host_; 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(); host_ = s; return s; @@ -665,20 +727,21 @@ public java.lang.String getHost() { } } /** + * + * *
      * Host or Host:Port.
      * 
* * string host = 2; + * * @return The bytes for host. */ - public com.google.protobuf.ByteString - getHostBytes() { + public com.google.protobuf.ByteString getHostBytes() { java.lang.Object ref = host_; 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); host_ = b; return b; } else { @@ -686,54 +749,61 @@ public java.lang.String getHost() { } } /** + * + * *
      * Host or Host:Port.
      * 
* * string host = 2; + * * @param value The host to set. * @return This builder for chaining. */ - public Builder setHost( - java.lang.String value) { + public Builder setHost(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + host_ = value; onChanged(); return this; } /** + * + * *
      * Host or Host:Port.
      * 
* * string host = 2; + * * @return This builder for chaining. */ public Builder clearHost() { - + host_ = getDefaultInstance().getHost(); onChanged(); return this; } /** + * + * *
      * Host or Host:Port.
      * 
* * string host = 2; + * * @param value The bytes for host to set. * @return This builder for chaining. */ - public Builder setHostBytes( - com.google.protobuf.ByteString value) { + public Builder setHostBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + host_ = value; onChanged(); return this; @@ -741,18 +811,20 @@ public Builder setHostBytes( private java.lang.Object path_ = ""; /** + * + * *
      * Path starts with `/`.
      * 
* * string path = 3; + * * @return The path. */ public java.lang.String getPath() { java.lang.Object ref = path_; 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(); path_ = s; return s; @@ -761,20 +833,21 @@ public java.lang.String getPath() { } } /** + * + * *
      * Path starts with `/`.
      * 
* * string path = 3; + * * @return The bytes for path. */ - public com.google.protobuf.ByteString - getPathBytes() { + public com.google.protobuf.ByteString getPathBytes() { java.lang.Object ref = path_; 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); path_ = b; return b; } else { @@ -782,61 +855,68 @@ public java.lang.String getPath() { } } /** + * + * *
      * Path starts with `/`.
      * 
* * string path = 3; + * * @param value The path to set. * @return This builder for chaining. */ - public Builder setPath( - java.lang.String value) { + public Builder setPath(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + path_ = value; onChanged(); return this; } /** + * + * *
      * Path starts with `/`.
      * 
* * string path = 3; + * * @return This builder for chaining. */ public Builder clearPath() { - + path_ = getDefaultInstance().getPath(); onChanged(); return this; } /** + * + * *
      * Path starts with `/`.
      * 
* * string path = 3; + * * @param value The bytes for path to set. * @return This builder for chaining. */ - public Builder setPathBytes( - com.google.protobuf.ByteString value) { + public Builder setPathBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + path_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -846,12 +926,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.cloud.apigeeconnect.v1.Url) } // @@protoc_insertion_point(class_scope:google.cloud.apigeeconnect.v1.Url) private static final com.google.cloud.apigeeconnect.v1.Url DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.cloud.apigeeconnect.v1.Url(); } @@ -860,16 +940,16 @@ public static com.google.cloud.apigeeconnect.v1.Url getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Url parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Url(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Url parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Url(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -884,6 +964,4 @@ public com.google.protobuf.Parser getParserForType() { public com.google.cloud.apigeeconnect.v1.Url getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java similarity index 60% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java rename to proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java index 68cc565..a6be2b1 100644 --- a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java +++ b/proto-google-cloud-apigee-connect-v1/src/main/java/com/google/cloud/apigeeconnect/v1/UrlOrBuilder.java @@ -1,68 +1,100 @@ +/* + * 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/apigeeconnect/v1/tether.proto package com.google.cloud.apigeeconnect.v1; -public interface UrlOrBuilder extends +public interface UrlOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.cloud.apigeeconnect.v1.Url) com.google.protobuf.MessageOrBuilder { /** + * + * *
    * Scheme.
    * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; + * * @return The enum numeric value on the wire for scheme. */ int getSchemeValue(); /** + * + * *
    * Scheme.
    * 
* * .google.cloud.apigeeconnect.v1.Scheme scheme = 1; + * * @return The scheme. */ com.google.cloud.apigeeconnect.v1.Scheme getScheme(); /** + * + * *
    * Host or Host:Port.
    * 
* * string host = 2; + * * @return The host. */ java.lang.String getHost(); /** + * + * *
    * Host or Host:Port.
    * 
* * string host = 2; + * * @return The bytes for host. */ - com.google.protobuf.ByteString - getHostBytes(); + com.google.protobuf.ByteString getHostBytes(); /** + * + * *
    * Path starts with `/`.
    * 
* * string path = 3; + * * @return The path. */ java.lang.String getPath(); /** + * + * *
    * Path starts with `/`.
    * 
* * string path = 3; + * * @return The bytes for path. */ - com.google.protobuf.ByteString - getPathBytes(); + com.google.protobuf.ByteString getPathBytes(); } diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/connection.proto b/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/connection.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/connection.proto rename to proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/connection.proto diff --git a/owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/tether.proto b/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/tether.proto similarity index 100% rename from owl-bot-staging/v1/proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/tether.proto rename to proto-google-cloud-apigee-connect-v1/src/main/proto/google/cloud/apigeeconnect/v1/tether.proto diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnections.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnections.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnections.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnections.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnectionsPaged.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnectionsPaged.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnectionsPaged.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/AsyncListConnectionsPaged.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnections.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnections.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnections.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnections.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsEndpointname.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsEndpointname.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsEndpointname.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsEndpointname.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsString.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsString.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsString.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionserviceclient/listconnections/SyncListConnectionsString.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/connectionservicesettings/listconnections/SyncListConnections.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/connectionservicestubsettings/listconnections/SyncListConnections.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/stub/tetherstubsettings/egress/SyncEgress.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider1.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider1.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider1.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetCredentialsProvider1.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetEndpoint.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetEndpoint.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/create/SyncCreateSetEndpoint.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/egress/AsyncEgress.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/egress/AsyncEgress.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/egress/AsyncEgress.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tetherclient/egress/AsyncEgress.java diff --git a/owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java b/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java similarity index 100% rename from owl-bot-staging/v1/samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java rename to samples/snippets/generated/com/google/cloud/apigeeconnect/v1/tethersettings/egress/SyncEgress.java From 71f1e4d343cbde0a288af408b9e65d2dbf33a29b Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 23 Jun 2022 11:46:11 -0400 Subject: [PATCH 3/3] Update pom.xml --- google-cloud-apigee-connect/pom.xml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/google-cloud-apigee-connect/pom.xml b/google-cloud-apigee-connect/pom.xml index 7d1732f..ed51f26 100644 --- a/google-cloud-apigee-connect/pom.xml +++ b/google-cloud-apigee-connect/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 +